<?php if($paginator->hasPages()): ?>
    <div class="mt-2 d-sm-flex align-items-center">
        <div>
            Showing <?php echo e($paginator->firstItem()); ?> to <?php echo e($paginator->lastItem()); ?> of total <?php echo e($paginator->total()); ?>

        </div>
        <div class="ms-auto">
            <nav aria-label="Page navigation" class="pagination-style-1">
                <ul class="pagination mb-0 flex-wrap">
                    
                    
                    <li class="page-item <?php echo e($paginator->onFirstPage() ? 'disabled' : ''); ?>">
                        <a class="page-link" href="<?php echo e($paginator->previousPageUrl()); ?>" tabindex="-1">‹</a>
                    </li>

                    
                    <?php
                        $currentPage = $paginator->currentPage();
                        $lastPage = $paginator->lastPage();
                        $start = max(1, $currentPage - 5);
                        $end = min($lastPage, $currentPage + 4);
                    ?>

                    
                    <?php if($start > 1): ?>
                        <li class="page-item">
                            <a class="page-link" href="<?php echo e($paginator->url(1)); ?>">1</a>
                        </li>
                        <?php if($start > 2): ?>
                            <li class="page-item disabled"><span class="page-link">...</span></li>
                        <?php endif; ?>
                    <?php endif; ?>

                    
                    <?php for($page = $start; $page <= $end; $page++): ?>
                        <li class="page-item <?php echo e($page == $currentPage ? 'active' : ''); ?>">
                            <a class="page-link" href="<?php echo e($paginator->url($page)); ?>"><?php echo e($page); ?></a>
                        </li>
                    <?php endfor; ?>

                    
                    <?php if($end < $lastPage): ?>
                        <?php if($end < $lastPage - 1): ?>
                            <li class="page-item disabled"><span class="page-link">...</span></li>
                        <?php endif; ?>
                        <li class="page-item">
                            <a class="page-link" href="<?php echo e($paginator->url($lastPage)); ?>"><?php echo e($lastPage); ?></a>
                        </li>
                    <?php endif; ?>

                    
                    <li class="page-item <?php echo e($paginator->hasMorePages() ? '' : 'disabled'); ?>">
                        <a class="page-link" href="<?php echo e($paginator->nextPageUrl()); ?>">›</a>
                    </li>

                </ul>
            </nav>
        </div>
    </div>
<?php endif; ?>
<?php /**PATH /home/paysafebd23/ovimanager.store/resources/views/partials/paginate.blade.php ENDPATH**/ ?>