<?php if($paginator->hasPages()): ?>
    <nav>
        <ul class="pagination2">
            
            <?php if($paginator->onFirstPage()): ?>
                <li class="page-item disabled"><span class="page-link">&lsaquo;</span></li>
            <?php else: ?>
                <li class="page-item">
                    <a class="page-link" href="<?php echo e($paginator->previousPageUrl()); ?>" rel="prev">&lsaquo;</a>
                </li>
            <?php endif; ?>

            
            <?php for($i = 1; $i <= $paginator->lastPage(); $i++): ?>
                <?php if($i == 1 || $i == $paginator->lastPage() || ($i >= $paginator->currentPage() - 1 && $i <= $paginator->currentPage() + 1)): ?>
                    <li class="page-item <?php echo e($i == $paginator->currentPage() ? 'active' : ''); ?>">
                        <a class="page-link" href="<?php echo e($paginator->url($i)); ?>"><?php echo e($i); ?></a>
                    </li>
                <?php elseif($i == 2 || $i == $paginator->lastPage() - 1): ?>
                    <li class="page-item disabled"><span class="page-link">...</span></li>
                <?php endif; ?>
            <?php endfor; ?>

            
            <?php if($paginator->hasMorePages()): ?>
                <li class="page-item">
                    <a class="page-link" href="<?php echo e($paginator->nextPageUrl()); ?>" rel="next">&rsaquo;</a>
                </li>
            <?php else: ?>
                <li class="page-item disabled"><span class="page-link">&rsaquo;</span></li>
            <?php endif; ?>
        </ul>
    </nav>
<?php endif; ?>
<?php /**PATH /home/nettoyagecasabla/fournisseurs.materiel-levage-maroc.com/resources/views/vendor/pagination/bootstrap-4.blade.php ENDPATH**/ ?>