<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                                         **-->
    <div>
        <!--*******************************************************************-->
        <!--** TITULO                                                        **-->
        <!--*******************************************************************-->
        <?php $__env->startSection('titulo'); ?>
            <h5>Panel de anestesiologo</h5>
        <?php $__env->stopSection(); ?>
        <div class="row">
            <div class="col-md-12 pt-2">
                <!--******************************************************************-->
                <!--** AGREGAR INTERVENCION                                         **-->
                <!--******************************************************************-->
                <div class="card">
                    <div class="card-header">
                        <div class="row">
                            <div class="col-md-12">
                                <?php
if (! isset($_instance)) {
    $html = \Livewire\Livewire::mount('anestesiologo.nuevo')->html();
} elseif ($_instance->childHasBeenRendered('l4218994517-0')) {
    $componentId = $_instance->getRenderedChildComponentId('l4218994517-0');
    $componentTag = $_instance->getRenderedChildComponentTagName('l4218994517-0');
    $html = \Livewire\Livewire::dummyMount($componentId, $componentTag);
    $_instance->preserveRenderedChild('l4218994517-0');
} else {
    $response = \Livewire\Livewire::mount('anestesiologo.nuevo');
    $html = $response->html();
    $_instance->logRenderedChild('l4218994517-0', $response->id(), \Livewire\Livewire::getRootElementTagName($html));
}
echo $html;
?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-8 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-md-6 d-none d-lg-block">
                                <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_anestesiologo'
                                            name='buscador_anestesiologo'
                                            wire:model.debounce.1000ms="buscador_anestesiologo" 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>
                            <div class="col-md-6 d-none d-lg-block" align="right">
                                <span class="h6">Total de anestesiologos listados:&nbsp; <span
                                        class="badge bg-secondary my-1"><?php echo e($count_anestesiologos); ?></span>
                            </div>
                        </div>
                        <!--*******************************************************-->
                        <!--**  MENSAJE: MIESTRA SE BUSCAN EL USUARIOS          **-->
                        <!--*******************************************************-->
                        <div wire:loading wire:target="buscador_anestesiologo">
                            <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_anestesiologo">
                            <!--********************-->
                            <!--**  TABLE         **-->
                            <!--********************-->
                            <div class="table-responsive-md">
                                <?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' => 'ID','columna' => 'id','style' => 'width:60px; min-width:60px;']]); ?>
<?php $component->withName('datatable.th'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['nombre' => 'ID','columna' => 'id','style' => 'width:60px; min-width:60px;']); ?>
                                                <?php if($campo_orden == 'id'): ?>
                                                    <?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' => '#Documento','columna' => 'documento','style' => 'width:120px; min-width:120px;']]); ?>
<?php $component->withName('datatable.th'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['nombre' => '#Documento','columna' => 'documento','style' => 'width:120px; min-width:120px;']); ?>
                                                <?php if($campo_orden == 'documento'): ?>
                                                    <?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' => 'Cirujano','columna' => 'nombre','style' => 'width:120px; min-width:120px;']]); ?>
<?php $component->withName('datatable.th'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['nombre' => 'Cirujano','columna' => 'nombre','style' => 'width:120px; min-width:120px;']); ?>
                                                <?php if($campo_orden == 'nombre'): ?>
                                                    <?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' => 'Genero','columna' => 'genero','style' => 'width:90px; min-width:90px;']]); ?>
<?php $component->withName('datatable.th'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['nombre' => 'Genero','columna' => 'genero','style' => 'width:90px; min-width:90px;']); ?>
                                                <?php if($campo_orden == 'nombre'): ?>
                                                    <?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' => 'Status','columna' => 'activo','style' => 'width:100px; min-width:100px;']]); ?>
