<?php $__env->startSection('img',url('img/CerikSoluciones.png')); ?>
<?php $__env->startSection('title','Formulario de solicitud de credito'); ?>
<?php $__env->startSection('content'); ?>
<div style="padding: 5px; font-size:14px; " >
    <div class="row">
        
        <div class="col-3">
            <a id="btnInfoPersonal" style="width:100%" class="<?php echo e($info=='client'?'btn btn-info':'btn btn-primary'); ?>">Información personal</a>
        </div>
        <div class="col-3">
            <a id="btnDatosContacto"style="width:100%" class="<?php echo e($info=='contact'?'btn btn-info':'btn btn-primary'); ?>">Información de contacto</a>
        </div>
        <div class="col-3">
            <a id="btnInfoLaboral"style="width:100%" class="<?php echo e($info=='employment'?'btn btn-info':'btn btn-primary'); ?>">Información laboral</a>
        </div>
        <div class="col-3">
            <a id="btnInfoPatrimonial"style="width:100%" class="<?php echo e($info=='patrimonial'?'btn btn-info':'btn btn-primary'); ?>">Información patrimonial</a>
        </div>
    </div>
    <div class="row" style="margin-top: 5px">

        <div class="col-3">
            <a id="btnInfoLegal"style="width:100%" class="<?php echo e($info=='law'?'btn btn-info':'btn btn-primary'); ?>">Información Legal </a>
        </div>
        <div class="col-3">
            <a id="btnInfoCredito"style="width:100%" class="<?php echo e($info=='loan'?'btn btn-info':'btn btn-primary'); ?>">Acerca del crédito   </a>
        </div>
        <div class="col-3">
            <a id="btnPoltrataDatosPers"style="width:100%" class="<?php echo e($info=='PersonData'?'btn btn-info':'btn btn-primary'); ?>">Tratamiento de datos </a>
        </div>
        <div class="col-3">
            <a id="btnPolAutorizaciones"style="width:100%" class="<?php echo e($info=='AuthorizeProtocol'?'btn btn-info':'btn btn-primary'); ?>">Políticas y autorizaciones    </a>
        </div>
    </div> 
</div>
<div class="card mb-4" id="cardPolAutorizaciones"style="width:60%;margin:0 auto; display:none;">
    <div class="card-header">
        <i class="fa-solid fa-building-shield"></i>
        POLITICAS Y AUTORIZACIONES
    </div>
    <div class="card-body">
        <?php $__currentLoopData = $policyclients; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div style="margin-top:10px;border-radius: 25px; border:2px solid rgba(180, 158, 169, 0.2);padding:5px; ">
                <p style="font-size:14px; text-align: justify; padding:5px">
  <i class="fa-solid fa-circle-check"></i>&nbsp;<strong> <?php echo e($item->policy?->title); ?></strong>&nbsp;|&nbsp;<?php echo e($item->policy?->description); ?>

                </p>

            </div>

        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

           <?php $__currentLoopData = $policies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div style="margin-top:10px;border-radius: 25px; border:2px solid rgba(180, 158, 169, 0.2);padding:5px; ">
                    <form action="<?php echo e(url('/clientPolicies')); ?>" method="post">
                        <?php echo csrf_field(); ?>
                        <input type="hidden"name="client_id" value="<?php echo e($client?->id); ?>" id="client_id">
                        <input type="hidden"name="policy_id" value="<?php echo e($item->id); ?>" id="policy_id">
                        <p style="font-size:14px; text-align: justify; padding:5px">
                       <strong> <?php echo e($item->title); ?></strong>&nbsp;|&nbsp;<?php echo e($item->description); ?>

                        </p>
                        <div style="padding: 5px">
                            <button type="button" onclick="validar(this.parentElement,'Acepta las condiciones?')" class="btn btn-success">Aceptar</button>

                        </div>
                    </form>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


    </div>
</div>

<div class="card mb-4" id="cardPoltrataDatosPers"style="display:none;">
    <div class="card-header">
        <<i class="fa-solid fa-database"></i>
        POLITICA DE TRATAMIENTO DE DATOS PERSONALES
    </div>
    <div class="card-body">
    </div>
