<!--[if BLOCK]><![endif]--><?php if($paginator->hasPages()): ?>
    <div class="my-2">
        <div class="text-center text-muted mb-2" style="font-size: 0.875rem;">
            Page <?php echo e($paginator->currentPage()); ?> of <?php echo e($paginator->lastPage()); ?>

        </div>
        <nav>
            <ul class="pagination justify-content-center">
                
                <!--[if BLOCK]><![endif]--><?php if($paginator->onFirstPage()): ?>
                    <li class="page-item disabled"><span class="page-link"><span
                                class="d-none d-md-inline">Previous</span><span
                                class="d-inline d-md-none">&lt;</span></span></li>
                <?php else: ?>
                    <li class="page-item">
                        <button class="page-link" wire:click="previousPage" rel="prev"><span class="d-none d-md-inline">Previous</span><span
                                class="d-inline d-md-none">&lt;</span></button>
                    </li>
                <?php endif; ?><!--[if ENDBLOCK]><![endif]-->

                
                <?php
                    $currentPage = $paginator->currentPage();
                    $lastPage = $paginator->lastPage();
                ?>

                <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $elements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    
                    <!--[if BLOCK]><![endif]--><?php if(is_string($element)): ?>
                        <li class="page-item disabled page-ellipsis"><span class="page-link"><?php echo e($element); ?></span></li>
                    <?php endif; ?><!--[if ENDBLOCK]><![endif]-->

                    
                    <!--[if BLOCK]><![endif]--><?php if(is_array($element)): ?>
                        <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $element; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page => $url): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php
                                $distance = abs($page - $currentPage);
                                $isFirstOrLast = $page == 1 || $page == $lastPage;
                                $cssClass = '';
                                if (!$isFirstOrLast && $distance > 1) {
                                    $cssClass = 'page-far';
                                }
                            ?>
                            <!--[if BLOCK]><![endif]--><?php if($page == $currentPage): ?>
                                <li class="page-item active"><span class="page-link"><?php echo e($page); ?></span></li>
                            <?php else: ?>
                                <li class="page-item <?php echo e($cssClass); ?>">
                                    <button class="page-link" wire:click="gotoPage(<?php echo e($page); ?>)">
                                        <!--[if BLOCK]><![endif]--><?php if($page == 1): ?>
                                            <span class="d-none d-md-inline"><?php echo e($page); ?></span><span
                                                class="d-inline d-md-none">&laquo;</span>
                                        <?php elseif($page == $lastPage): ?>
                                            <span class="d-none d-md-inline"><?php echo e($page); ?></span><span
                                                class="d-inline d-md-none">&raquo;</span>
                                        <?php else: ?>
                                            <?php echo e($page); ?>

                                        <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                                    </button>
                                </li>
                            <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->
                    <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->

                
                <!--[if BLOCK]><![endif]--><?php if($paginator->hasMorePages()): ?>
                    <li class="page-item">
                        <button class="page-link" wire:click="nextPage" rel="next"><span
                                class="d-none d-md-inline">Next</span><span class="d-inline d-md-none">&gt;</span>
                        </button>
                    </li>
                <?php else: ?>
                    <li class="page-item disabled"><span class="page-link"><span
                                class="d-none d-md-inline">Next</span><span
                                class="d-inline d-md-none">&gt;</span></span></li>
                <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
            </ul>
        </nav>
    </div>
<?php endif; ?><!--[if ENDBLOCK]><![endif]-->

<style>
    .pagination .page-link {
        color: var(--primary-color);
        border-color: #dee2e6;
        text-decoration: none;
    }

    .pagination .page-link:hover {
        color: var(--primary-color);
        background-color: #f8f9fa;
        border-color: var(--primary-color);
        text-decoration: none;
    }

    .pagination .page-item.active .page-link {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
        text-decoration: none;
    }

    .pagination .page-item.disabled .page-link {
        color: #6c757d;
        background-color: #fff;
        border-color: #dee2e6;
        text-decoration: none;
    }

    @media (max-width: 767px) {
        .pagination .page-item.page-far,
        .pagination .page-item.page-ellipsis {
            display: none;
        }
    }
</style>
<?php /**PATH C:\wamp64\www\edu-p\resources\views/custom/pagination.blade.php ENDPATH**/ ?>