<div wire:ignore.self class="modal fade" tabindex="-1" role="dialog" id="theModalTerminate">
    <div class="modal-dialog modal-xl" role="document">
        <div class="modal-content">
            <div class="modal-header bg-primary">
                <h5 class="modal-title">
                <b>Terminación de Contrato</b>
                </h5>
                <h6 class="text-center text-warning" wire:loading>ESPERE UN MOMENTO POR FAVOR</h6>
            </div>
        <div class="modal-body">

            <div class="row">
                <div class="col-sm-12 col-md-8">
                    <div class="form-group">
                        <label>Ref. de la terminación del contrato</label>
                        <input type="text" wire:model.lazy="ref_reason_termination" class="form-control" placeholder="ej: Terminación unilateral del contrato de trabajo por justa causa" maxlength="99">
                        <?php $__errorArgs = ['name'];
$__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-12 col-md-4">
                    <div class="form-group">
                        <label>Fecha de terminación</label><br>
                        <?php echo e(\Carbon\Carbon::parse($date_termination)->day); ?> de
                                    <?php echo e(\Carbon\Carbon::parse($date_termination)->monthName); ?> de
                                    <?php echo e(\Carbon\Carbon::parse($date_termination)->year); ?>

                    </div>
                </div>

                <div class="col-sm-12 col-md-12">
                    <div class="form-group">
                        <label>Razón de la terminación del contrato</label>
                        <div id="reason_termination_container" wire:ignore>
                            <textarea id="reason_termination" data-reason_termination="window.livewire.find('<?php echo e($_instance->id); ?>')" class="form-control" wire:model.debounce.9999999ms="reason_termination" rows="5"><?php echo $reason_termination; ?></textarea>
                        </div>
                        <?php $__errorArgs = ['reason_termination'];
$__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 id="save_contract_termination" type="button" class="btn btn-primary close-modal" wire:click.prevent="TerminationContract()">TERMINAR CONTRATO</button>
        </div>
    </div>
</div>
</div>


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