<div>
    <!--*******************************************************************-->
    <!--** NOMBRE DEL COMPOTENTE: PANEL MOVIL PARA TASAS DE CAMBIO       **-->
    <!--** AUTOR: JOUNNERTH TORRES                                       **-->
    <!--** FECHA DE ACTUALIZACION: 08/04/2023                            **-->
    <!--**---------------------------------------------------------------**-->
    <!--** CONTROLADOR:  tasa/PanelMovil                                 **-->
    <!--**---------------------------------------------------------------**-->
    <!--** ESTE COMPONENTE SIRVE PARA LISTAR TODAS LAS  TASAS DEL        **-->
    <!--** SISTEMA Y ESTA COMPUESTO POR:                                 **-->
    <!--**   # TABLA DONDE SE DESPLIEGA LA LISTA DE TASAS                **-->
    <!--**   # BARRA DE BUSQUEDA                                         **-->
    <!--**   # PANEL ADMINISTRATIVO                                      **-->
    <!--**   # AGREGAR TASA                                              **-->
    <!--**   # ACTUALIZAR TASA                                           **-->
    <!--**   # ELIMINAR TASA                                             **-->
    <!--*******************************************************************-->
    <!--** TITULO Y  MIGAJAS DE PAN                                      **-->
    <!--*******************************************************************-->
    <?php $__env->startSection('titulo'); ?>
        Listado de tasas de cambio
    <?php $__env->stopSection(); ?>
    <div class="row d-flex justify-content-end position-relative mx-0 pt-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 d-block d-md-none py-1 ">
                        <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.btn.template-modal','data' => ['label' => 'Agregar tasa','modal' => '#modal_crear_tasa']]); ?>
