<?php if($paginator->hasPages()): ?>
<nav role="navigation" aria-label="Pagination" class="flex items-center justify-between">
    <div class="text-sm text-slate-500">
        Menampilkan
        <span class="font-semibold text-slate-700"><?php echo e($paginator->firstItem()); ?></span>
        –
        <span class="font-semibold text-slate-700"><?php echo e($paginator->lastItem()); ?></span>
        dari
        <span class="font-semibold text-slate-700"><?php echo e($paginator->total()); ?></span>
        data
    </div>

    <div class="flex items-center gap-1">
        
        <?php if($paginator->onFirstPage()): ?>
            <span class="px-3 py-1.5 text-xs text-slate-400 bg-slate-100 rounded-lg cursor-not-allowed">← Prev</span>
        <?php else: ?>
            <a href="<?php echo e($paginator->previousPageUrl()); ?>"
               class="px-3 py-1.5 text-xs font-medium text-slate-600 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 transition">
                ← Prev
            </a>
        <?php endif; ?>

        
        <?php $__currentLoopData = $elements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php if(is_string($element)): ?>
                <span class="px-2 py-1.5 text-xs text-slate-400"><?php echo e($element); ?></span>
            <?php endif; ?>

            <?php if(is_array($element)): ?>
                <?php $__currentLoopData = $element; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page => $url): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if($page == $paginator->currentPage()): ?>
                        <span class="px-3 py-1.5 text-xs font-bold text-white bg-blue-500 rounded-lg"><?php echo e($page); ?></span>
                    <?php else: ?>
                        <a href="<?php echo e($url); ?>"
                           class="px-3 py-1.5 text-xs font-medium text-slate-600 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 transition">
                            <?php echo e($page); ?>

                        </a>
                    <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <?php endif; ?>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

        
        <?php if($paginator->hasMorePages()): ?>
            <a href="<?php echo e($paginator->nextPageUrl()); ?>"
               class="px-3 py-1.5 text-xs font-medium text-slate-600 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 transition">
                Next →
            </a>
        <?php else: ?>
            <span class="px-3 py-1.5 text-xs text-slate-400 bg-slate-100 rounded-lg cursor-not-allowed">Next →</span>
        <?php endif; ?>
    </div>
</nav>
<?php endif; ?>
<?php /**PATH C:\laragon\www\pos-umkm\resources\views/vendor/pagination/tailwind.blade.php ENDPATH**/ ?>