</div>
<div class="card mb-4" id="cardInfoPersonal"style="display:none; width:85%;margin:0 auto;">
    <div class="card-header">
        <i class="fa-solid fa-id-card"></i>
        INFORMACION PERSONAL
    </div>
    <div class="card-body">
        <div style="padding: 5px;color:rgba(180, 158, 169, 1);font-size:12px">
            Los campos marcados con * deben ser llenados obligatoriamente
        </div>
                <form autocomplete="off" action="<?php echo e(url('/clients')); ?><?php echo e($client!=null?'/'.$client->id:''); ?>" method="post" style="font-size: 14px"id="frmclient">
                    <?php echo csrf_field(); ?>
                        <input type="hidden" name="id" value="<?php echo e($client?->id); ?>" id="id" >
                    <?php if($client!=null): ?>
                        <?php echo method_field('PATCH'); ?>
                    <?php endif; ?>
                    <?php if(auth()->check()): ?>
                    <div class="row">
                        <div  class="col-4">
                            <div class="mb-3">
                                <label class="form-label" for=""> REFERENCIA </label>
                                <input style="font-size: 12px" type="text" class="form-control"value="<?php echo e($client!=null?$client->reference: old('reference')); ?>"
                                    name="reference" id="reference">
                            </div>
                        </div>
                        <div  class="col-4">
                            <div class="mb-3">
                                <label class="form-label" for=""> CALIDAD DEL TITULAR </label>
                                <select style="font-size: 12px" class="form-select" name="quality_holder" id="quality_holder">
                                <option value="">Seleccione una opción </option>
                                    <?php $__currentLoopData = $QualityHolder; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($item->id); ?>"<?php echo e($item->id==$client?->quality_holder_id?'selected':''); ?>><?php echo e($item->name); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                        </div>
                        <div class="col-4">
                            <div class="mb-3">
                                <label class="form-label" for="">TITULO VALOR </label>
                                <input type="text" style="font-size: 12px" class="form-control" name ="value_Title" value="<?php echo e($client!=null?$client->value_Title:old('value_Title')); ?>" id="value_Title"/>
                            </div>
                        </div>
                    </div>
                    <?php endif; ?>
                    <div class="row">
                        <div class="col-4">
                            <div class="mb-3">
                                <label class="form-label" for="">NOMBRES Y APELLIDOS* </label>
                                <input type="text" style="font-size: 12px" class="form-control" name ="name_last_name" value="<?php echo e($client!=null?$client->name_last_name:old('name_last_name')); ?>" id="name_last_name"/>
                            </div>
                        </div>
                        <div class="col-4">
                            <div class="mb-3">
                                <label class="form-label" for=""># DOCUMENTO*</label>
                                <input type="text" style="font-size: 12px" name="identification" id="identification" class="form-control" value="<?php echo e($client!=null?$client->identification:old('identification')); ?>">
                            </div>
                        </div>
                        <div class="col-4">
                            <div class="mb-3" >
                                <div class="row">
                                    <div class="col-8">
                                        <div class="mb-3" >
                                            <label class="form-label" for="">FECHA DE NACIMIENTO*</label>
                                            <input type="date" style="font-size: 12px" name="birth_date" class="form-control" value="<?php echo e($client!=null?$client->date_birth:old('birth_date')); ?>"
                                            id="birth_date">
                                        </div>
                                    </div>
                                    <div class="col-4">
                                        <div class="mb-3" >
                                            <label class="form-label" for="">EDAD</label>
                                            <input type="text" style="font-size: 12px" readonly class="form-control" id="age"
                                            value="<?php echo e($client!=null? \Carbon\Carbon::parse($client->date_birth)->age:''); ?>">
                                        </div>
                                    </div>
                                </div>


                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-4">
                            <div class="mb-3" >
                                <label class="form-label" for="">FECHA DE EXPEDICION*</label>
                                <input type="date" style="font-size: 12px" name="expedition_date" class="form-control" value="<?php echo e($client!=null?
                                                                                                        $client->expedition_date
                                                                                                        :old('expedition_date')); ?>"
                                                                                                        id="expedition_date">
                            </div>
                        </div>
                        <div class="col-4">
                            <div class="mb-3" >
                                <label class="form-label" for="">DIRECCION RESIDENCIA*</label>
                                <input type="text" style="font-size: 12px" class="form-control" value="<?php echo e($client!=null?$client->address:old('address')); ?>" name="address" id="address">
                            </div>
                        </div>
                        <div class="col-4">
                            <div class="mb-3">
                                <label class="form-label" for="">BARRIO* </label>
                                <input type="text" style="font-size: 12px" name="neighborhood" value="<?php echo e($client!=null?$client->neighborhood:old('neighborhood')); ?>" class="form-control" id="neighborhood">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-4">
                            <div class="mb-3" >
                            <label class="form-label" for=""> ESTADO CIVIL*</label>
                            <select name="marital_status" class="form-select" style="font-size: 12px" id="marital_status">
                            <option value="">Seleccione una opción </option>
                                    <?php $__currentLoopData = $maritalstatus; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($item->id); ?>"<?php echo e($item->id==$client?->marital_status_id?'selected':''); ?><?php echo e($item->id==old('marital_status')?'selected':''); ?>><?php echo e($item->name); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                            </div>
                        </div>
                        <div class="col-4">
                            <div class="mb-3">
                                <label class="form-label" for=""> EMAIL*</label>
                                <input type="email" value="<?php echo e($client!=null?$client->email:old('email')); ?>" style="font-size: 12px" class="form-control" name="email" id="email">
                            </div>
                        </div>
                        <div class="col-4">
                            <div class="mb-3" >
                                <label class="form-label" for=""> NIVEL DE ESTUDIOS*</label>
                                <select name="study_level" class="form-select" style="font-size: 12px" id="study_level">
                                <option value="">Seleccione una opción </option>
                                    <?php $__currentLoopData = $studylevels; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($item->id); ?>"<?php echo e($item->id==$client?->level_study_id?'selected':''); ?><?php echo e($item->id==old('study_level')?'selected':''); ?>><?php echo e($item->name); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                        </div>
                    </div>
                    <button type="submit" id="btnGuardar" class="btn btn-success"><?php echo e($client==null?'Guardar':'Actualizar'); ?></button>
                </form>

    </div>
