<div>
    <!--*******************************************************************-->
    <!--** NOMBRE DEL COMPOTENTE: PANEL DE CIRUJANO MOVIL                **-->
    <!--** 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                                         **-->
    <!--*******************************************************************-->
    <div>
        <!--*******************************************************************-->
        <!--** TITULO                                                        **-->
        <!--*******************************************************************-->
        <?php $__env->startSection('titulo'); ?>
            Panel de cirujano
        <?php $__env->stopSection(); ?>
        <div class="row">
            <div class="col-md-12 pt-2">
                <!--******************************************************************-->
                <!--** AGREGAR CIRUJANO MOVIL                                       **-->
                <!--******************************************************************-->
                <div class="d-grid gap-2 px-1 pb-1">
                    <button class="btn btn-azul-intenzo text-white" data-bs-toggle="modal"
                        data-bs-target="#modal_agregar_cirujano" data-bs-placement='top' data-bs-toggle='tooltip'>
                        Registrar un nuevo cirujano
                        <i class="fa-solid fa-floppy-disk"></i>
                    </button>
                </div>
            </div>
            <div class="col-12 py-2">
                <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.card.lg','data' => []]); ?>
<?php $component->withName('card.lg'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
                     <?php $__env->slot('card_head', null, []); ?> 
                        <div class="row ">
                            <div class="col-6" align="left">
                                <span class="h6">Lista de cirujanos</span>
                            </div>
                            <div class="col-6" align="right">
                                <span> <small>Cirujanos listados:&nbsp;
                                        <span class="badge bg-secondary my-1">
                                            <?php echo e($count_cirujanos); ?>

                                    </small>
                                </span>
                            </div>
                        </div>
                        <!--*******************************************************-->
                        <!--**  MENSAJE: MIESTRA SE BUSCAN EL USUARIOS          **-->
                        <!--*******************************************************-->
                        <div wire:loading wire:target="buscador_cirujano">
                            <strong>Buscando articulos</strong>
                            <span class="spinner-border spinner-border-sm" role="status">
                                <span class="visually-hidden">Loading...</span>
                            </span>
                        </div>
                     <?php $__env->endSlot(); ?>
                     <?php $__env->slot('card_body', null, []); ?> 
                        <div role="buscar_articulo" wire:loading.remove wire:target="buscador_cirujano">
                            <?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, []); ?> 
                                    <!--************************************************************-->
                                    <!--** TITULO Y BUSCADOR DE USUARIOS                         **-->
                                    <!--************************************************************-->
                                    <tr>
                                        <td align="center">
                                            <div class=" col-12 ">
                                                <div class="flex-fill">
                                                    <div class="input-group input-group-sm  flex-grow-1">
                                                        <input type="text"
                                                            class="form-control bg-light border-end-0 "
                                                            placeholder="Buscar usuario" id='buscador_cirujano'
                                                            name='buscador_cirujano'
                                                            wire:model.debounce.1000ms="buscador_cirujano"
                                                            autocomplete="off">
                                                        <span
                                                            class="input-group-text input-group-text-sm bg-light text-secondary border-start-0"><i
                                                                class="fa-solid fa-magnifying-glass"></i></span>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                 <?php $__env->endSlot(); ?>
                                <!--*******************************************************-->
                                <!--**  VALORES DE LAS  COLUNAS                          **-->
                                <!--*******************************************************-->
                                 <?php $__env->slot('table_body', null, []); ?> 
                                    <?php if($count_cirujanos_busqueda > 0): ?>
                                        <?php $__currentLoopData = $cirujanos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cirujano): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <?php if($cirujano->activo == '0'): ?>
                                                <tr class="d-none">
                                                <?php else: ?>
                                                <tr>
                                            <?php endif; ?>
                                            <td>
                                                <div class="d-flex justify-content-between">
                                                    <div>
                                                        <small>ID:&nbsp;<?php echo e($cirujano->id); ?></small>
                                                        <small>
                                                            Nro Documento:&nbsp;
                                                            <?= str_ireplace($buscador_cirujano, '<mark class="bg-dark text-light p-0 m-0 rounded-sm" > <strong>  ' . $buscador_cirujano . '</strong></mark>', $cirujano->documento) ?>
                                                        </small>
                                                    </div>
                                                    <div>
                                                        <small align="right">
                                                            <!--********************************************************-->
                                                            <!--**  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($cirujano->activo == '1'): ?>
                                                                <span class="badge  bg-azul-intenzo shadow"><strong
                                                                        class="verde-neon">Activo</strong></span>
                                                            <?php elseif($cirujano->activo == '2'): ?>
                                                                <span class="badge  bg-azul-intenzo shadow"><strong
                                                                        class="text-gris-neon">Desactivado</strong></span>
                                                            <?php endif; ?>
                                                        </small>
                                                    </div>
                                                </div>
                                                <div>
                                                    <div>
                                                        <small>
                                                            Cirujano:&nbsp;
                                                            <?= str_ireplace($buscador_cirujano, '<mark class="bg-dark text-light p-0 m-0 rounded-sm" > <strong>  ' . $buscador_cirujano . '</strong></mark>', $cirujano->nombre) ?>
                                                        </small>
                                                    </div>
                                                    <div>
                                                        <small>
                                                            Genero:&nbsp;
                                                            <!--********************************************************-->
                                                            <!--**  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($cirujano->genero == 'F'): ?>
                                                                Femenino&nbsp;<i class="fa-solid fa-mercury"></i>
                                                            <?php elseif($cirujano->genero == 'M'): ?>
                                                                Masculino&nbsp;<i class="fa-solid fa-mars"></i>
                                                            <?php endif; ?>
                                                        </small>
                                                    </div>
                                                </div>
                                                <!--******************************************************-->
                                                <!--**  OPCIONES PARA EDITAR Y ELIMINAR EN MOVIL        **-->
                                                <!--******************************************************-->
                                                <div class="d-flex justify-content-end">
                                                    <button
                                                        class="btn btn-sm border-primary  bg-azul-intenzo rounded border-3 shadow text-white"
                                                        data-bs-toggle="modal"
                                                        data-bs-target="#modal_actualizar_cirujano"
                                                        data-bs-placement='top' data-bs-toggle='tooltip'
                                                        title="Actualizar datos del cirujano"
                                                        wire:click="seleccionar_cirujano('<?php echo e($cirujano->id); ?>')">
                                                        Actualizar&nbsp;<i class="text-warning fas fa-trash-alt"></i>
                                                    </button>
                                                    &nbsp;
                                                    <button
                                                        class="btn btn-sm border-primary  bg-azul-intenzo rounded border-3 shadow text-white"
                                                        data-bs-toggle="modal" data-bs-target="#modal_eliminar_cirujano"
                                                        data-bs-placement='top' data-bs-toggle='tooltip'
                                                        title="Eliminar cirujano"
                                                        wire:click="seleccionar_cirujano('<?php echo e($cirujano->id); ?>')" >
                                                        Eliminar&nbsp;<i class="text-danger  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 cirujano relacionado con la
                                                        busqueda:
                                                        <strong class="text-secondary">
                                                            <?php echo e($buscador_cirujano); ?>.</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>
                     <?php $__env->endSlot(); ?>
                     <?php $__env->slot('card_footer', null, []); ?> 
                        <div>
                            <small>
                                <div><?php echo e($cirujanos->onEachSide(0,5)->links()); ?></div>
                            </small>
                        </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>
    <!--******************************************************-->
    <!--**  MODALES                                         **-->
    <!--******************************************************-->
    <div>
        <!--********************************************-->
        <!--** 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 cirujano','identificador' => 'modal_eliminar_cirujano','msj' => 'Eliminando cirujano','accion' => 'eliminar_cirujano','preparar' => 'seleccionar_cirujano','msjpreparar' => 'Buscando cirujano','tipo' => 'md']]); ?>