<?php $component->withName('datatable.th'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['nombre' => 'Status','columna' => 'activo','style' => 'width:100px; min-width:100px;']); ?>
                                                <?php if($campo_orden == 'activo'): ?>
                                                    <?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; ?>
                                        </tr>
                                     <?php $__env->endSlot(); ?>
                                    <!--*******************************************************-->
                                    <!--**  VALORES DE LAS  COLUNAS                          **-->
                                    <!--*******************************************************-->
                                     <?php $__env->slot('table_body', null, []); ?> 
                                        <?php if($count_anestesiologos_busqueda > 0): ?>
                                            <?php $__currentLoopData = $anestesiologos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $anestesiologo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <?php if($anestesiologo->activo == '0'): ?>
                                                    <tr class="d-none">
                                                    <?php else: ?>
                                                    <tr onclick="ir_a_editar()">
                                                <?php endif; ?>
                                                <td wire:click="seleccionar_anestesiologo(<?php echo e($anestesiologo->id); ?>)">
                                                    <small><?php echo e($anestesiologo->id); ?></small>
                                                </td>
                                                <td wire:click="seleccionar_anestesiologo(<?php echo e($anestesiologo->id); ?>)">
                                                    <small>
                                                        <?= str_ireplace($buscador_anestesiologo, '<mark class="bg-dark text-light p-0 m-0 rounded-sm" > <strong>  ' . $buscador_anestesiologo . '</strong></mark>', $anestesiologo->documento) ?>
                                                    </small>
                                                </td>
                                                <td wire:click="seleccionar_anestesiologo(<?php echo e($anestesiologo->id); ?>)">
                                                    <small>
                                                        <?= str_ireplace($buscador_anestesiologo, '<mark class="bg-dark text-light p-0 m-0 rounded-sm" > <strong>  ' . $buscador_anestesiologo . '</strong></mark>', $anestesiologo->nombre) ?>
                                                    </small>
                                                </td>
                                                <td wire:click="seleccionar_anestesiologo(<?php echo e($anestesiologo->id); ?>)">
                                                    <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($anestesiologo->genero == 'F'): ?>
                                                            Femenino&nbsp;<i class="fa-solid fa-mercury"></i>
                                                        <?php elseif($anestesiologo->genero == 'M'): ?>
                                                            Masculino&nbsp;<i class="fa-solid fa-mars"></i>
                                                        <?php endif; ?>
                                                    </small>
                                                </td>
                                                <td wire:click="seleccionar_anestesiologo(<?php echo e($anestesiologo->id); ?>)">
                                                    <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($anestesiologo->activo == '1'): ?>
                                                            <span class="badge  bg-azul-intenzo shadow"><strong
                                                                    class="verde-neon">Activo</strong></span>
                                                        <?php elseif($anestesiologo->activo == '2'): ?>
                                                            <span class="badge  bg-azul-intenzo shadow"><strong
                                                                    class="text-gris-neon">Desactivado</strong></span>
                                                        <?php endif; ?>
                                                    </small>
                                                </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 anestesiologo relacionado con la
                                                            busqueda:
                                                            <strong class="text-secondary">
                                                                <?php echo e($buscador_anestesiologo); ?>.</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 $__env->endSlot(); ?>
                     <?php $__env->slot('card_footer', null, []); ?> 
                        <div class="d-none d-lg-block"><?php echo e($anestesiologos->onEachSide(4)->links()); ?></div>
                        <div class="d-block d-lg-none"><small><?php echo e($anestesiologos->onEachSide(0, 5)->links()); ?></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 class="col-md-4 py-2">
                <!--*******************************************************************-->
                <!--** ACTUALIZAR INTERVENCION                                       **-->
                <!--*******************************************************************-->
                <?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, []); ?> 
                        <h6 align="center">Actualizar Intervencion</h6>
                     <?php $__env->endSlot(); ?>
                     <?php $__env->slot('card_body', null, []); ?> 
                        <div id="card_body_actualizar_anestesiologo" class="p-2" style="height:322px">
                            <!--***************************-->
                            <!--** CARGA                **-->
                            <!--***************************-->
                            <div wire:loading wire:target="seleccionar_anestesiologo">
                                <div class="row">
                                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.form.static.inputcarga','data' => ['label' => 'Tipo de documento']]); ?>
