

<?php $__env->startSection('css'); ?>
<link rel="stylesheet" href="<?php echo e(asset('vendor/datatables.net-bs4/css/dataTables.bootstrap4.min.css')); ?>">
<link rel="stylesheet" href="<?php echo e(asset('vendor/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css')); ?>">
<link rel="stylesheet" href="<?php echo e(asset('vendor/jquery-confirm2/dist/jquery-confirm.min.css')); ?>">
<link rel="stylesheet" href="<?php echo e(asset('vendor/monkeymonk-jquery.loader/jquery.loader.css')); ?>">
<link rel="stylesheet" href="<?php echo e(asset('vendor/select2/select2.min.css')); ?>">
<link rel="stylesheet" href="<?php echo e(asset('vendor/select2-bootstrap4/dist/select2-bootstrap4.min.css')); ?>">
<style type="text/css">
	.form-check-label{
		padding-left: 0 !important;
	}
</style>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="row justify-content-center">
  <div class="col-md-8">
    <div class="card ">
      <div class="card-header text-center">
        <h4 class="card-title">Nuevo Expediente</h4>
      </div>
      <div class="card-body ">
        <form id="formulary" enctype="multipart/form-data">
          <div class="row">
            <div class="form-group col-md-4">
              <label>Tipo de Persona</label>
              <select class="form-control" name="tipo_persona" id="tipo_persona">
                <option value="">--Seleccionar--</option>
                <option value="0">Persona Natural</option>
                <option value="1">Persona Jurídica</option>
              </select>
            </div>
          </div>
          <div id="empresa" style="display:none">
          <h6>Datos de la Empresa</h6>
          <div class="row">
            <div class="form-group col-md-4">
              <label>RUC</label>
              <div class="input-group">
                <div class="input-group-prepend">
                  <span class="input-group-text">
                    <i class="far fa-building"></i>
                  </span>
                </div>
                <input type="text" class="form-control" name="ruc" id="ruc" disabled>
              </div>
            </div>
            <div class="form-group col-md-4">
              <label>Razón Social</label>
              <div class="input-group">
                <div class="input-group-prepend">
                  <span class="input-group-text">
                    <i class="far fa-building"></i>
                  </span>
                </div>
                <input type="text" class="form-control" name="razon_social" id="razon_social" disabled>
              </div>
            </div>
            <div class="form-group col-md-4">
              <label>Dirección de la Empresa</label>
              <div class="input-group">
                <div class="input-group-prepend">
                  <span class="input-group-text">
                    <i class="far fa-building"></i>
                  </span>
                </div>
                <input type="text" class="form-control" name="direccion_empresa" id="direccion_empresa" disabled>
              </div>
            </div>
          </div>
          </div>
        	<h6>Datos Personales</h6>
          <div class="row">
            <div class="col">
              <div class="row">
                <div class="form-group col-md-4 col-sm-8">
                  <label>Documento</label>
                  <div class="input-group">
                    <div class="input-group-prepend">
                      <span class="input-group-text">
                        <i class="far fa-address-card"></i>
                      </span>
                    </div>
                    <input type="text" class="form-control" name="documento" id="documento" value="">
                  </div>
                </div>
                <div class="col col-sm-4">
                  <button type="button" class="btn btn-primary mt-4" id="buscar"><i class="fas fa-search"></i></button>
                </div> 
              </div>
            </div>
          </div>
          
          <div class="row">
            <div class="form-group col-md-4">
              <label>Apellido Paterno</label>
              <div class="input-group">
                <div class="input-group-prepend">
                  <span class="input-group-text">
                    <i class="nc-icon nc-single-02"></i>
                  </span>
                </div>
                <input type="text" class="form-control" name="paterno" id="paterno" value="">
              </div>
            </div>
            <div class="form-group col-md-4">
              <label>Apellido Materno</label>
              <div class="input-group">
                <div class="input-group-prepend">
                  <span class="input-group-text">
                    <i class="nc-icon nc-single-02"></i>
                  </span>
                </div>
                <input type="text" class="form-control" name="materno" id="materno" value="">
              </div>
            </div>
            <div class="form-group col-md-4">
              <label>Nombres</label>
              <div class="input-group">
                <div class="input-group-prepend">
                  <span class="input-group-text">
                    <i class="nc-icon nc-single-02"></i>
                  </span>
                </div>
                <input type="text" class="form-control" name="nombres" id="nombres" value="">
              </div>
            </div>
          </div>
          <div class="row">
              <div class="form-group col-md-4">
                <label for="departamento">Departamento</label>
                <select class="form-control" name="departamento" id="departamento">
                </select>
              </div>
              <div class="form-group col-md-4">
                <label for="provincia">Provincia</label>
                <select class="form-control" name="provincia" id="provincia">
                </select>
              </div>
              <div class="form-group col-md-4">
                <label for="distrito">Distrito</label>
                <select class="form-control" name="distrito" id="distrito">
                </select>
              </div>
            <div class="form-group col-md-4">
              <label>Dirección</label>
              <div class="input-group">
                <div class="input-group-prepend">
                  <span class="input-group-text">
                    <i class="fas fa-map-signs"></i>
                  </span>
                </div>
                <input type="text" class="form-control" name="direccion" id="direccion">
              </div>
            </div>
            <div class="form-group col-md-4">
              <label>Teléfono Móvil</label>
              <div class="input-group">
                <div class="input-group-prepend">
                  <span class="input-group-text">
                    <i class="fas fa-mobile-alt"></i>
                  </span>
                </div>
                <input type="text" class="form-control" name="telefono" id="telefono">
              </div>
            </div>
            <div class="form-group col-md-4">
              <label>Correo Electrónico</label>
              <div class="input-group">
                <div class="input-group-prepend">
                  <span class="input-group-text">
                    <i class="fas fa-at"></i>
                  </span>
                </div>
                <input type="text" class="form-control" name="email" id="email">
              </div>
            </div>

          </div>
          <h6>Datos de Trámite</h6>
          <div class="row">
            <div class="form-group col-md-4">
              <label for="tipo_expediente">Tipo de Expediente</label>
              <select class="form-control" name="tipo_expediente" id="tipo_expediente">
                <option value="">-- Seleccionar --</option>
                <option value="1">Tupa</option>
                <option value="2">No Tupa</option>
                <option value="3">Otros</option>
              </select>
            </div>
            <div class="form-group col-md-8 div-unidad" style="display:none">
              <label for="unidad">Unidad Orgánica</label>
              <select class="form-control" name="unidad" id="unidad">
              </select>
            </div>
            <div class="form-group col-md-12 div-proceso" style="display:none">
              <label for="proceso">Procedimiento</label>
              <select class="form-control" name="proceso" id="proceso">
              </select>
            </div>
          </div>
          <div class="row">
            <div class="form-group col-md-12 div-asunto" style="display:none">
              <label for="asunto">Asunto</label>
              <input type="text" class="form-control" name="asunto" id="asunto">
            </div>
            <div class="form-group col-md-4">
              <label for="n_documento">Número Documento</label>
              <input type="text" class="form-control" name="n_documento" id="n_documento">
            </div>
            <div class="form-group col-md-4">
              <label for="folio">Folio Total</label>
              <input type="text" class="form-control" name="folio" id="folio">
            </div>
            <div class="col-md-12 div-oficina" style="display:none">
              <div class="form-group">
                <label for="oficina">Derivar a la Oficina</label>
                <select id="oficina" name="oficina" class="form-control" style="width: 100%" disabled>
                </select>
              </div>
            </div>
          </div>
          <h6>Archivos por adjuntar</h6>
          <div class="row">
            <div class="col">
              <div class="card border-primary">
                <div class="card-header">
                  <b>Formatos</b>
                </div>
                <div class="card-body" id="formatos">
                </div>
              </div>
            </div>
          </div>
          <div class="row" id="requisitos">

          </div>
          <button type="button" id="nuevo_archivo" class="btn btn-success"><i class="fas fa-plus"></i>  Agregar otro Archivo</button>
          <div id="adjuntos">
          
          </div>
          <hr>
          <div class="row">
            <div class="form-group col-md-12">
              <label for="observacion">Observación</label>
              <textarea class="form-control" name="observacion" id="observacion"></textarea>
            </div>
          </div>
          <button type="button" id="guardar" class="btn btn-success btn-block">
            <i class="fas fa-share-square"></i> Guardar Trámite externo
          </button>

        </form>
      </div>
      <div class="card-footer ">
        <!-- <button type="submit" class="btn btn-info btn-round">Submit</button> -->
      </div>
    </div>
  </div>
  <!-- <div class="col-md-2">
    <button class="btn btn-word float-right" id="formatos_modal"><i class="fa fa-file-word-o" aria-hidden="true"></i> Formatos</button>
  </div> -->