<?php $component->withName('modal.simple'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['titulo' => 'Eliminar cirujano','identificador' => 'modal_eliminar_cirujano','msj' => 'Eliminando cirujano','accion' => 'eliminar_cirujano','preparar' => 'seleccionar_cirujano','msjpreparar' => 'Buscando cirujano','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 cirujano: <strong
                                class="text-dark"><?php echo e($this->nombre); ?></strong>.
                        </div>
                        <div><strong class="text-dark">Advertencia</strong></div>
                        <div> <small class="text-secondary"> Si el cirujano es eliminada. no aparecera
                                en ningun reporte.</small></div>
                        <small class="text-secondary">Si esta seguro pulsar Eliminar, si no desea omitir la
                            operacion
                            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_cirujano']]); ?>
<?php $component->withName('btn.guardar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['accion' => 'eliminar_cirujano']); ?>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; ?>

        <!--********************************************-->
        <!--** MODAL ACTUALIZAR REGISTRO                **-->
        <!--********************************************-->
        <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.modal.simple','data' => ['titulo' => 'Actualizar cirujano','identificador' => 'modal_actualizar_cirujano','msj' => 'Actualizar cirujano','accion' => 'actualizar_cirujano','preparar' => 'seleccionar_cirujano','msjpreparar' => 'Buscando cirujano','tipo' => 'md']]); ?>
<?php $component->withName('modal.simple'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['titulo' => 'Actualizar cirujano','identificador' => 'modal_actualizar_cirujano','msj' => 'Actualizar cirujano','accion' => 'actualizar_cirujano','preparar' => 'seleccionar_cirujano','msjpreparar' => 'Buscando cirujano','tipo' => 'md']); ?>
             <?php $__env->slot('body', null, []); ?> 
                <div wire:loading.remove>
                    <div align="center">
                        <!--***************************-->
                        <!--** TIPODOCUMENTO         **-->
                        <!--***************************-->
                        <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.form.lw.selectlabel','data' => ['label' => 'Tipo de documento','msj' => 'Seleccione el tipo','identificador' => 'tipo_documento','atributo' => 'tipo_documento']]); ?>
<?php $component->withName('form.lw.selectlabel'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Tipo de documento','msj' => 'Seleccione el tipo','identificador' => 'tipo_documento','atributo' => 'tipo_documento']); ?>
                            <option value="C">Cedula</option>
                            <option value="P">Pasaporte</option>
                            <option value="O">Otros</option>
                         <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                        <!--***************************-->
                        <!--** DOCUMENTO              **-->
                        <!--***************************-->
                        <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.form.lw.inputlabel','data' => ['label' => 'Documento','msj' => 'Inserte numero de documento','identificador' => 'documento','maxlength' => '14']]); ?>
<?php $component->withName('form.lw.inputlabel'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Documento','msj' => 'Inserte numero de documento','identificador' => 'documento','maxlength' => '14']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                        <!--***************************-->
                        <!--** NOMBRES               **-->
                        <!--***************************-->
                        <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.form.lw.inputlabel','data' => ['label' => 'Nombres','msj' => 'Inserte nombres','identificador' => 'nombre','maxlength' => '50']]); ?>
<?php $component->withName('form.lw.inputlabel'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Nombres','msj' => 'Inserte nombres','identificador' => 'nombre','maxlength' => '50']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                        <!--***************************-->
                        <!--** GENERO                **-->
                        <!--***************************-->
                        <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.form.lw.selectlabel','data' => ['label' => 'Genero','msj' => 'Seleccione el genero','identificador' => 'genero','atributo' => 'genero','wire:loading.remove' => true,'wire:target' => 'seleccionar_cirujano']]); ?>
<?php $component->withName('form.lw.selectlabel'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Genero','msj' => 'Seleccione el genero','identificador' => 'genero','atributo' => 'genero','wire:loading.remove' => true,'wire:target' => 'seleccionar_cirujano']); ?>
                            <option value="F">Femenino&nbsp;<i class="fa-solid fa-mercury"></i></option>
                            <option value="M">Masculino&nbsp;<i class="fa-solid fa-mars"></i></option>
                         <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                        <!--***************************-->
                        <!--** STATUS                 **-->
                        <!--***************************-->
                        <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.form.lw.selectlabel','data' => ['label' => 'Status','msj' => 'Seleccione el status','identificador' => 'activo','atributo' => 'activo']]); ?>
<?php $component->withName('form.lw.selectlabel'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Status','msj' => 'Seleccione el status','identificador' => 'activo','atributo' => 'activo']); ?>
                            <option value="1">Activado</option>
                            <option value="2">Desactivado</option>
                         <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                    </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' => 'actualizar_cirujano']]); ?>
<?php $component->withName('btn.guardar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['accion' => 'actualizar_cirujano']); ?>Guardar cambios <?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 GUARDAR REGISTRO                **-->
        <!--********************************************-->
        <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.modal.simple','data' => ['titulo' => 'Agregar cirujano','identificador' => 'modal_agregar_cirujano','msj' => 'Guardando datos del cirujano','accion' => 'guardar_cirujano','preparar' => 'seleccionar_cirujano','msjpreparar' => 'Buscando cirujano','tipo' => 'md']]); ?>
<?php $component->withName('modal.simple'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['titulo' => 'Agregar cirujano','identificador' => 'modal_agregar_cirujano','msj' => 'Guardando datos del cirujano','accion' => 'guardar_cirujano','preparar' => 'seleccionar_cirujano','msjpreparar' => 'Buscando cirujano','tipo' => 'md']); ?>
             <?php $__env->slot('body', null, []); ?> 
                <div wire:loading.remove>
                    <div align="center">
                        <!--***************************-->
                        <!--** TIPODOCUMENTO         **-->
                        <!--***************************-->
                        <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.form.lw.selectlabel','data' => ['label' => 'Tipo de documento','msj' => 'Seleccione el tipo','identificador' => 'tipo_documento','atributo' => 'tipo_documento']]); ?>
<?php $component->withName('form.lw.selectlabel'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Tipo de documento','msj' => 'Seleccione el tipo','identificador' => 'tipo_documento','atributo' => 'tipo_documento']); ?>
                            <option value="C">Cedula</option>
                            <option value="P">Pasaporte</option>
                            <option value="O">Otros</option>
                         <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                        <!--****************************-->
                        <!--** NUMERO DOCUMENTO NUEVO **-->
                        <!--****************************-->
                        <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.form.lw.inputlabel','data' => ['label' => 'Documento','msj' => 'Inserte numero de documento','identificador' => 'documento','maxlength' => '14']]); ?>
<?php $component->withName('form.lw.inputlabel'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Documento','msj' => 'Inserte numero de documento','identificador' => 'documento','maxlength' => '14']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                        <!--***************************-->
                        <!--** NOMBRES               **-->
                        <!--***************************-->
                        <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.form.lw.inputlabel','data' => ['label' => 'Nombres','msj' => 'Inserte nombres','identificador' => 'nombre','maxlength' => '50']]); ?>
<?php $component->withName('form.lw.inputlabel'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Nombres','msj' => 'Inserte nombres','identificador' => 'nombre','maxlength' => '50']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                        <!--***************************-->
                        <!--** GENERO                **-->
                        <!--***************************-->
                        <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.form.lw.selectlabel','data' => ['label' => 'Genero','msj' => 'Seleccione el genero','identificador' => 'genero','atributo' => 'genero','wire:loading.remove' => true,'wire:target' => 'seleccionar_cirujano']]); ?>
<?php $component->withName('form.lw.selectlabel'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Genero','msj' => 'Seleccione el genero','identificador' => 'genero','atributo' => 'genero','wire:loading.remove' => true,'wire:target' => 'seleccionar_cirujano']); ?>
                            <option value="F">Femenino&nbsp;<i class="fa-solid fa-mercury"></i></option>
                            <option value="M">Masculino&nbsp;<i class="fa-solid fa-mars"></i></option>
                         <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                    </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' => 'registrar_cirujano']]); ?>
<?php $component->withName('btn.guardar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['accion' => 'registrar_cirujano']); ?>Registrar cirujano <?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>
    <script>
        /******************************************/
        /** SOLO NUMERO EN UN INPUT            ***/
        /******************************************/
        /*     const NRO_DOCUMENTO_ACTUALIZAR = document.querySelector(
                '#card_body_actualizar_cirujano > div > div > div > #documento');
         */

        // const NRO_DOCUMENTO_NUEVO = document.getElementById('documento');
        const NRO_DOCUMENTO_ACTUALIZAR = document.querySelector(
            '#modal_actualizar_cirujano > div > div > .modal-body #modal-body-center  #contedor #contedor-body > div > div #documento'
        );

        const NRO_DOCUMENTO_NUEVO = document.querySelector(
            '#modal_agregar_cirujano > div > div > .modal-body #modal-body-center  #contedor #contedor-body > div > div #documento'
        );



        //SOLO NUMERO
        const SOLO_NUMEROS = function() {
            if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;
        }

        NRO_DOCUMENTO_NUEVO.addEventListener('keypress', SOLO_NUMEROS);
        NRO_DOCUMENTO_ACTUALIZAR.addEventListener('keypress', SOLO_NUMEROS);
        /******************************************/
        /******************************************/
        /**  FUNCION QUE SE ENCARGA DE MOSTAR Y ***/
        /** OCULTAR LAS FILAS CON INFORMACION   ***/
        /** ADICIONALES EN EL DATA TABLE        ***/
        /******************************************/
        function mostrar(id) {
            var element = document.getElementById(id);
            element.classList.toggle("d-none");
        }

        /*         function desvanecer($_componente) {
                    setTimeout(function() {
                        $($_componente).slideToggle(150, 'swing');
                    }, 3000);
                    setTimeout(function() {
                        $($_componente).remove();
                    }, 3100);
                }
                desvanecer("#msj_info"); */
    </script>
</div>
<?php /**PATH C:\laragon\www\SistemaMedicoV1\resources\views/livewire/cirujano/listado-movil.blade.php ENDPATH**/ ?>