<?php if(isset($paginator) && $paginator->hasPages()): ?>
<div class="pagination-wrapper px-4 pt-3">
    <p class="pagination-summary">
        <?php if($paginator->appends(request()->all())): ?>
            <?php echo e(translate("Showing")); ?> <?php echo e($paginator->appends(request()->all())->firstItem()); ?>-<?php echo e($paginator->appends(request()->all())->lastItem()); ?> <?php echo e(translate("from")); ?> <?php echo e($paginator->appends(request()->all())->total()); ?>

        <?php endif; ?>
    </p>
    <nav aria-label="...">
        <ul class="pagination">
            <?php if($paginator->onFirstPage()): ?>
                <li class="page-item disabled">
                    <a class="page-link">
                        <i class="bi bi-chevron-left"></i>
                    </a>
                </li>
            <?php else: ?>
                <li class="page-item">
                    <a class="page-link" href="<?php echo e($paginator->previousPageUrl()); ?>" rel="prev">
                        <i class="bi bi-chevron-left"></i>
                    </a>
                </li>
            <?php endif; ?>

            <?php $__currentLoopData = $paginator->links()->elements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php if(is_array($element)): ?>
                    <?php $i = 1; ?>
                    <?php $__currentLoopData = $element; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $url): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php
                            if(request()->input("date")) {
                                $query_step = 4;
                            }
                            elseif(request()->input("search") || request()->input("status")) {
                                $query_step = 2;
                            } elseif(request()->_token) {
                                $query_step = 2;
                            } else {
                                $query_step = 1;
                            }
                            
                            $query_params = parse_url($url, PHP_URL_QUERY);
                            
                            $query_array  = $query_params ? explode('=', $query_params) : [];
                                
                            $page = isset($query_array[$query_step]) ? $query_array[$query_step] : (string)$i;
                            $i++;
                        ?>
                        <?php if($page == $paginator->currentPage()): ?>
                            <li class="page-item active" aria-current="page">
                                <span class="page-link"><?php echo e($page); ?></span>
                            </li>
                        <?php else: ?>
                            <li class="page-item">
                                <a class="page-link" href="<?php echo e($url); ?>"><?php echo e($page); ?></a>
                            </li>
                        <?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php else: ?>
                    <li class="page-item" aria-current="page">
                        <span class="page-link"><?php echo e($element); ?></span>
                    </li>
                <?php endif; ?>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            
            <?php if($paginator->hasMorePages()): ?>
                <li class="page-item">
                    <a class="page-link" href="<?php echo e($paginator->nextPageUrl()); ?>" rel="next">
                        <i class="bi bi-chevron-right"></i>
                    </a>
                </li>
            <?php else: ?>
                <li class="page-item disabled">
                    <a class="page-link">
                        <i class="bi bi-chevron-right"></i>
                    </a>
                </li>
            <?php endif; ?>
        </ul>
    </nav>
</div>
<?php endif; ?><?php /**PATH C:\wamp64\www\public\mailing\xsender2026\xsender4.1\src\resources\views/admin/partials/pagination.blade.php ENDPATH**/ ?>