<link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">

<style>
.paginationWrap{
    width: 100%;
    text-align: center;
}
.paginationWrap ul{
    width: 100%;
    position: relative;
} 
.paginationWrap ul li {
    display: inline-block;
    background-color: #FFF;
    color: #000;
    padding: 4px 8px 4px 8px; 
    border-radius: 3px
}
.paginationWrap ul li.active, .paginationWrap ul li:hover{
    background-color: red;
}


.paginationWrap ul li.disabled{
    background-color: #808080;
}
.paginationWrap ul li a{
    color: #000;
    text-decoration: none;
    font-weight: bold;
}
.paginationWrap ul li span{
    color: #FFF;
    font-weight: bold;
} 

</style>
<?php if($paginator->hasPages()): ?>   
    <ul class="pagination">
        <?php if($paginator->onFirstPage()): ?>
            <li class="disabled">
                <i class="fa-solid fa-angles-left"></i>
            </li>
            <li class="disabled">
                <i class="fa-solid fa-angle-left"></i>
            </li>                
        <?php else: ?>
            <li>
                <a href="<?php echo e($paginator->url(1)); ?>&search=<?php echo e(request('search')); ?>&timkiem=Tìm+kiếm&_token=<?php echo e(csrf_token()); ?>">
                    <i class="fa-solid fa-angles-left"></i>
                </a>
            </li>
            <li>
                <a href="<?php echo e($paginator->previousPageUrl()); ?>&search=<?php echo e(request('search')); ?>&timkiem=Tìm+kiếm&_token=<?php echo e(csrf_token()); ?>">
                    <i class="fa-solid fa-angle-left"></i>
                </a>
            </li>
        <?php endif; ?>

        <?php $__currentLoopData = $elements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php if(is_array($element)): ?>
                <?php $__currentLoopData = $element; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page => $url): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if($page == $paginator->currentPage()): ?>
                        <li class="active"><span><?php echo e($page); ?></span></li>
                    <?php elseif($page <= 10 || $page == $paginator->currentPage() + 1 || $page == $paginator->currentPage() + 2 || $page == $paginator->lastPage()): ?>
                        <li><a href="<?php echo e($url); ?>&search=<?php echo e(request('search')); ?>&timkiem=Tìm+kiếm&_token=<?php echo e(csrf_token()); ?>"><?php echo e($page); ?></a></li>
                    <?php elseif($page == $paginator->lastPage() - 1): ?>
                        <li class="disabled"><span><i class="fa fa-ellipsis-h"></i></span></li>
                    <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <?php endif; ?>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

        <?php if($paginator->hasMorePages()): ?>
            <li>
                <a href="<?php echo e($paginator->nextPageUrl()); ?>&search=<?php echo e(request('search')); ?>&timkiem=Tìm+kiếm&_token=<?php echo e(csrf_token()); ?>">
                    <i class="fa-solid fa-angle-right"></i>
                </a>
            </li>
            <li>
                <a href="<?php echo e($paginator->url($paginator->lastPage())); ?>&search=<?php echo e(request('search')); ?>&timkiem=Tìm+kiếm&_token=<?php echo e(csrf_token()); ?>">
                    <i class="fa-solid fa-angles-right"></i>
                </a>
            </li>
        <?php else: ?>
            <li class="disabled">
                <i class="fa-solid fa-angle-right"></i>
            </li>
            <li class="disabled">
                <i class="fa-solid fa-angles-right"></i>
            </li>
        <?php endif; ?>
    </ul>    
<?php endif; ?>

<?php /**PATH /home/bduedu/public_html/xltt.bdu.edu.vn/resources/views/admin/paginationtrungtuyen.blade.php ENDPATH**/ ?>