
<?php
    if (! isset($scrollTo)) {
        $scrollTo = 'body';
    }

    $scrollIntoViewJsSnippet = ($scrollTo !== false)
        ? "(\$el.closest('{$scrollTo}') || document.querySelector('{$scrollTo}')).scrollIntoView()"
        : '';

    // Un botón de página: cuadrado, mínimo 30 px, y el actual en oscuro. Se define una
    // vez porque hay cuatro sitios que pintan botones (anterior, números, siguiente y
    // la versión estrecha) y con las clases repetidas dejan de parecerse al mes
    // siguiente.
    $base = 'inline-flex items-center justify-center rounded-md border text-[12.5px] font-semibold transition-colors';
    $caja = 'min-w-[30px] px-2 py-1';
    $normal = 'border-color:var(--border-default); background:var(--surface-page); color:var(--text-body);';
    $activo = 'border-color:var(--neutral-800); background:var(--neutral-800); color:#fff;';
    $apagado = 'border-color:var(--border-subtle); background:var(--surface-page); color:var(--text-subtle);';
?>

<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($paginator->hasPages()): ?>
    
    <nav role="navigation" aria-label="Paginación"
         class="flex flex-wrap items-center justify-end gap-x-4 gap-y-2">

        
        <span class="text-[12.5px]" style="color:var(--text-muted);">
            Mostrando
            <strong class="font-semibold" style="color:var(--text-strong);"><?php echo e($paginator->firstItem()); ?></strong>–<strong class="font-semibold" style="color:var(--text-strong);"><?php echo e($paginator->lastItem()); ?></strong>
            de <?php echo e($paginator->total()); ?>

        </span>

        
        <div class="flex items-center gap-2 sm:hidden">
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($paginator->onFirstPage()): ?>
                <span class="<?php echo e($base); ?> <?php echo e($caja); ?> cursor-default" style="<?php echo e($apagado); ?>">Anterior</span>
            <?php else: ?>
                <button type="button" wire:click="previousPage('<?php echo e($paginator->getPageName()); ?>')"
                        x-on:click="<?php echo e($scrollIntoViewJsSnippet); ?>" wire:loading.attr="disabled"
                        class="<?php echo e($base); ?> <?php echo e($caja); ?>" style="<?php echo e($normal); ?>">Anterior</button>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

            <span class="text-[12px]" style="color:var(--text-muted);">
                <?php echo e($paginator->currentPage()); ?> de <?php echo e($paginator->lastPage()); ?>

            </span>

            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($paginator->hasMorePages()): ?>
                <button type="button" wire:click="nextPage('<?php echo e($paginator->getPageName()); ?>')"
                        x-on:click="<?php echo e($scrollIntoViewJsSnippet); ?>" wire:loading.attr="disabled"
                        class="<?php echo e($base); ?> <?php echo e($caja); ?>" style="<?php echo e($normal); ?>">Siguiente</button>
            <?php else: ?>
                <span class="<?php echo e($base); ?> <?php echo e($caja); ?> cursor-default" style="<?php echo e($apagado); ?>">Siguiente</span>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        </div>

        
        <div class="hidden items-center gap-1 sm:flex">

            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($paginator->onFirstPage()): ?>
                <span class="<?php echo e($base); ?> <?php echo e($caja); ?> cursor-default" style="<?php echo e($apagado); ?>" aria-disabled="true" aria-label="Página anterior">
                    <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m15 18-6-6 6-6"/></svg>
                </span>
            <?php else: ?>
                <button type="button" wire:click="previousPage('<?php echo e($paginator->getPageName()); ?>')"
                        x-on:click="<?php echo e($scrollIntoViewJsSnippet); ?>" wire:loading.attr="disabled"
                        dusk="previousPage<?php echo e($paginator->getPageName() == 'page' ? '' : '.' . $paginator->getPageName()); ?>"
                        class="<?php echo e($base); ?> <?php echo e($caja); ?>" style="<?php echo e($normal); ?>" aria-label="Página anterior">
                    <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m15 18-6-6 6-6"/></svg>
                </button>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $elements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(is_string($element)): ?>
                    <span class="px-1 text-[12.5px]" style="color:var(--text-subtle);"><?php echo e($element); ?></span>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(is_array($element)): ?>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $element; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page => $url): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($page == $paginator->currentPage()): ?>
                            <span class="<?php echo e($base); ?> <?php echo e($caja); ?> cursor-default" style="<?php echo e($activo); ?>" aria-current="page"><?php echo e($page); ?></span>
                        <?php else: ?>
                            <button type="button" wire:click="gotoPage(<?php echo e($page); ?>, '<?php echo e($paginator->getPageName()); ?>')"
                                    x-on:click="<?php echo e($scrollIntoViewJsSnippet); ?>" wire:loading.attr="disabled"
                                    class="<?php echo e($base); ?> <?php echo e($caja); ?>" style="<?php echo e($normal); ?>"
                                    aria-label="Ir a la página <?php echo e($page); ?>"><?php echo e($page); ?></button>
                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($paginator->hasMorePages()): ?>
                <button type="button" wire:click="nextPage('<?php echo e($paginator->getPageName()); ?>')"
                        x-on:click="<?php echo e($scrollIntoViewJsSnippet); ?>" wire:loading.attr="disabled"
                        dusk="nextPage<?php echo e($paginator->getPageName() == 'page' ? '' : '.' . $paginator->getPageName()); ?>"
                        class="<?php echo e($base); ?> <?php echo e($caja); ?>" style="<?php echo e($normal); ?>" aria-label="Página siguiente">
                    <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6"/></svg>
                </button>
            <?php else: ?>
                <span class="<?php echo e($base); ?> <?php echo e($caja); ?> cursor-default" style="<?php echo e($apagado); ?>" aria-disabled="true" aria-label="Página siguiente">
                    <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6"/></svg>
                </span>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        </div>
    </nav>
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
<?php /**PATH /var/www/html/resources/views/vendor/livewire/tailwind.blade.php ENDPATH**/ ?>