<?php if($paginator->lastPage() != 1): ?>
    <ul class="pagination">
        <li><a href="<?php echo e($paginator->previousPageUrl()); ?>" class="text-primary PrevPaginate text-primary">&lt;</a></li>
        <?php if($paginator->lastPage() == 1 || $paginator->lastPage() == 2 || $paginator->lastPage() == 3  ): ?>
            <li><a class="text-primary <?php echo e($paginator->currentPage() == 1 ? 'isActive' : ''); ?>"
                   href="<?php echo e($paginator->url(1)); ?>">1</a></li>
            <?php if($paginator->lastPage() != 1): ?>
                <li><a class="text-primary <?php echo e($paginator->currentPage() == 2 ? 'isActive' : ''); ?>"
                       href="<?php echo e($paginator->url(2)); ?>">2</a></li>
            <?php endif; ?>
            <?php if($paginator->lastPage() == 3): ?>
                <li><a class="text-primary <?php echo e($paginator->currentPage() == 3 ? 'isActive' : ''); ?>"
                       href="<?php echo e($paginator->url(3)); ?>">3</a></li>
            <?php endif; ?>
            <?php if($paginator->hasMorePages()): ?>
                <li><a href="<?php echo e($paginator->nextPageUrl()); ?>" class="NextPaginate text-primary">></a></li>
            <?php endif; ?>

        <?php else: ?>
            <?php if($paginator->currentPage() != 1 ): ?>
                <li><a class="text-primary" href="<?php echo e($paginator->url(1)); ?>">1</a></li>
            <?php endif; ?>
            <?php if($elements): ?>
                <?php if($paginator->currentPage() == ($paginator->lastPage())-1): ?>
                    <li><a class="text-primary"
                           href="<?php echo e($paginator->url(($paginator->currentPage()) - 1)); ?>"><?php echo e(($paginator->currentPage()) - 1); ?></a>
                    </li>
                <?php endif; ?>
                <li><a href="#" class="isActive"><?php echo e($paginator->currentPage()); ?></a></li>
                <?php if($paginator->nextPageUrl()): ?>
                    <li><a class="text-primary"
                           href="<?php echo e($paginator->nextPageUrl()); ?>"><?php echo e(($paginator->currentPage()) + 1); ?></a></li>
                    <?php if($paginator->currentPage() != ($paginator->lastPage())-1 ): ?>
                        <li>
                            <a class="text-primary"
                               href="<?php echo e($paginator->url(($paginator->currentPage()) + 2)); ?>"><?php echo e(($paginator->currentPage()) + 2); ?></a>
                        </li>
                    <?php endif; ?>
                <?php endif; ?>
                <?php if($paginator->currentPage() == 1): ?>
                    <li><a class="text-primary" href="<?php echo e($paginator->url(4)); ?>">4</a></li>
                <?php endif; ?>
            <?php endif; ?>

            
            <?php if($paginator->hasMorePages()): ?>
                <li><a href="<?php echo e($paginator->nextPageUrl()); ?>" class="NextPaginate text-primary">></a></li>
            <?php endif; ?>

        <?php endif; ?>


    </ul>
    <?php if(auth()->check()): ?>
        <?php if(auth()->user()->role == 'ادمین'): ?>
            <p class="text-center">
                صفحه
                <?php echo e($paginator->currentPage()); ?>

                از
                <a href="<?php echo e($paginator->url($paginator->lastPage())); ?>"><?php echo e($paginator->lastPage()); ?></a>
                و کل آیتم ها :
                <?php echo e($paginator->total()); ?>

            </p>
        <?php endif; ?>
    <?php endif; ?>
<?php endif; ?>
<?php /**PATH C:\wamp64\www\newer\Modules\Mehrab\Common\Providers/../Resources/Views//vendor/pagination/customPaginate.blade.php ENDPATH**/ ?>