<?php if($sel_contract_sub_type == 3 || $sel_contract_sub_type == 4): ?>
<style>
    .work-remote {
        display: flex;
    }
    </style>
<?php else: ?>
<style>
    .work-remote {
        display: none;
    }
    </style>
<?php endif; ?>
<div wire:ignore.self class="modal fade modal-contract" tabindex="-1" role="dialog" id="theModal">
    <div class="modal-dialog modal-xl" role="document">
        <div class="modal-content">
            <div class="modal-header bg-primary">
                <h5 class="modal-title">
                <b>CONTRATO</b> | <?php echo e($first_name); ?> <?php echo e($last_name); ?>

                </h5>
                <h6 class="text-center text-warning" wire:loading>ESPERE UN MOMENTO POR FAVOR</h6>
            </div>
            <div class="modal-body">
                <div class="card">
                    <div class="card-body">
                        <div class="card-title">
                            <h6 class="d-inline">Nombre del Contrato: </h6>
                            <p class="d-inline float-right"><?php echo e($sel_contract_name); ?></p>
                        </div>
                        <div class="card-subtitle mb-2 text-muted">
                            <h6 class="d-inline">Tipo de Contrato: </h6>
                            <?php if($sel_contract_type != null): ?>
                            <p class="d-inline float-right"><?php echo e(DataTypeContract($sel_contract_type)); ?></p>
                            <?php endif; ?>
                            <h6 class="d-inline"> - | - </h6>
                            <h6 class="d-inline">Subtipo de Contrato: </h6>
                            <?php if($sel_contract_sub_type != null): ?>
                            <p class="d-inline float-right"><?php echo e(DataSubTypeContract($sel_contract_sub_type)); ?></p>
                            <?php endif; ?>
                        </div>
                        <div class="card-content">
                            <h6 class="d-inline">Descripción: </h6>
                            <p class="d-inline float-right"><?php echo e($sel_contract_description); ?></p>

                        </div><!-- card-content -->
                    </div><!-- card-body -->
                </div><!-- card -->
                <div class="row">

                        <div class="col-sm-12 col-md-4">
                            <div class=form-group>
                                <label for="">Fecha de Inicio</label>
                                <input type="date" class="form-control" wire:model="start_date" id="start_date" name="start_date" placeholder="Fecha de Inicio">
                                <?php $__errorArgs = ['start_date'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <span class="text-danger"><?php echo e($message); ?></span> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                        </div>
                        <div class="col-sm-12 col-md-4">
                            <div class=form-group>
                                <?php if($sel_contract_type == 2): ?>
                                <label for="">Fecha de Finalización</label>
                                <input type="date" class="form-control" wire:model="end_date" id="end_date" name="end_date" placeholder="Fecha de Finalización">
                                <?php $__errorArgs = ['end_date'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <span class="text-danger"><?php echo e($message); ?></span> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                <?php endif; ?>
                            </div>
                        </div>
                        <div class="col-sm-12 col-md-4">

                        </div>
                        <div class="col-sm-12 col-md-4">
                            <div class=form-group>
                                <label for="">Fecha de Inicio de labores</label>
                                <input type="date" class="form-control" wire:model="start_date_work" id="start_date_work" name="start_date_work" placeholder="Fecha de Inicio">
                                <?php $__errorArgs = ['start_date_work'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <span class="text-danger"><?php echo e($message); ?></span> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                        </div>
                        <div class="col-sm-12 col-md-4">
                            <div class=form-group>
                                <?php if($sel_contract_type == 2): ?>
                                <label for="">Fecha de terminación de labores</label>
                                <input type="date" class="form-control" wire:model="end_date_work" id="end_date_work" name="end_date_work" placeholder="Fecha de Finalización">
                                <?php $__errorArgs = ['end_date_work'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <span class="text-danger"><?php echo e($message); ?></span> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                <?php endif; ?>
                            </div>
                        </div>
                        <div class="col-sm-12 col-md-4">
                            <div class="form-group">
                                <?php if($sel_contract_type != 1): ?>
                                <label>Jornada laboral </label>
                                <select class="form-select" wire:model.lazy="work_day" name="work_day">
                                    <option value="">Seleccione una opción</option>
                                    <?php $__currentLoopData = DataTypeWorkDay(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($key); ?>"><?php echo e($value); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                                <?php $__errorArgs = ['work_day'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <span class="text-danger er"><?php echo e($message); ?></span>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                <?php endif; ?>
                            </div>
                        </div>
                        <div class="col-sm-6 col-md-6">
                            <div class="form-group">
                                <label>Lugar donde ha sido contratado </label>
                                <input type="text" wire:model.lazy="place_hired" class="form-control" placeholder="ej: La Paz">
                                <?php $__errorArgs = ['place_hired'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <span class="text-danger er"><?php echo e($message); ?></span>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                        </div>
                        <div class="col-sm-6 col-md-6">
                            <div class="form-group">
                                <label>Lugar donde desempeñará labores </label>
                                <input type="text" wire:model.lazy="place_work" class="form-control" placeholder="ej: Los Cabos">
                                <?php $__errorArgs = ['place_work'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <span class="text-danger er"><?php echo e($message); ?></span>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                        </div>

                        <div class="row work-remote">
                            <div class="col-sm-12 col-md-12 my-2 text-center">
                                <div class="text-divider">Gastos para Contratos de Trabajo Remoto</div>
                            </div>
                            <div class="col-sm-6 col-md-3">
                                <div class="form-group">
                                    <label>Consumo energía eléctrica </label>
                                    <input type="text" data-type="currency"  wire:model.lazy="energy_cost" class="form-control" placeholder="ej: $0.00">
                                </div>
                            </div>
                            <div class="col-sm-6 col-md-3">
                                <div class="form-group">
                                    <label>Mantenimiento medios tecnológicos </label>
                                    <input type="text" data-type="currency"  wire:model.lazy="maintenance_technology_resources_cost" class="form-control" placeholder="ej: $0.00">
                                </div>
                            </div>
                            <div class="col-sm-6 col-md-3">
                                <div class="form-group">
                                    <label>Telefonía </label>
                                    <input type="text" data-type="currency"  wire:model.lazy="phone_cost" class="form-control" placeholder="ej: $0.00">
                                </div>
                            </div>
                            <div class="col-sm-6 col-md-3">
                                <div class="form-group">
                                    <label>Otros</label>
                                    <input type="text" data-type="currency" wire:model.lazy="others_cost" class="form-control" placeholder="ej: $0.00">
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-12 col-md-12 my-2 text-center">
                            <div class="text-divider">Conceptos que no constituirán salario:</div>
                        </div>
                        <div class="col-sm-12 col-md-12 my-2">
                            <div class="form-group">
                                <label>Conceptos</label>
                                <div id="no_salary_cost_container" wire:ignore>
                                    <textarea id="no_salary_cost" data-no_salary_cost="window.livewire.find('<?php echo e($_instance->id); ?>')" class="form-control" placeholder="ej: Gastos de servicios" wire:model.debounce.9999999ms="no_salary_cost" rows="5"></textarea>
                                </div>
                                <?php $__errorArgs = ['no_salary_cost'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <span class="text-danger er"><?php echo e($message); ?></span>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                        </div>


                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-outline-primary" wire:click.prevent="resetUI()" data-bs-dismiss="modal">CERRAR</button>
                <button type="button" id="create_contract" class="btn btn-primary close-modal" wire:click.prevent="AddContractUser()">CREAR CONTRATO</button>
            </div>
        </div>
    </div>
</div>

<?php /**PATH /var/www/html/resources/views/livewire/company/contracts/create/form.blade.php ENDPATH**/ ?>