<?php $component->withName('form.static.inputcarga'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Tipo de documento']); ?> <?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.form.static.inputcarga','data' => ['label' => 'Documento']]); ?>
<?php $component->withName('form.static.inputcarga'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Documento']); ?> <?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.form.static.inputcarga','data' => ['label' => 'Nombres']]); ?>
<?php $component->withName('form.static.inputcarga'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Nombres']); ?> <?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.form.static.inputcarga','data' => ['label' => 'Genero']]); ?>
<?php $component->withName('form.static.inputcarga'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Genero']); ?> <?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.form.static.inputcarga','data' => ['label' => 'Status']]); ?>
<?php $component->withName('form.static.inputcarga'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Status']); ?> <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>

                                </div>
                            </div>
                            <div wire:loading.remove wire:target="seleccionar_anestesiologo">
                                <!--***************************-->
                                <!--** 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' => '50']]); ?>
<?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' => '50']); ?>
<?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_anestesiologo']]); ?>
<?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_anestesiologo']); ?>
                                    <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('card_footer', null, []); ?> 
                        <button class="btn btn-sm border-primary text-white bg-azul-intenzo rounded border-2 shadow"
                            data-bs-toggle="modal" data-bs-target="#modal_actualizar_anestesiologo"
                            data-bs-placement='top' data-bs-toggle='tooltip' title="Activar anestesiologo"
                            wire:loading.attr="disabled">
                            Actualizar&nbsp;<i class="fas fa-edit text-warning"></i>
                        </button>
                        &nbsp;
                        <button class="btn btn-sm border-primary text-white bg-azul-intenzo rounded border-2 shadow "
                            data-bs-toggle="modal" data-bs-target="#modal_eliminar_anestesiologo"
                            data-bs-placement='top' data-bs-toggle='tooltip' title="Activar anestesiologo"
                            wire:loading.attr="disabled">
                            Eliminar&nbsp;<i class="fas fa-trash-alt text-danger"></i>
                        </button>
                     <?php $__env->endSlot(); ?>
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
            </div>
        </div>
    </div>
    <div>
        <!--********************************************-->
        <!--** MODAL ACTUALIZAR REGISTRO              **-->
        <!--********************************************-->
        <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.modal.simple','data' => ['titulo' => 'Activar anestesiologo','identificador' => 'modal_actualizar_anestesiologo','class' => 'my-1 mx-3','msj' => 'Actualizando anestesiologo','accion' => 'actualizar_anestesiologo','preparar' => 'seleccionar_anestesiologo','msjpreparar' => 'Buscando anestesiologo','tipo' => 'md']]); ?>
<?php $component->withName('modal.simple'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['titulo' => 'Activar anestesiologo','identificador' => 'modal_actualizar_anestesiologo','class' => 'my-1 mx-3','msj' => 'Actualizando anestesiologo','accion' => 'actualizar_anestesiologo','preparar' => 'seleccionar_anestesiologo','msjpreparar' => 'Buscando anestesiologo','tipo' => 'md']); ?>
             <?php $__env->slot('body', null, []); ?> 
                <div wire:loading.remove>
                    <div align="center">
                        <h1> <i class="fa-solid fas fa-edit text-warning"></i></h1>
                        <div class="text-secondary"> Confirme si desea actualizar el anestesiologo: <strong
                                class="text-dark"><?php echo e($nombre); ?></strong> </strong>.
                        </div>
                        <small class="text-secondary">Si esta seguro pulsar Actualizar, si 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' => 'actualizar_anestesiologo']]); ?>
<?php $component->withName('btn.guardar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['accion' => 'actualizar_anestesiologo']); ?>Actualizar <?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 anestesiologo','identificador' => 'modal_eliminar_anestesiologo','class' => 'my-1 mx-3','msj' => 'Eliminando anestesiologo','accion' => 'eliminar_anestesiologo','preparar' => 'seleccionar_anestesiologo','msjpreparar' => 'Buscando anestesiologo','tipo' => 'md']]); ?>
<?php $component->withName('modal.simple'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['titulo' => 'Eliminar anestesiologo','identificador' => 'modal_eliminar_anestesiologo','class' => 'my-1 mx-3','msj' => 'Eliminando anestesiologo','accion' => 'eliminar_anestesiologo','preparar' => 'seleccionar_anestesiologo','msjpreparar' => 'Buscando anestesiologo','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 anestesiologo: <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 anestesiologo 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_anestesiologo']]); ?>
<?php $component->withName('btn.guardar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['accion' => 'eliminar_anestesiologo']); ?>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>
    <script>
        /******************************************/
        /** SOLO NUMERO EN UN INPUT            ***/
        /******************************************/

        const NRO_DOCUMENTO_ACTUALIZAR = document.querySelector('#card_body_actualizar_anestesiologo > div > div > div > #documento');
        const NRO_DOCUMENTO = document.getElementById('documento');
        //SOLO NUMERO
        const SOLO_NUMEROS = function() {
            if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;
        }

        console.log(NRO_DOCUMENTO_ACTUALIZAR);
        console.log(NRO_DOCUMENTO);

        NRO_DOCUMENTO_ACTUALIZAR.addEventListener('keypress', SOLO_NUMEROS);
        NRO_DOCUMENTO.addEventListener('keypress', SOLO_NUMEROS);

        /******************************************/
        /**  FUNCION QUE SE ENCARGA DE MOSTAR Y ***/
        /** OCULTAR LAS FILAS CON INFORMACION   ***/
        /** ADICIONALES EN EL DATA TABLE        ***/
        /******************************************/
        function ir_a_editar() {
            window.location.href = "#editar"
        }

        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/anestesiologo/listado.blade.php ENDPATH**/ ?>