<div>
    <!--*******************************************************************-->
    <!--** NOMBRE DEL COMPOTENTE: PANEL DE USUARIO                       **-->
    <!--** AUTOR: JOUNNERTH TORRES                                       **-->
    <!--** FECHA DE ACTUALIZACION: 08/04/2023                            **-->
    <!--**---------------------------------------------------------------**-->
    <!--** CONTROLADOR:  Articulo/ListadoArticulo                        **-->
    <!--**---------------------------------------------------------------**-->
    <!--** ESTE COMPONENTE SIRVE PARA LISTAR TODOSLOS  USUARIOS DEL      **-->
    <!--** SISTEMA Y ESTA COMPUESTO POR:                                 **-->
    <!--**   # TABLA DONDE SE DESPLIEGA LA LISTA DE USUARIOS             **-->
    <!--**   # BARRA DE BUSQUEDA                                         **-->
    <!--*******************************************************************-->
    <!--** TITULO                                                        **-->
    <!--*******************************************************************-->
    <?php $__env->startSection('titulo'); ?>
        <h5>Listado de registro por cirujaro</h5>
    <?php $__env->stopSection(); ?>
    <div class="col-md-12 p-1 m-0">
        <!--******************************************************************-->
        <!--** AGREGAR INTERVENCION                                         **-->
        <!--******************************************************************-->
        <div class="card">
            <div class="card-header">
                <div class="row">
                    <div class=" col-12 col-md-6 col-lg-4">
                        <?php
if (! isset($_instance)) {
    $html = \Livewire\Livewire::mount('buscador.panel.cirujanos')->html();
} elseif ($_instance->childHasBeenRendered('l336442902-0')) {
    $componentId = $_instance->getRenderedChildComponentId('l336442902-0');
    $componentTag = $_instance->getRenderedChildComponentTagName('l336442902-0');
    $html = \Livewire\Livewire::dummyMount($componentId, $componentTag);
    $_instance->preserveRenderedChild('l336442902-0');
} else {
    $response = \Livewire\Livewire::mount('buscador.panel.cirujanos');
    $html = $response->html();
    $_instance->logRenderedChild('l336442902-0', $response->id(), \Livewire\Livewire::getRootElementTagName($html));
}
echo $html;
?>
                    </div>
                    <div class="col-12 col-md-6 col-lg-1">
                        <label for="buscador_registro">
                            <small>
                                <strong>
                                    Listar
                                </strong>
                            </small>
                        </label>
                        <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.datatable.numeroregistros','data' => ['msj' => ' ']]); ?>