<?php $component->withName('btn.template-modal'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Agregar tasa','modal' => '#modal_crear_tasa']); ?>
                            <img style="height:25px;; max-height:25px;" src="<?php echo e(asset('img/botones/guardar.png')); ?>"
                                alt="">
                         <?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-1">
                        <div class="flex-fill">
                            <div class="input-group input-group-sm  flex-grow-1">
                                <input type="text" class="form-control border-end-0 " placeholder="Buscar tasa"
                                    id='buscador_tasa' name='buscador_tasa' wire:model.debounce.1000ms="buscador_tasa"
                                    autocomplete="off">
                                <span
                                    class="input-group-text input-group-text-sm bg-white text-secondary border-start-0"><i
                                        class="fa-solid fa-magnifying-glass"></i></span>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-2 py-1">
                        <?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-md-4"></div>
                    <div class="col-md-2 d-none d-md-block ">
                        <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.btn.template-modal','data' => ['label' => 'Agregar tasa','modal' => '#modal_crear_tasa']]); ?>
<?php $component->withName('btn.template-modal'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Agregar tasa','modal' => '#modal_crear_tasa']); ?>
                            <img style="height:25px;; max-height:25px;" src="<?php echo e(asset('img/botones/guardar.png')); ?>"
                                alt="">
                         <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                    </div>
                </div>
                <!--*******************************************************-->
                <!--**  MENSAJE: MIESTRA SE BUSCAN EL TASAS          **-->
                <!--*******************************************************-->
                <div wire:loading wire:target="buscador_tasa">
                    <strong>Buscando tasas</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_tasa" wire:loading.remove wire:target="buscador_tasa">
                    <div class="table-responsive-md">
                        <table class="table ">
                            <!--*******************************************************-->
                            <!--**  VALORES DE LAS  COLUNAS                          **-->
                            <!--*******************************************************-->
                            <?php if($count_tasas_busqueda > 0): ?>
                                <?php $__currentLoopData = $tasas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tasa): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <!-- POR ALGUNA RAZON DEL DIABLO TENGO QUE INSERTAR UNA  FILA  -->
                                    <tr></tr>
                                    <?php if($tasa->activo == 0): ?>
                                        <tr class="d-none">
                                        <?php else: ?>
                                        <tr class="border-1 border-buttom">
                                    <?php endif; ?>
                                    <td>
                                        <div>
                                            <div class="d-flex justify-content-between">
                                                <small>Tasa:&nbsp;<?php echo e($tasa->monto_tasa); ?> Bsf</small>
                                                <?php if($tasa->activo == '2'): ?>
                                                    <span class="badge bg-dark verde-neon">Activa </span>
                                                <?php else: ?>
                                                    <span class="badge bg-dark text-secondary ">Desactivada</span>
                                                <?php endif; ?>
                                            </div>
                                            <div>
                                                <small>Fecha:&nbsp;<?php echo e(date_format(date_create($tasa->fecha_reg), 'd/m/Y')); ?></small>
                                            </div>
                                            <div class="d-flex justify-content-between">
                                                <div>
                                                    <small>Hora:<?php echo e(date_format(date_create($tasa->hora_reg), 'h:i A')); ?></small>
                                                </div>
                                                <div>
                                                    <?php if($tasa->activo == '1'): ?>
                                                        <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.btn.template-modal-table','data' => ['label' => 'Activar','modal' => '#modal_activar_tasa','accion' => 'preparar(\''.e($tasa->id).'\')']]); ?>
<?php $component->withName('btn.template-modal-table'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Activar','modal' => '#modal_activar_tasa','accion' => 'preparar(\''.e($tasa->id).'\')']); ?>
                                                         <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                                                    <?php endif; ?>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php else: ?>
                                <!--******************************************************-->
                                <!--**  MENSAJE: tasa 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 tasa relacionado con la busqueda:
                                                <strong class="text-secondary"> <?php echo e($buscador_tasa); ?>.</strong>
                                                favor validar nueva mente.</small>
                                        </div>
                                    </td>
                                <tr>
                            <?php endif; ?>
                        </table>
                    </div>
                </div>
             <?php $__env->endSlot(); ?>
             <?php $__env->slot('card_footer', null, []); ?> 
                <div class="d-none d-lg-block"><?php echo e($tasas->onEachSide(4)->links()); ?></div>
                <div class="d-block d-lg-none"><small><?php echo e($tasas->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 TASA                      **-->
    <!--********************************************-->
    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.modal.simple','data' => ['titulo' => 'Activar tasa','identificador' => 'modal_activar_tasa','msj' => 'Activando tasa','accion' => 'activar_tasa','preparar' => 'preparar','msjpreparar' => 'Buscando registro','tipo' => 'sm']]); ?>
<?php $component->withName('modal.simple'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['titulo' => 'Activar tasa','identificador' => 'modal_activar_tasa','msj' => 'Activando tasa','accion' => 'activar_tasa','preparar' => 'preparar','msjpreparar' => 'Buscando registro','tipo' => 'sm']); ?>
         <?php $__env->slot('body', null, []); ?> 
            <div wire:loading.remove>
                <div align="center">
                    <h1> <i class="fa-solid fa-check text-success"></i></h1>
                    ¿Esta seguro que desea activar la tasa de <strong class="text-secondary"> <?php echo e($monto_tasa); ?>

                        Bsf </strong> del dia <strong class="text-secondary">
                        <?php echo e(date_format(date_create($fecha_reg), 'd/m/Y')); ?>

                    </strong> a las <strong
                        class="text-secondary"><?php echo e(date_format(date_create($hora_reg), 'h:i:s A')); ?>?</strong>
                </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.no','data' => ['accion' => 'resetear']]); ?>
<?php $component->withName('btn.no'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['accion' => 'resetear']); ?>No <?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.si','data' => ['accion' => 'activar_tasa']]); ?>
<?php $component->withName('btn.si'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['accion' => 'activar_tasa']); ?>SI <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                </div>
            </div>
         <?php $__env->endSlot(); ?>
     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
    <!--********************************************-->
    <!--** MODAL GUARDAR TASA                      **-->
    <!--********************************************-->
    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.modal.simple','data' => ['titulo' => 'Registrar tasa','identificador' => 'modal_crear_tasa','msj' => 'Activando tasa','accion' => 'activar_tasa','preparar' => 'preparar','msjpreparar' => 'Buscando registro','tipo' => 'sm']]); ?>
<?php $component->withName('modal.simple'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['titulo' => 'Registrar tasa','identificador' => 'modal_crear_tasa','msj' => 'Activando tasa','accion' => 'activar_tasa','preparar' => 'preparar','msjpreparar' => 'Buscando registro','tipo' => 'sm']); ?>
         <?php $__env->slot('body', null, []); ?> 
            <div wire:loading.remove>
                <div align="center">
                    <small class="text-secondary">El monto debe poseer el siguiente formato 999.99 en caso de tener
                        decimales</small>
                    <!--****************************-->
                    <!--** PRECIO EN DIVISA        **-->
                    <!--****************************-->
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.form.lw.inputlabel','data' => ['label' => 'Inserte monto','msj' => '0.00','identificador' => 'monto_tasa','maxlength' => '30']]); ?>
<?php $component->withName('form.lw.inputlabel'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Inserte monto','msj' => '0.00','identificador' => 'monto_tasa','maxlength' => '30']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                    <!--****************************-->
                    <!--** FECHA REG                  **-->
                    <!--****************************-->
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.form.lw.inputdate','data' => ['label' => 'Fecha registro','identificador' => 'fecha_reg']]); ?>
<?php $component->withName('form.lw.inputdate'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Fecha registro','identificador' => 'fecha_reg']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                    <!--****************************-->
                    <!--** HORA REG                  **-->
                    <!--****************************-->
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.form.lw.inputtime','data' => ['label' => 'Hora registro','identificador' => 'hora_reg']]); ?>
<?php $component->withName('form.lw.inputtime'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Hora registro','identificador' => 'hora_reg']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                </div>
            </div>
         <?php $__env->endSlot(); ?>
         <?php $__env->slot('footer', null, []); ?> 
            <div wire:loading.remove>
                <!--****************************************************-->
                <!--** BOTONES DEL MODAL                              **-->
                <!--****************************************************-->
                <div class="d-flex justify-content-end mt-0 mb-2 p-0">
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.btn.cancelar','data' => ['accion' => 'resetear']]); ?>
<?php $component->withName('btn.cancelar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['accion' => 'resetear']); ?>Cancelar <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                    &nbsp;
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.btn.guardar','data' => ['accion' => 'crear_tasa']]); ?>
<?php $component->withName('btn.guardar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['accion' => 'crear_tasa']); ?>Guardar <?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>
        const MONTO_TASA = document.getElementById('monto_tasa');

        //SOLO NUMERO
        const SOLO_NUMEROS = function() {

            if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;
        }

        MONTO_TASA.addEventListener('keypress', SOLO_NUMEROS);
    </script>

</div>
<?php /**PATH C:\laragon\www\SistemaMedicoV1\resources\views/livewire/tasa/panel-movil.blade.php ENDPATH**/ ?>