<div>
    <!--*******************************************************************-->
    <!--** NOMBRE DEL COMPOTENTE: PANEL DE USUARIO                       **-->
    <!--** AUTOR: JOUNNERTH TORRES                                       **-->
    <!--** FECHA DE ACTUALIZACION: 08/04/2023                            **-->
    <!--**---------------------------------------------------------------**-->
    <!--** CONTROLADOR:  Articulo/ListadoArticulo                        **-->
    <!--**---------------------------------------------------------------**-->
    <!--** ESTE COMPONENTE SIRVE PARA LISTAR TODOSLOS  USUARIOS DEL      **-->
    <!--** SISTEMA Y ESTA COMPUESTO POR:                                 **-->
    <!--**   # TABLA DONDE SE DESPLIEGA LA LISTA DE USUARIOS             **-->
    <!--**   # BARRA DE BUSQUEDA                                         **-->
    <!--*******************************************************************-->
    <!--** TITULO Y  MIGAJAS DE PAN                                      **-->
    <!--*******************************************************************-->
    <?php $__env->startSection('titulo'); ?>
        <h5>Listado de registro</h5>
    <?php $__env->stopSection(); ?>
    <!--*******************************************************************-->
    <!--** MENSAJE O NOTIFICACION                                        **-->
    <!--*******************************************************************-->
 
    <div class="p-0 px-lg-1 py-lg-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-12 col-lg-4 ">
                        <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_registro' name='buscador_registro'
                                    wire:model.debounce.1000ms="buscador_registro" 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-12  col-lg-2 pt-1  pt-lg-0">
                        <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.datatable.numeroregistros','data' => ['msj' => 'Listar ']]); ?>