</div>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<script type="text/javascript" src="<?php echo e(asset('vendor/jquery-confirm2/dist/jquery-confirm.min.js')); ?>"></script>
<!-- <script type="text/javascript" src="<?php echo e(asset('vendor/SmartWizard-master/dist/js/jquery.smartWizard.min.js')); ?>"></script> -->
<!-- <script type="text/javascript" src="<?php echo e(asset('vendor/smartwizard/dist/js/jquery.smartWizard.min.js')); ?>"></script> -->
<script type="text/javascript" src="<?php echo e(asset('vendor/jquery-validation/dist/jquery.validate.min.js')); ?>"></script>
<script type="text/javascript" src="<?php echo e(asset('vendor/jquery-validation/dist/additional-methods.min.js')); ?>"></script>
<script type="text/javascript" src="<?php echo e(asset('js/validator.setDefaults.js')); ?>"></script>
<script>
  $.validator.addMethod('filesize', function (value, element, param) {
      return this.optional(element) || (element.files[0].size <= param * 1000000)
  }, 'File size must be less than {0}');
</script>

<script type="text/javascript" src="<?php echo e(asset('vendor/select2/select2.min.js')); ?>"></script>
<!-- <script type="text/javascript" src="<?php echo e(asset('vendor/jQuery-Smart-Wizard/js/jquery.smartWizard.js')); ?>"></script> -->
<script type="text/javascript" src="<?php echo e(asset('vendor/monkeymonk-jquery.loader/jquery.loader.js')); ?>"></script>
<script type="text/javascript" src="<?php echo e(asset('js/extranet/expediente/externo/create.js')); ?>"></script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.extranet', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\tramite\resources\views/extranet/expediente/externo/create.blade.php ENDPATH**/ ?>