<?php if($paginator->hasPages()): ?>
    <div class="page bgff wrap tx-c" >
        <div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-2">
        
        <?php if($paginator->onFirstPage()): ?>
            <a href="javascript:;" class="layui-laypage-prev layui-disabled" data-page="">首页</a>
        <?php else: ?>
            <a href="<?php echo e($paginator->previousPageUrl()); ?>" class="layui-laypage-prev" data-page="0">上一页</a>
        <?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()): ?>
                        <span class="layui-laypage-curr"><em class="layui-laypage-em"></em><em><?php echo e($page); ?></em></span>
                    <?php else: ?>
                        <a href="<?php echo e($url); ?>" data-page="<?php echo e($page); ?>"><?php echo e($page); ?></a>
                    <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <?php else: ?>
                <span>...</span>
            <?php endif; ?>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

        
        <?php if($paginator->hasMorePages()): ?>

            <a href="<?php echo e($paginator->nextPageUrl()); ?>" class="layui-laypage-next" data-page="">下一页</a>
        <?php else: ?>

            <a href="javascript:;" class="layui-laypage-last" title="尾页" data-page="">尾页</a>
        <?php endif; ?>
    </div>
    </div>
<?php endif; ?>