</div>
    <div class="card mb-4" id="cardDatosContacto" style="width:85%;margin:0 auto; display: none;">
        <div class="card-header">
            <i class="fa-solid fa-address-book"></i>
            INFORMACION DE CONTACTO
        </div>
        <div class="card-body">

                    <a class="btn btn-primary"title="Crear datos de contacto" id="btnContact"><i class="fa-solid fa-square-phone-flip"></i></a>
                    <table class="table">
                        <thead>
                            <tr>
                                <th>Dato de contacto </th>
                                <th></th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $contactInfos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($item->phone_type->name.' '.$item->phone_number); ?></td>
                                <td>
                                    <form onsubmit="return validar('Desea eliminar este registro?')" action="<?php echo e(url('/contactinfo')); ?>/<?php echo e($item->id); ?>" method="POST">
                                        <?php echo csrf_field(); ?>
                                        <?php echo method_field('delete'); ?>
                                        <button title="Eliminar" class="btn btn-danger" type="submit">
                                            <i class="fa-solid fa-trash"></i>
                                        </button>
                                    </form>
                                </td>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>

        </div>
    </div>
    <div class="card mb-4" id="cardInfoLaboral" style="display:none ; width:85%;margin:0 auto;">
        <div class="card-header">
            <i class="fa-solid fa-user-tie"></i>
            INFORMACION LABORAL
        </div>
        <div class="card-body">
             <div style="padding: 5px;color:rgba(180, 158, 169, 1);font-size:12px">
                Los campos marcados con * deben ser llenados obligatoriamente
            </div>
             <form autocomplete="off" action="<?php echo e(url('/employmentInformations')); ?><?php echo e($EmploymentInformation!=null?'/'.$EmploymentInformation->id:''); ?> "method="post" style="font-size: 14px">
                        <?php echo csrf_field(); ?>
                        <?php if($EmploymentInformation!=null): ?>
                            <?php echo method_field('PATCH'); ?>
                        <?php endif; ?>
                        <input type="hidden" name="client_id" value="<?php echo e($client!=null? $client->id:''); ?>" id="client_id" >
                        <div class="row">
                            <div class="col-4">
                                <div class="mb-3">
                                    <label class="form-label" for="">
                                        EMPRESA DONDE LABORA*
                                    </label>
                                    <input type="text"value="<?php echo e($EmploymentInformation!=null?$EmploymentInformation->company_works:old('company_works')); ?>" class="form-control" name="company_works" id="company_works" style="font-size: 12px">
                                </div>
                            </div>
                            <div class="col-4">
                                <div class="mb-3">
                                    <label class="form-label" for="">
                                        NIT #*
                                    </label>
                                    <input type="text" class="form-control" value="<?php echo e($EmploymentInformation!=null?$EmploymentInformation->nit_company_work:old('nit_company_works')); ?>" name="nit_company_works" id="nit_company_works"style="font-size: 12px">
                                </div>
                            </div>
                            <div class="col-4">
                                <div class="mb-3">
                                    <label class="form-label" for="">
                                        DIRECCION OFICINA PRINCIPAL*
                                    </label>
                                    <input type="text" name="main_address" class="form-control" value="<?php echo e($EmploymentInformation!=null?$EmploymentInformation->main_address:old('main_address')); ?>" id="main_address"style="font-size: 12px">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-4">
                                <div class="mb-3">
                                    <label class="form-label" for="">
                                        DEPARTAMENTO*
                                    </label>
                                    <select class="form-select" name="state" id="state"style="font-size: 12px">
                                        <option value="">Escoge un departamento </option>
                                        <?php $__currentLoopData = $States; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($item->id); ?>"<?php echo e($item->id==$EmploymentInformation?->state_id?'selected':''); ?>><?php echo e($item->name); ?> </option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            </div>
                            <div class="col-4">
                                <div class="mb-3">
                                    <label class="form-label" for="">
                                        CIUDAD*
                                    </label>
                                    <select class="form-select" name="city" id="city"style="font-size: 12px">
                                        <option value="">Escoge una ciudad  </option>
                                        <?php $__currentLoopData = $cities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value ="<?php echo e($item->id); ?>"<?php echo e($item->id==$EmploymentInformation?->city_id?'selected':''); ?> ><?php echo e($item->name); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            </div>
                            <div class="col-4">
                                <div class="mb-3">
                                    <label class="form-label" for="">
                                        EMPRESA EN MISION
                                    </label>
                                    <input type="text" name="company_on_mission" class="form-control" value="<?php echo e($EmploymentInformation!=null?$EmploymentInformation->company_on_mission:old('company_on_mission')); ?>" id="company_on_mission"style="font-size: 12px">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-4">
                                <div class="mb-3">
                                    <label class="form-label" for="">
                                        NIT EMPRESA EN MISION
                                    </label>
                                    <input class="form-control" type="text" name="nit_company_on_mission" value="<?php echo e($EmploymentInformation!=null?$EmploymentInformation->nit:old('nit_company_on_mission')); ?>" id="nit_company_on_mission"style="font-size: 12px">
                                </div>
                            </div>
                            <div class="col-4">
                                <div class="mb-3">
                                    <label class="form-label" for="">
                                        DIRECCION SEDE
                                    </label>
                                    <input class="form-control" type="text" name="address_company_on_mission" value="<?php echo e($EmploymentInformation!=null?$EmploymentInformation->branch_address:old('address_company_on_mission')); ?>" id="address_company_on_mission"style="font-size: 12px">
                                </div>
                            </div>
                            <div class="col-4">
                                <div class="mb-3">
                                    <label class="form-label" for="">
                                        FECHA DE INGRESO*
                                    </label>
                                    <input type="date" name="entry_date" class="form-control" value="<?php echo e($EmploymentInformation!=null?$EmploymentInformation->entry_date:old('entry_date')); ?>" id="entry_date"style="font-size: 12px">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-4">
                                <div class="mb-3">
                                    <label class="form-label" for="">SALARIO MENSUAL PROMEDIO*</label>
                                    <input type="text" class="currency form-control" name="average_monthly_salary" value="$<?php echo e($EmploymentInformation!=null?number_format($EmploymentInformation->average_monthly_salary):old('average_monthly_salary')); ?>" id="average_monthly_salary"style="font-size: 12px">
                                </div>
                            </div>
                            <div class="col-4">
                                <div class="mb-3">
                                    <label class="form-label" for="">
                                        CARGO ACTUAL*
                                    </label>
                                    <input type="text" class="form-control" name="current_position" value="<?php echo e($EmploymentInformation!=null?$EmploymentInformation->current_position:old('current_position')); ?>" id="current_position"style="font-size: 12px">
                                </div>
                            </div>
                            <div class="col-4">
                                <div class="mb-3">
                                    <label class="form-label" for="">FRECUENCIA DE PAGOS*</label>
                                    <select class="form-select" name="payment_frequency" id="payment_frequency"style="font-size: 12px">
                                    <option value="">Seleccione una opción </option>
                                        <?php $__currentLoopData = $PaymentFrecuencies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($item->id); ?>" <?php echo e($item->id==$EmploymentInformation?->payment_frequency_id?'selected':''); ?>><?php echo e($item->name); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-4">
                                <div class="mb-3">
                                    <label class="form-label" for="">
                                        FECHA DE PAGO EMPRESA (FPE)*
                                    </label>
                                    <select class="form-select" name="company_payment_date" id="company_payment_date"style="font-size: 12px">
                                    <option value="">Seleccione una opción </option>
                                        <?php $__currentLoopData = $CompanyPaymentDates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($item->id); ?>"<?php echo e($item->id==$EmploymentInformation?->company_payment_date_id?'selected':''); ?>><?php echo e($item->name); ?> </option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            </div>
                            <div class="col-4">
                                <div class="mb-3">
                                    <label class="form-label" for="">
                                        FECHA DE PAGO CLIENTE (FPC)*
                                    </label>
                                    <select class="form-select" name="custemer_payment_date" id="customer_payment_date"style="font-size: 12px">
                                    <option value="">Seleccione una opción </option>
                                        <?php $__currentLoopData = $CustomerPaymentDates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($item->id); ?>"<?php echo e($item->id==$EmploymentInformation?->customer_payment_date_id?'selected':''); ?> ><?php echo e($item->name); ?> </option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            </div>
                            <div class="col-4">
                                <div class="mb-3">
                                    <label class="form-label" for="">TIPO DE CONTRATO*</label>
                                    <select class="form-select" name="contract_type" id="contract_type"style="font-size: 12px">
                                    <option value="">Seleccione una opción </option>
                                        <?php $__currentLoopData = $ContractTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($item->id); ?>"<?php echo e($item->id==$EmploymentInformation?->contract_type_id?'selected':''); ?>><?php echo e($item->name); ?> </option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-4">
                                <div class="mb-3">
                                    <label class="form-label" for="">EPS AFILIADA*</label>
                                    <select class="form-select" name="eps_affiliate" id="eps_affiliate"style="font-size: 12px">
                                    <option value="">Seleccione una opción </option>
                                        <?php $__currentLoopData = $EpsAffiliates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($item->id); ?>"<?php echo e($item->id==$EmploymentInformation?->eps_affiliate_id?'selected':''); ?> ><?php echo e($item->name); ?> </option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                         <div style="font-size:12px">        <strong>Nota:</strong>   Si su  EPS no existe  en nuestra base de datos por favor creela  <a class="btnEps" href="#" id="btnEps"> aqui</a></div>
                                </div>
                            </div>
                            <div class="col-4">
                                <div class="mb-3">
                                    <label class="form-label" for="">ARL AFILIADA*</label>
                                    <select class="form-select" name="arl_affiliate" id="arl_affiliate"style="font-size: 12px">
                                        <option value="">Seleccione una opción </option>
                                        <?php $__currentLoopData = $ArlAffiliates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($item->id); ?>" <?php echo e($item->id==$EmploymentInformation?->arl_affiliate_id?'selected':''); ?>><?php echo e($item->name); ?> </option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                    <div style="font-size:12px">  <strong>Nota:</strong> Si su ARL no existe  en nuestra base de datos por favor creela <a class="btnArl" href="#" id="btnArl">aqui</a></div>
                                </div>
                            </div>
                        </div>
                        <button type="submit" id="btnGuardar" class="btn btn-success"><?php echo e($EmploymentInformation==null?'Guardar':'Actualizar'); ?></button>
            </form>

        </div>
    </div>
    <div class="card mb-4" id="cardInfoCrediticia" style="display:none; width:85%;margin:0 auto;">
        <div class="card-header">
            <i class="fa-solid fa-credit-card"></i>
            ACERCA EL CREDITO
        </div>
        <div class="card-body">
            <div style="padding: 5px;color:rgba(180, 158, 169, 1);font-size:12px">
                <h6>Los campos marcados con * deben ser llenados obligatoriamente </h6>
            </div>

                    <form autocomplete="off" action="<?php echo e(url('/loans')); ?><?php echo e($loan!=null?'/'.$loan->id:''); ?>"method="post" style="font-size:14px">
                        <?php if($loan!=null): ?>
                            <?php echo method_field('PATCH'); ?>
                        <?php endif; ?>
                        <?php echo csrf_field(); ?>
                        <input type="hidden" name="client_id"  value="<?php echo e($client!=null? $client->id:''); ?>" id="client_id" >
                        <div class="row">
                            <div class="col-4">
                                <div class="mb-3">
                                    <label class="form-label" for="">
                                        CREDITO SOLICITADO (COP)*
                                    </label>
                                    <input class="currency form-control" type="text" name="ammount" value="$<?php echo e($loan!=null?number_format($loan->ammount):old('ammount')); ?>" id="ammount" style="font-size:12px">
                                </div>
                            </div>
                            <div class="col-4">
                                <div class="mb-3">
                                    <label class="form-label" for="">
                                        PLAZO SOLICITADO (Meses)*
                                    </label>
                                    <input class="form-control" type="number" name="term" value="<?php echo e($loan!=null?$loan->term:old('term')); ?>" id="term" style="font-size:12px">
                                </div>
                            </div>
                            <div class="col-4">
                                <div class="mb-3" >
                                    <label class="form-label" for="">
                                        TIPO DE GARANTIA*
                                    </label>
                                    <select class="form-select" name="warranty" id="warranty" style="font-size:12px">
                                    <option value="">Seleccione una opción </option>
                                        <?php $__currentLoopData = $Warranties; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($item->id); ?>"<?php echo e($item->id==$loan?->warranty_id?'selected':''); ?>><?php echo e($item->name); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <button type="submit" id="btnGuardar" class="btn btn-success"><?php echo e($loan==null?'Guardar':'Actualizar'); ?></button>
                    </form>

        </div>
    </div>
    <div class="card mb-4" id="cardInfoPatrimonial" style="width:40%;margin:0 auto;display: none;">
        <div class="card-header">
            <i class="fa-solid fa-building-user"></i>
            INFORMACION PATRIMONIAL
        </div>
        <div class="card-body">

                    <form autocomplete="off" action="<?php echo e(url('/clients/UpdatePatrimonialInformation')); ?>/<?php echo e($client!=null?$client->id:0); ?>"method="post" style="font-size:14px">
                        <?php echo csrf_field(); ?>
                        <?php echo method_field('PATCH'); ?>
                        <div class="form-check form-check-inline">
                            <label class="form-check-label">
                                <input type="checkbox" <?php echo e($client?->vehicle==1?'checked':''); ?> name="vehicle" id="vehicle">
                                POSEE VEHICULO
                            </label>
                        </div>
                        <div class="form-check form-check-inline" >
                            <label class="form-check-label" for="">
                                <input type="checkbox" name="estate" <?php echo e($client?->estate==1?'checked':''); ?> id="estate">
                                POSEE PROPIEDADES
                            </label>
                        </div>
                        <div>
                            <button type="submit" id="btnGuardar" class="btn btn-success">Actualizar</button>
                        </div>
                    </form>

        </div>
    </div>
    <div class="card mb-4" id="cardInfoLegal" style="width:85%;margin:0 auto;display: none;">
        <div class="card-header">
            <i class="fa-solid fa-scale-balanced"></i>
            INFORMACION LEGAL
        </div>
        <div class="card-body">

                    <form autocomplete="off" action="<?php echo e(url('/clients/UpdateLawInformation')); ?>/<?php echo e($client!=null?$client->id:0); ?>"method="post"style="font-size:14px">
                        <?php echo csrf_field(); ?>
                        <?php echo method_field('PATCH'); ?>
                        <div class="row">
                            <div class="col-5">
                                <div class="form-check form-check-inline" >
                                    <label class="form-check-label" for="">
                                        <input type="checkbox"  name="seizure" <?php echo e($client?->seizure==1?'checked':''); ?> id="seizure">
                                        TIENE EMBARGOS
                                    </label>
                                </div>
                            </div>
                            <div class="col-7" id="divCompanySeizure" style="display: none">
                                <div class="mb-3">
                                    <label class="form-label" for="">
                                        EMPRESA QUE LO EMBARGA
                                    </label>
                                    <input type="text" class="form-control" value="<?php echo e($client?->company_seizure); ?>" name="company_seizure"  id="company_seizure">
                                </div>
                            </div>
                        </div>
                        <div>
                            <button type="submit" id="btnGuardar" class="btn btn-success">Actualizar</button>
                        </div>
                    </form>

        </div>
    </div>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('shared/layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\api-loan\resources\views/Client/edit.blade.php ENDPATH**/ ?>