<?php $component->withName('datatable.numeroregistros'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['msj' => 'Listar ']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                    </div>
                    <div class="col-12 col-lg-6 pt-1 pt-lg-0">
                        <div align="right">
                            <div class="h6">
                                Registros listados:&nbsp;<span class="badge bg-secondary"><?php echo e($count_registros); ?></span>
                            </div>
                        </div>
                    </div>
                </div>
             <?php $__env->endSlot(); ?>
             <?php $__env->slot('card_body', null, []); ?> 
                <div role="buscar_articulo" wire:loading.remove wire:target="buscador_registro">
                    <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' => 'Codigo','columna' => 'codigo','style' => 'width:80px; min-width:80px;']]); ?>
<?php $component->withName('datatable.th'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['nombre' => 'Codigo','columna' => 'codigo','style' => 'width:80px; min-width:80px;']); ?>
                                        <?php if($campo_orden == 'codigo'): ?>
                                            <?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' => '#Factura','columna' => 'nro_factura','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' => '#Factura','columna' => 'nro_factura','style' => 'width:90px; min-width:90px;']); ?>
                                        <?php if($campo_orden == 'nro_factura'): ?>
                                            <?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:110px; min-width:110px;']]); ?>
<?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:110px; min-width:110px;']); ?>
                                        <?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' => 'Paciente','columna' => 'nombres','style' => 'width:150px; min-width:150px;']]); ?>
<?php $component->withName('datatable.th'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['nombre' => 'Paciente','columna' => 'nombres','style' => 'width:150px; min-width:150px;']); ?>
                                        <?php if($campo_orden == 'nombres'): ?>
                                            <?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' => 'Fecha Factura','columna' => 'fecha_factura','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' => 'Fecha Factura','columna' => 'fecha_factura','style' => 'width:120px; min-width:120px;']); ?>
                                        <?php if($campo_orden == 'fecha_factura'): ?>
                                            <?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' => 'Tasa','columna' => 'monto_tasa','style' => 'width:70px; min-width:70px;']]); ?>
<?php $component->withName('datatable.th'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['nombre' => 'Tasa','columna' => 'monto_tasa','style' => 'width:70px; min-width:70px;']); ?>
                                        <?php if($campo_orden == 'monto_tasa'): ?>
                                            <?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' => 'Monto','columna' => 'monto','style' => 'width:110px; min-width:110px;']]); ?>
<?php $component->withName('datatable.th'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['nombre' => 'Monto','columna' => 'monto','style' => 'width:110px; min-width:110px;']); ?>
                                        <?php if($campo_orden == 'monto'): ?>
                                            <?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; ?>
                                    <th style="width:90px; min-width:90px;">
                                        <strong>Divisa</strong>
                                    </th>
                                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.datatable.th','data' => ['nombre' => 'Status','columna' => 'status','style' => 'width:70px; min-width:70px;']]); ?>
<?php $component->withName('datatable.th'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['nombre' => 'Status','columna' => 'status','style' => 'width:70px; min-width:70px;']); ?>
                                        <?php if($campo_orden == 'status'): ?>
                                            <?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' => 'Activo','columna' => 'activo','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' => 'Activo','columna' => 'activo','style' => 'width:90px; min-width:90px;']); ?>
                                        <?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; ?>
                                    <th style="width:45px; min-width:45px;">
                                        <div class="d-flex justify-content-end">
                                            <small><strong>Opciones</strong> </small>
                                        </div>
                                    </th>
                                </tr>
                             <?php $__env->endSlot(); ?>
                            <!--*******************************************************-->
                            <!--**  VALORES DE LAS  COLUNAS                          **-->
                            <!--*******************************************************-->
                             <?php $__env->slot('table_body', null, []); ?> 
                                <?php if($count_registros_busqueda > 0): ?>
                                    <?php $__currentLoopData = $registros; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $registro): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <!-- POR ALGUNA RAZON DEL DIABLO TENGO QUE INSERTAR UNA  FILA  -->
                                        <tr></tr>
                                        <?php if($registro->activo == '0'): ?>
                                            <tr class="d-none">
                                            <?php else: ?>
                                            <tr>
                                        <?php endif; ?>
                                        <td class="d-none"><small><?php echo e($registro->id); ?></small></td>
                                        <td>
                                            <small>
                                                <?= str_ireplace($buscador_registro, '<mark class="bg-dark text-light p-0 m-0 rounded-sm" > <strong>  ' . $buscador_registro . '</strong></mark>', $registro->codigo) ?>
                                            </small>
                                        </td>
                                        <td>
                                            <small>
                                                <?= str_ireplace($buscador_registro, '<mark class="bg-dark text-light p-0 m-0 rounded-sm" > <strong>  ' . $buscador_registro . '</strong></mark>', $registro->nro_factura) ?>
                                            </small>
                                        </td>
                                        <td>
                                            <small>
                                                <?= str_ireplace($buscador_registro, '<mark class="bg-dark text-light p-0 m-0 rounded-sm" > <strong>  ' . $buscador_registro . '</strong></mark>', $registro->documento) ?>
                                            </small>
                                        </td>
                                        <td>
                                            <small>
                                                <?= str_ireplace($buscador_registro, '<mark class="bg-dark text-light p-0 m-0 rounded-sm" > <strong>  ' . $buscador_registro . '</strong></mark>', $registro->nombres) ?>
                                            </small>
                                            <small>
                                                <?= str_ireplace($buscador_registro, '<mark class="bg-dark text-light p-0 m-0 rounded-sm" > <strong>  ' . $buscador_registro . '</strong></mark>', $registro->apellidos) ?>
                                            </small>
                                        </td>
                                        <td>
                                            <small>
                                                <?= date_format(date_create($registro->fecha_factura), 'd/m/Y') ?>
                                            </small>
                                        </td>
                                        <td>
                                            <small>
                                                Bsf&nbsp;<?php echo e($registro->monto_tasa); ?>

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

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

                                            </small>
                                        </td>
                                        <td>
                                            <small>
                                                <!--********************************************************-->
                                                <!--**  LA COLUMNA IMPORTADO                              **-->
                                                <!--**  SE COLOCA UNA CONDICIO                            **-->
                                                <!--**  CUANDO EL VALOR VIENE EN 0 SIGNIFICA NO IMPORTADO **-->
                                                <!--**  PERO SI VIENE EN 1 SIGNIFICA QUE SI ES IMPORTADO  **-->
                                                <!--********************************************************-->
                                                <?php if($registro->status == 'N'): ?>
                                                    <span class="badge  bg-azul-intenzo"><strong class="text-danger">Sin
                                                            pagos</strong></span>
                                                <?php elseif($registro->status == 'P'): ?>
                                                    <span class="badge  bg-azul-intenzo"><strong
                                                            class="verde-neon">Pagado</strong></span>
                                                <?php elseif($registro->status == 'D'): ?>
                                                    <span class="badge  bg-azul-intenzo"><strong
                                                            class="text-warning">Posee
                                                            deuda</strong></span>
                                                <?php endif; ?>
                                            </small>
                                        </td>
                                        <td>
                                            <small>
                                                <!--********************************************************-->
                                                <!--**  LA COLUMNA IMPORTADO                              **-->
                                                <!--**  SE COLOCA UNA CONDICIO                            **-->
                                                <!--**  CUANDO EL VALOR VIENE EN 0 SIGNIFICA NO IMPORTADO **-->
                                                <!--**  PERO SI VIENE EN 1 SIGNIFICA QUE SI ES IMPORTADO  **-->
                                                <!--********************************************************-->
                                                <?php if($registro->activo == '1'): ?>
                                                    <span class="badge  bg-azul-intenzo"><strong
                                                            class="verde-neon">Activo</strong></span>
                                                <?php elseif($registro->activo == '2'): ?>
                                                    <span class="badge   bg-azul-intenzo"><strong
                                                            class="text-gris-neon">Desactivado</strong></span>
                                                <?php endif; ?>
                                            </small>
                                        </td>
                                        <td>
                                            <!--***************************************-->
                                            <!-- EL BOTON QUE ACTIVA A LA           ***-->
                                            <!-- FUNCION QUE SE ENCARGA DE MOSTAR Y ***-->
                                            <!-- OCULTAR LAS FILAS CON INFORMACION  ***-->
                                            <!-- ADICIONALES EN EL DATA TABLE       ***-->
                                            <!--***************************************-->
                                            <div class="d-flex justify-content-end">
                                                <button
                                                    class="btn btn-sm border-primary  bg-azul-intenzo rounded border-3 shadow"
                                                    onclick="mostrar('tr<?php echo e($registro->id); ?>')"
                                                    title="Mas informacion">
                                                    <i class="fa-solid fa-plus text-info"></i>
                                                </button>
                                                &nbsp;
                                                <?php if($registro->activo == '1'): ?>
                                                    <button
                                                        class="btn btn-sm border-primary  bg-azul-intenzo rounded border-3 shadow text-gris-neon"
                                                        data-bs-toggle="modal"
                                                        data-bs-target="#modal_desactivar_registro"
                                                        data-bs-placement='top' data-bs-toggle='tooltip'
                                                        title="Activar registro"
                                                        wire:click="seleccionar_registro('<?php echo e($registro->id); ?>')">
                                                        <i class="fas fa-ban"></i>
                                                    </button>
                                                <?php elseif($registro->activo == '2'): ?>
                                                    <button
                                                        class="btn btn-sm border-primary  bg-azul-intenzo rounded border-3 shadow text-verde-neon"
                                                        data-bs-toggle="modal"
                                                        data-bs-target="#modal_activar_registro"
                                                        data-bs-placement='top' data-bs-toggle='tooltip'
                                                        title="Activar registro"
                                                        wire:click="seleccionar_registro('<?php echo e($registro->id); ?>')">
                                                        <i class="fa-solid fa-check"></i>
                                                    </button>
                                                <?php endif; ?>
                                                &nbsp;
                                                <a href="<?php echo e(asset('registro/actualizar/' . $registro->id)); ?>"
                                                    class="btn btn-sm border-primary  bg-azul-intenzo rounded border-3 shadow text-warning"
                                                    title="Editar Perfil">
                                                    <i class="fas fa-edit"></i>
                                                </a>
                                                &nbsp;
                                                <a href="<?php echo e(asset('registro/pagos/' . $registro->id)); ?>"
                                                    class="btn btn-sm border-primary bg-azul-intenzo rounded border-3  shadow text-verde-neon "
                                                    title="Agregar Pago">
                                                    <i class="fas fa-money-bill-wave"></i>
                                                </a>
                                                &nbsp;
                                                <button
                                                    class="btn btn-sm border-primary  bg-azul-intenzo rounded border-3 shadow text-danger"
                                                    data-bs-toggle="modal" data-bs-target="#modal_eliminar_registro"
                                                    data-bs-placement='top' data-bs-toggle='tooltip'
                                                    title="Activar registro"
                                                    wire:click="seleccionar_registro('<?php echo e($registro->id); ?>')">
                                                    <i class="fas fa-trash-alt"></i>
                                                </button>
                                            </div>
                                        </td>
                                        </tr>
                                        <!--***************************************-->
                                        <!-- INFORMACION ADICIONAL DEL REGISTRO ***-->
                                        <!--***************************************-->
                                        <tr class="d-none" id="tr<?php echo e($registro->id); ?>">
                                            <td align="left" colspan="11">

                                                <span>
                                                    <small class="text-dark"><strong>Genero:&nbsp;</strong></small>
                                                    <?php if($registro->genero == 'F'): ?>
                                                        <small class="text-dark">Femenino</small>
                                                    <?php else: ?>
                                                        <small class="text-dark">Masculino</small>
                                                    <?php endif; ?>
                                                </span>
                                                <span>
                                                    <small class="text-dark"><strong>Fecha nac:&nbsp;</strong></small>
                                                    <small class="text-dark">
                                                        <?= date_format(date_create($registro->fecha_nac), 'd/m/Y') ?></small>
                                                </span>
                                                <span>
                                                    <small class="text-dark"><strong>Cirujano:&nbsp;</strong></small>
                                                    <small class="text-dark"><?php echo e($registro->cirujano); ?></small>
                                                </span>
                                                <span>
                                                    <small
                                                        class="text-dark"><strong>Anestesiologo:&nbsp;</strong></small>
                                                    <small class="text-dark"><?php echo e($registro->anestesiologo); ?></small>
                                                </span>
                                                <span>
                                                    <small
                                                        class="text-dark"><strong>Intervencion:&nbsp;</strong></small>
                                                    <small
                                                        class="text-dark"><?php echo e($registro->clinica . ' ' . $registro->intervencion); ?></small>
                                                </span>
                                            </td>
                                        </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php else: ?>
                                    <!--******************************************************-->
                                    <!--**  MENSAJE: USER NO ENCONTRADO                      **-->
                                    <!--******************************************************-->
                                    <tr class="table-secondary text-secondary ">
                                        <td colspan=11 style="height:75px; max-height:75px;">
                                            <div class="d-flex justify-content-center">
                                                <small> No se encontro ningun registro relacionado con la busqueda:
                                                    <strong class="text-secondary"> <?php echo e($buscador_registro); ?>.</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($registros->onEachSide(4)->links()); ?></div>
                <div class="d-block d-lg-none"><small><?php echo e($registros->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>
            <!--********************************************-->
            <!--** MODAL ACTIVAR REGISTRO                 **-->
            <!--********************************************-->
            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.modal.simple','data' => ['titulo' => 'Activar registro','identificador' => 'modal_activar_registro','msj' => 'Activando registro','accion' => 'activar_registro','preparar' => 'seleccionar_registro','msjpreparar' => 'Buscando registro','tipo' => 'md']]); ?>
<?php $component->withName('modal.simple'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['titulo' => 'Activar registro','identificador' => 'modal_activar_registro','msj' => 'Activando registro','accion' => 'activar_registro','preparar' => 'seleccionar_registro','msjpreparar' => 'Buscando registro','tipo' => 'md']); ?>
                 <?php $__env->slot('body', null, []); ?> 
                    <div wire:loading.remove>
                        <div align="center">
                            <h1> <i class="fa-solid fa-check text-success"></i></h1>
                            <div class="text-secondary"> Confirme si desea activar el registro numero: <strong
                                    class="text-dark"><?php echo e($codigo); ?></strong> del
                                paciente: <strong class="text-dark"><?php echo e($paciente); ?></strong>, Numero de
                                documento: <strong class="text-dark"><?php echo e($documento); ?></strong>,datos de la
                                intervencion: <strong class="text-dark"><?php echo e($intervencion); ?></strong> Cirujano:
                                <strong class="text-dark"><?php echo e($cirujano); ?></strong>
                                del dia: <strong class="text-dark"><?php echo e($fecha_intervencion); ?></strong>.
                            </div>

                            <small class="text-secondary">Si esta seguro pulsar Activar, si no desea activar el
                                registro pulse cancelar.</small>
                        </div>
                    </div>
                 <?php $__env->endSlot(); ?>
                 <?php $__env->slot('footer', null, []); ?> 
                    <div wire:loading.remove>
                        <!--****************************************************-->
                        <!--** BOTONES DEL MODAL                              **-->
                        <!--****************************************************-->
                        <div class="d-flex justify-content-end mt-0 mb-2 p-0">
                            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.btn.cancelar','data' => ['accion' => 'resetear']]); ?>
<?php $component->withName('btn.cancelar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['accion' => 'resetear']); ?>Cancelar <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                            &nbsp;
                            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.btn.guardar','data' => ['accion' => 'activar_registro']]); ?>
<?php $component->withName('btn.guardar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['accion' => 'activar_registro']); ?>Activar <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                        </div>
                    </div>
                 <?php $__env->endSlot(); ?>
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
            <!--********************************************-->
            <!--** MODAL DESACTIVAR REGISTRO               **-->
            <!--********************************************-->
            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.modal.simple','data' => ['titulo' => 'Desactivar registro','identificador' => 'modal_desactivar_registro','msj' => 'Desactivando registro','accion' => 'desactivar_registro','preparar' => 'seleccionar_registro','msjpreparar' => 'Buscando registro','tipo' => 'md']]); ?>
<?php $component->withName('modal.simple'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['titulo' => 'Desactivar registro','identificador' => 'modal_desactivar_registro','msj' => 'Desactivando registro','accion' => 'desactivar_registro','preparar' => 'seleccionar_registro','msjpreparar' => 'Buscando registro','tipo' => 'md']); ?>
                 <?php $__env->slot('body', null, []); ?> 
                    <div wire:loading.remove>
                        <div align="center">
                            <h1> <i class="fas fa-ban text-secondary"></i></h1>
                            <div class="text-secondary"> Confirme si desea desactivar el registro numero: <strong
                                    class="text-dark"><?php echo e($codigo); ?></strong> del
                                paciente: <strong class="text-dark"><?php echo e($paciente); ?></strong>, Numero de
                                documento: <strong class="text-dark"><?php echo e($documento); ?></strong>,datos de la
                                intervencion: <strong class="text-dark"><?php echo e($intervencion); ?></strong> Cirujano:
                                <strong class="text-dark"><?php echo e($cirujano); ?></strong>
                                del dia: <strong class="text-dark"><?php echo e($fecha_intervencion); ?></strong>.
                            </div>
                            <small class="text-secondary">Si esta seguro pulsar desactivar, si no desea activar el
                                registro pulse cancelar.</small>
                        </div>
                    </div>
                 <?php $__env->endSlot(); ?>
                 <?php $__env->slot('footer', null, []); ?> 
                    <div wire:loading.remove>
                        <!--****************************************************-->
                        <!--** BOTONES DEL MODAL                              **-->
                        <!--****************************************************-->
                        <div class="d-flex justify-content-end mt-0 mb-2 p-0">
                            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.btn.cancelar','data' => ['accion' => 'resetear']]); ?>
<?php $component->withName('btn.cancelar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['accion' => 'resetear']); ?>Cancelar <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                            &nbsp;
                            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.btn.guardar','data' => ['accion' => 'desactivar_registro']]); ?>
<?php $component->withName('btn.guardar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['accion' => 'desactivar_registro']); ?>Desactivar <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                        </div>
                    </div>
                 <?php $__env->endSlot(); ?>
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
            <!--********************************************-->
            <!--** MODAL ELIMINAR REGISTRO                 **-->
            <!--********************************************-->
            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.modal.simple','data' => ['titulo' => 'Eliminar registro','identificador' => 'modal_eliminar_registro','msj' => 'Eliminando registro','accion' => 'eliminar_registro','preparar' => 'seleccionar_registro','msjpreparar' => 'Buscando registro','tipo' => 'md']]); ?>
<?php $component->withName('modal.simple'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['titulo' => 'Eliminar registro','identificador' => 'modal_eliminar_registro','msj' => 'Eliminando registro','accion' => 'eliminar_registro','preparar' => 'seleccionar_registro','msjpreparar' => 'Buscando registro','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 registro numero: <strong
                                    class="text-dark"><?php echo e($codigo); ?></strong> del
                                paciente: <strong class="text-dark"><?php echo e($paciente); ?></strong>, Numero de
                                documento: <strong class="text-dark"><?php echo e($documento); ?></strong>,datos de la
                                intervencion: <strong class="text-dark"><?php echo e($intervencion); ?></strong> Cirujano:
                                <strong class="text-dark"><?php echo e($cirujano); ?></strong>
                                del dia: <strong class="text-dark"><?php echo e($fecha_intervencion); ?></strong>.
                            </div>
                            <div><strong class="text-dark">Advertencia</strong></div>
                            <div> <small class="text-secondary"> Si el registro es eliminado. no aparecera en ningun
                                    reporte.</small></div>
                            <small class="text-secondary">Si esta seguro pulsar Eliminar, si no desea eliminar el
                                registro 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_registro']]); ?>
<?php $component->withName('btn.guardar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['accion' => 'eliminar_registro']); ?>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; ?>
            <script>
                /******************************************/
                /**  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>
    </div>
</div>
<?php /**PATH C:\laragon\www\SistemaMedicoV1\resources\views/livewire/registro/listado.blade.php ENDPATH**/ ?>