<?php $component->withName('datatable.numeroregistros'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['msj' => ' ']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                    </div>
                    <div class="col-md-8 d-none d-lg-block">
                        <div class="d-flex justify-content-end">
                            <?php if(!$buscador_registro == null): ?>
                                <span class="h6 text-azul-intenzo">Resgistros
                                    encontrados:&nbsp;<?php echo e($count_busqueda_pacientes); ?>

                                </span>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-md-12 p-1 m-0">
        <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.card.simple','data' => []]); ?>
<?php $component->withName('card.simple'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
             <?php $__env->slot('card_body', null, []); ?> 
                <div role="buscar_articulo" wire:loading.remove wire:target="buscador_paciente">
                    <?php if(!$buscador_registro == null): ?>
                        <div wire:loading.remove>
                            <div class="table-responsive">
                                <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.datatable.tablelg','data' => []]); ?>
<?php $component->withName('datatable.tablelg'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
                                    <!--************************************************************-->
                                    <!--** TITULO Y BUSCADOR DE USUARIOS                         **-->
                                    <!--************************************************************-->
                                     <?php $__env->slot('table_head', null, []); ?> 
                                        <tr>
                                            <!--*******************************************************-->
                                            <!--**  CONDICION Y MECANISMO PARA HACER EL ORDENAMIENTO **-->
                                            <!--** POR COLUNCA                                       **-->
                                            <!--** SE DEBE AJUSTAR UN TAMANO FIJO A LAS COLUMNAS     **-->
                                            <!--** CON EL FIN DE EVITAR PROBLEMAS AL HACER           **-->
                                            <!--** EL REFRSCAMIENTO DEL ORDENAMIENTO                 **-->
                                            <!--*******************************************************-->
                                            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.datatable.th','data' => ['nombre' => 'Datos de la intervencion','columna' => 'cirujano','style' => 'width:100px; min-width:100px; max-width:100px;']]); ?>
<?php $component->withName('datatable.th'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['nombre' => 'Datos de la intervencion','columna' => 'cirujano','style' => 'width:100px; min-width:100px; max-width:100px;']); ?>
                                                <?php if($campo_orden == 'clinica'): ?>
                                                    <?php if($ordenado == 'asc'): ?>
                                                        <i class="fas fa-sort-up float-right mt-1"></i>
                                                    <?php else: ?><i class="fas fa-sort-down float-right mt-1"></i>
                                                    <?php endif; ?>
                                                <?php else: ?>
                                                    <i class="fas fa-sort float-right mt-1"></i>
                                                <?php endif; ?>
                                             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                                            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.datatable.th','data' => ['nombre' => 'Datos del paciente','columna' => 'paciente','style' => 'width:100px; min-width:100px; max-width:100px;']]); ?>
<?php $component->withName('datatable.th'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['nombre' => 'Datos del paciente','columna' => 'paciente','style' => 'width:100px; min-width:100px; max-width:100px;']); ?>
                                             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                                            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.datatable.th','data' => ['nombre' => 'Datos de la factura','columna' => 'intervencion','style' => 'width:120px; min-width:120px;max-width:120px;']]); ?>
<?php $component->withName('datatable.th'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['nombre' => 'Datos de la factura','columna' => 'intervencion','style' => 'width:120px; min-width:120px;max-width:120px;']); ?>
                                             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                                            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.datatable.th','data' => ['nombre' => 'Monto','columna' => 'monto','style' => 'width:45px; min-width:45px;max-width:55px;']]); ?>
<?php $component->withName('datatable.th'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['nombre' => 'Monto','columna' => 'monto','style' => 'width:45px; min-width:45px;max-width:55px;']); ?>
                                             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                                            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.datatable.th','data' => ['nombre' => 'Estados','columna' => 'status','style' => 'width:45px; min-width:45px;max-width:55px;']]); ?>
<?php $component->withName('datatable.th'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['nombre' => 'Estados','columna' => 'status','style' => 'width:45px; min-width:45px;max-width:55px;']); ?>
                                             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                                            <th style="width:45px; min-width:45px;max-width:55px;">
                                                <div class="d-flex justify-content-end">
                                                    <small><strong>Opciones</strong> </small>
                                                </div>
                                            </th>
                                        </tr>
                                     <?php $__env->endSlot(); ?>
                                    <!--*******************************************************-->
                                    <!--**  VALORES DE LAS  COLUNAS                          **-->
                                    <!--*******************************************************-->
                                     <?php $__env->slot('table_body', null, []); ?> 
                                        <?php if($count_busqueda_pacientes > 0): ?>
                                            <?php $__currentLoopData = $registros; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $registro): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <!-- POR ALGUNA RAZON DEL DIABLO TENGO QUE INSERTAR UNA  FILA  -->
                                                <tr></tr>
                                                <?php if($registro->activo == '0'): ?>
                                                    <tr class="d-none">
                                                    <?php else: ?>
                                                    <tr>
                                                <?php endif; ?>
                                                <td class="d-none"><small><?php echo e($registro->id); ?></small></td>

                                                <td>
                                                    <small>
                                                        <div>
                                                            <span class="bg-dark text-light p-0 m-0 rounded-sm">Cirujano:&nbsp;<?php echo e($registro->cirujano); ?></span>    
                                                            Anestesiologo:&nbsp;<?php echo e($registro->anestesiologo); ?>

                                                        </div>
                                                        <div>
                                                            <span><?php echo e($registro->clinica); ?></span>
                                                            Fecha de
                                                            intervencion:&nbsp;<?php echo e(date_format(date_create($registro->fecha_iq), 'd/m/Y')); ?>

                                                        </div>
                                                        <div>
                                                            Intervencion:&nbsp;<?php echo e($registro->intervencion); ?>

                                                        </div>
                                                    </small>
                                                </td>
                                                <td>
                                                    <small>
                                                        <div>
                                                            Documentacion:&nbsp;<?php echo e($registro->documento); ?>

                                                            Genero:&nbsp;
                                                            <?php if($registro->genero == 'F'): ?>
                                                                <span class="text-dark">Femenino</span>
                                                            <?php else: ?>
                                                                <span class="text-dark">Masculino</span>
                                                            <?php endif; ?>
                                                        </div>
                                                        <div>
                                                            Nombre:&nbsp;<?php echo e($registro->nombres . ' ' . $registro->apellidos); ?>

                                                        </div>
                                                        <div>
                                                            Fecha de
                                                            nacimiento:&nbsp;<?php echo e(date_format(date_create($registro->created_at), 'd/m/Y')); ?>

                                                            Edad:&nbsp;<?php echo e($registro->edad); ?>

                                                        </div>
                                                    </small>
                                                </td>
                                                <td>
                                                    <div>
                                                        <small>
                                                            Codigo:&nbsp;<?php echo e($registro->codigo); ?>

                                                        </small>
                                                    </div>
                                                    <div>
                                                        <small>
                                                            Nro factura:&nbsp;<?php echo e($registro->nro_factura); ?>

                                                        </small>
                                                    </div>
                                                    <div>
                                                        <small>
                                                            Fecha
                                                            facrura:&nbsp;<?php echo e(date_format(date_create($registro->fecha_factura), 'd/m/Y hh:mm:ss')); ?>

                                                        </small>
                                                    </div>
                                                </td>
                                                <td style="width:45px; min-width:45px;max-width:55px;">
                                                    <div>
                                                        <small>
                                                            Tasa:&nbsp;<?php echo e($registro->monto_tasa); ?>

                                                        </small>
                                                    </div>
                                                    <div>
                                                        <small>
                                                            Bsf&nbsp;<?php echo e($registro->monto); ?>

                                                        </small>
                                                    </div>
                                                    <div>
                                                        <small>
                                                            $&nbsp;<?php echo e(number_format($registro->monto / $registro->monto_tasa, 2, '.', '')); ?>

                                                        </small>
                                                    </div>
                                                </td>
                                                <td style="width:45px; min-width:45px;max-width:55px;">
                                                    <div>
                                                        <small>
                                                            <!--********************************************************-->
                                                            <!--**  LA COLUMNA IMPORTADO                              **-->
                                                            <!--**  SE COLOCA UNA CONDICIO                            **-->
                                                            <!--**  CUANDO EL VALOR VIENE EN 0 SIGNIFICA NO IMPORTADO **-->
                                                            <!--**  PERO SI VIENE EN 1 SIGNIFICA QUE SI ES IMPORTADO  **-->
                                                            <!--********************************************************-->
                                                            <?php if($registro->status == 'N'): ?>
                                                                <span class="badge  bg-dark"><strong
                                                                        class="text-danger">Sin
                                                                        pagos</strong></span>
                                                            <?php elseif($registro->status == 'P'): ?>
                                                                <span class="badge  bg-dark"><strong
                                                                        class="verde-neon">Pagado</strong></span>
                                                            <?php elseif($registro->status == 'D'): ?>
                                                                <span class="badge  bg-dark"><strong
                                                                        class="text-warning">Posee
                                                                        deuda</strong></span>
                                                            <?php endif; ?>
                                                        </small>
                                                    </div>
                                                    <div>
                                                        <small>
                                                            <!--********************************************************-->
                                                            <!--**  LA COLUMNA IMPORTADO                              **-->
                                                            <!--**  SE COLOCA UNA CONDICIO                            **-->
                                                            <!--**  CUANDO EL VALOR VIENE EN 0 SIGNIFICA NO IMPORTADO **-->
                                                            <!--**  PERO SI VIENE EN 1 SIGNIFICA QUE SI ES IMPORTADO  **-->
                                                            <!--********************************************************-->
                                                            <?php if($registro->activo == '1'): ?>
                                                                <span class="badge  bg-dark"><strong
                                                                        class="verde-neon">Activo</strong></span>
                                                            <?php elseif($registro->activo == '2'): ?>
                                                                <span class="badge  bg-dark"><strong
                                                                        class="text-gris-neon">Desactivado</strong></span>
                                                            <?php endif; ?>
                                                        </small>
                                                    </div>
                                                </td>
                                                <td style="width:45px; min-width:45px;max-width:55px;">
                                                    <!--***************************************-->
                                                    <!-- EL BOTON QUE ACTIVA A LA           ***-->
                                                    <!-- FUNCION QUE SE ENCARGA DE MOSTAR Y ***-->
                                                    <!-- OCULTAR LAS FILAS CON INFORMACION  ***-->
                                                    <!-- ADICIONALES EN EL DATA TABLE       ***-->
                                                    <!--***************************************-->
                                                    <div class="d-flex justify-content-end">
                                                        <?php if($registro->activo == '1'): ?>
                                                            <button
                                                                class="btn btn-sm border-dark bg-azul-intenzo rounded border-3 shadow text-gris-neon  p-1"
                                                                data-bs-toggle="modal"
                                                                data-bs-target="#modal_desactivar_paciente"
                                                                data-bs-placement='top' data-bs-toggle='tooltip'
                                                                title="Activar paciente"
                                                                wire:click="seleccionar_paciente('<?php echo e($registro->id); ?>')">
                                                                <i class="fas fa-ban"></i>
                                                            </button>
                                                        <?php elseif($registro->activo == '2'): ?>
                                                            <button
                                                                class="btn btn-sm border-dark bg-azul-intenzo rounded border-3 shadow text-verde-neon  p-1"
                                                                data-bs-toggle="modal"
                                                                data-bs-target="#modal_activar_paciente"
                                                                data-bs-placement='top' data-bs-toggle='tooltip'
                                                                title="Activar paciente"
                                                                wire:click="seleccionar_paciente('<?php echo e($registro->id); ?>')">
                                                                <i class="fa-solid fa-check"></i>
                                                            </button>
                                                        <?php endif; ?>

                                                        &nbsp;
                                                        <a href="<?php echo e(asset('registro/actualizar/' . $registro->id)); ?>"
                                                            class="btn btn-sm border-dark bg-azul-intenzo rounded border-3 shadow text-warning  p-1"
                                                            title="Editar Perfil">
                                                            <i class="fas fa-edit"></i>
                                                        </a>
                                                    </div>
                                                    <div class="d-flex justify-content-end">
                                                        <a href="<?php echo e(asset('registro/pagos/' . $registro->id)); ?>"
                                                            class="btn btn-sm border-dark bg-azul-intenzo rounded border-3  shadow text-verde-neon  p-1 mt-1"
                                                            title="Agregar Pago">
                                                            <i class="fas fa-money-bill-wave"></i>
                                                        </a>
                                                        &nbsp;
                                                        <button
                                                            class="btn btn-sm border-dark bg-azul-intenzo rounded border-3 shadow text-danger p-1 mt-1"
                                                            data-bs-toggle="modal"
                                                            data-bs-target="#modal_eliminar_paciente"
                                                            data-bs-placement='top' data-bs-toggle='tooltip'
                                                            title="Activar paciente"
                                                            wire:click="seleccionar_paciente('<?php echo e($registro->id); ?>')">
                                                            <i class="fas fa-trash-alt"></i>
                                                        </button>
                                                    </div>
                                                </td>
                                                </tr>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php else: ?>
                                            <!--******************************************************-->
                                            <!--**  MENSAJE: USER NO ENCONTRADO                      **-->
                                            <!--******************************************************-->
                                            <tr class="table-secondary text-secondary ">
                                                <td colspan=9 style="height:65px; max-height:65px;">
                                                    <div class="d-flex justify-content-center">
                                                        <small> No se encontro ningun paciente relacionado con la
                                                            busqueda:
                                                            <strong class="text-secondary">
                                                                <?php echo e($valor_busqueda); ?>.</strong>
                                                            <br>
                                                            favor validar nueva mente.</small>
                                                    </div>
                                                </td>
                                            <tr>
                                        <?php endif; ?>
                                     <?php $__env->endSlot(); ?>
                                     <?php $__env->slot('table_footer', null, []); ?> 
                                     <?php $__env->endSlot(); ?>
                                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                            </div>
                        </div>
                    <?php else: ?>
                        <div wire:loading.remove>
                            <div class="m-5">
                                <div class="d-flex justify-content-center">
                                    <div class="text-secondary" align="center">
                                        <h5>Importante</h5>
                                        <strong class="text-secondary">
                                            Para buscar los registros relacionados un paciente debemos de colocar el
                                            nombre,
                                            apellido o el número de documento del paciente que queremos encontrar.
                                        </strong>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php endif; ?>
                    <div>
                        <div class="d-flex justify-content-center">
                            <div class="text-secondary" align="center">
                                <div class="m-5" wire:loading>
                                    <div class="spinner-border text-secondary" role="status">
                                        <span class="visually-hidden">Loading...</span>
                                    </div>
                                    <div>
                                        <strong>Buscando</strong>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
             <?php $__env->endSlot(); ?>
             <?php $__env->slot('card_footer', null, []); ?> 
                <?php if(!$buscador_registro == null): ?>
                    <div class="p-1"><?php echo e($registros->links()); ?></div>
                <?php endif; ?>
             <?php $__env->endSlot(); ?>
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
            <div>
                <!--********************************************-->
                <!--** MODAL ACTIVAR REGISTRO                 **-->
                <!--********************************************-->
                <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.modal.simple','data' => ['titulo' => 'Activar paciente','identificador' => 'modal_activar_paciente','class' => 'my-1 mx-3','msj' => 'Activando paciente','accion' => 'activar_paciente','preparar' => 'seleccionar_paciente','msjpreparar' => 'Buscando paciente','tipo' => 'md']]); ?>
<?php $component->withName('modal.simple'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['titulo' => 'Activar paciente','identificador' => 'modal_activar_paciente','class' => 'my-1 mx-3','msj' => 'Activando paciente','accion' => 'activar_paciente','preparar' => 'seleccionar_paciente','msjpreparar' => 'Buscando paciente','tipo' => 'md']); ?>
                     <?php $__env->slot('body', null, []); ?> 
                        <div wire:loading.remove>
                            <div align="center">
                                <h1> <i class="fa-solid fa-check text-success"></i></h1>
                                <div class="text-secondary"> Confirme si desea activar el paciente numero: <strong
                                        class="text-dark"><?php echo e($codigo); ?></strong> del
                                    paciente: <strong class="text-dark"><?php echo e($paciente); ?></strong>, Numero de
                                    documento: <strong class="text-dark"><?php echo e($documento); ?></strong>,datos de la
                                    intervencion: <strong class="text-dark"><?php echo e($intervencion); ?></strong> Cirujano:
                                    <strong class="text-dark"><?php echo e($cirujano); ?></strong>
                                    del dia: <strong class="text-dark"><?php echo e($fecha_intervencion); ?></strong>.
                                </div>
                                <small class="text-secondary">Si esta seguro pulsar Activar, si no desea activar el
                                    paciente pulse cancelar.</small>
                            </div>
                        </div>
                     <?php $__env->endSlot(); ?>
                     <?php $__env->slot('footer', null, []); ?> 
                        <div wire:loading.remove>
                            <!--****************************************************-->
                            <!--** BOTONES DEL MODAL                              **-->
                            <!--****************************************************-->
                            <div class="d-flex justify-content-end mt-0 mb-2 p-0">
                                <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.btn.cancelar','data' => ['accion' => 'resetear']]); ?>
<?php $component->withName('btn.cancelar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['accion' => 'resetear']); ?>Cancelar <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                                &nbsp;
                                <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.btn.guardar','data' => ['accion' => 'activar_paciente']]); ?>
<?php $component->withName('btn.guardar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['accion' => 'activar_paciente']); ?>Activar <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                            </div>
                        </div>
                     <?php $__env->endSlot(); ?>
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                <!--********************************************-->
                <!--** MODAL DESACTIVAR REGISTRO               **-->
                <!--********************************************-->
                <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.modal.simple','data' => ['titulo' => 'Desactivar paciente','identificador' => 'modal_desactivar_paciente','class' => 'my-1 mx-3','msj' => 'Desactivando paciente','accion' => 'desactivar_paciente','preparar' => 'seleccionar_paciente','msjpreparar' => 'Buscando paciente','tipo' => 'md']]); ?>
<?php $component->withName('modal.simple'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['titulo' => 'Desactivar paciente','identificador' => 'modal_desactivar_paciente','class' => 'my-1 mx-3','msj' => 'Desactivando paciente','accion' => 'desactivar_paciente','preparar' => 'seleccionar_paciente','msjpreparar' => 'Buscando paciente','tipo' => 'md']); ?>
                     <?php $__env->slot('body', null, []); ?> 
                        <div wire:loading.remove>
                            <div align="center">
                                <h1> <i class="fas fa-ban text-secondary"></i></h1>
                                <div class="text-secondary"> Confirme si desea desactivar el paciente numero:
                                    <strong class="text-dark"><?php echo e($codigo); ?></strong> del
                                    paciente: <strong class="text-dark"><?php echo e($paciente); ?></strong>, Numero de
                                    documento: <strong class="text-dark"><?php echo e($documento); ?></strong>,datos de la
                                    intervencion: <strong class="text-dark"><?php echo e($intervencion); ?></strong> Cirujano:
                                    <strong class="text-dark"><?php echo e($cirujano); ?></strong>
                                    del dia: <strong class="text-dark"><?php echo e($fecha_intervencion); ?></strong>.
                                </div>
                                <small class="text-secondary">Si esta seguro pulsar desactivar, si no desea activar
                                    el
                                    paciente pulse cancelar.</small>
                            </div>
                        </div>
                     <?php $__env->endSlot(); ?>
                     <?php $__env->slot('footer', null, []); ?> 
                        <div wire:loading.remove>
                            <!--****************************************************-->
                            <!--** BOTONES DEL MODAL                              **-->
                            <!--****************************************************-->
                            <div class="d-flex justify-content-end mt-0 mb-2 p-0">
                                <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.btn.cancelar','data' => ['accion' => 'resetear']]); ?>
<?php $component->withName('btn.cancelar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['accion' => 'resetear']); ?>Cancelar <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                                &nbsp;
                                <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.btn.guardar','data' => ['accion' => 'desactivar_paciente']]); ?>
<?php $component->withName('btn.guardar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['accion' => 'desactivar_paciente']); ?>Desactivar <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                            </div>
                        </div>
                     <?php $__env->endSlot(); ?>
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                <!--********************************************-->
                <!--** MODAL ELIMINAR REGISTRO                 **-->
                <!--********************************************-->
                <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.modal.simple','data' => ['titulo' => 'Eliminar paciente','identificador' => 'modal_eliminar_paciente','class' => 'my-1 mx-3','msj' => 'Eliminando paciente','accion' => 'eliminar_paciente','preparar' => 'seleccionar_paciente','msjpreparar' => 'Buscando paciente','tipo' => 'md']]); ?>
<?php $component->withName('modal.simple'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['titulo' => 'Eliminar paciente','identificador' => 'modal_eliminar_paciente','class' => 'my-1 mx-3','msj' => 'Eliminando paciente','accion' => 'eliminar_paciente','preparar' => 'seleccionar_paciente','msjpreparar' => 'Buscando paciente','tipo' => 'md']); ?>
                     <?php $__env->slot('body', null, []); ?> 
                        <div wire:loading.remove>
                            <div align="center">
                                <h1> <i class="fas fa-trash-alt text-danger"></i></h1>
                                <div class="text-secondary"> Confirme si desea eliminar el paciente numero: <strong
                                        class="text-dark"><?php echo e($codigo); ?></strong> del
                                    paciente: <strong class="text-dark"><?php echo e($paciente); ?></strong>, Numero de
                                    documento: <strong class="text-dark"><?php echo e($documento); ?></strong>,datos de la
                                    intervencion: <strong class="text-dark"><?php echo e($intervencion); ?></strong> Cirujano:
                                    <strong class="text-dark"><?php echo e($cirujano); ?></strong>
                                    del dia: <strong class="text-dark"><?php echo e($fecha_intervencion); ?></strong>.
                                </div>
                                <div><strong class="text-dark">Advertencia</strong></div>
                                <div> <small class="text-secondary"> Si el paciente es eliminado. no aparecera en
                                        ningun
                                        reporte.</small></div>
                                <small class="text-secondary">Si esta seguro pulsar Eliminar, si no desea eliminar
                                    el
                                    paciente pulse cancelar.</small>
                            </div>
                        </div>
                     <?php $__env->endSlot(); ?>
                     <?php $__env->slot('footer', null, []); ?> 
                        <div wire:loading.remove>
                            <!--****************************************************-->
                            <!--** BOTONES DEL MODAL                              **-->
                            <!--****************************************************-->
                            <div class="d-flex justify-content-end mt-0 mb-2 p-0">
                                <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.btn.cancelar','data' => ['accion' => 'resetear']]); ?>
<?php $component->withName('btn.cancelar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['accion' => 'resetear']); ?>Cancelar <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                                &nbsp;
                                <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.btn.guardar','data' => ['accion' => 'eliminar_paciente']]); ?>
<?php $component->withName('btn.guardar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['accion' => 'eliminar_paciente']); ?>Eliminar <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                            </div>
                        </div>
                     <?php $__env->endSlot(); ?>
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
            </div>
    </div>
</div>
<?php /**PATH C:\laragon\www\SistemaMedicoV1\resources\views/livewire/buscador/por-cirujano.blade.php ENDPATH**/ ?>