
<?php if($data->hasPages()): ?>

    <div class="ui right floated pagination menu">
        <?php if($data->previousPageUrl()): ?>
            <a href="<?php echo e($data->url(1)); ?>" class="icon item" title="Primero"><i class="angle double left icon"></i></a>
        <?php endif; ?>
        <?php $__currentLoopData = range(1, $data->lastPage()); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php if($i >= $data->currentPage() - 2 && $i <= $data->currentPage() + 2): ?>
                <?php if($i == $data->currentPage()): ?>
                    <a class="disabled item"><?php echo e($i); ?></a>
                <?php else: ?>
                    <a href="<?php echo e($data->url($i)); ?>" class="item"><?php echo e($i); ?></a>
                <?php endif; ?>
            <?php endif; ?>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <?php if($data->hasMorePages()): ?>
            <a href="<?php echo e($data->url($data->lastPage())); ?>" class="icon item" title="Último"><i class="angle double right icon"></i></a>
        <?php endif; ?>
    </div>

 <?php endif; ?>