<?php
    $qty = 0;
    foreach ($elements as $elm) {
        foreach ($elm as $key => $value) {
            $qty +=1;
        }
    }
?>

<?php if($qty > 1): ?>
<div class="wsus__pagination d-flex justify-content-center">
    <nav aria-label="Page navigation example">
      <ul class="pagination">
        <?php if($paginator->onFirstPage()): ?>

        <?php else: ?>
        <li class="page-item">
            <a class="page-link" href="<?php echo e($paginator->previousPageUrl()); ?>" aria-label="Previous">
              <i class="far fa-long-arrow-alt-left"></i>
            </a>
          </li>
        <?php endif; ?>

        <?php $__currentLoopData = $elements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php if(count($element) < 2): ?>
            <?php else: ?>
                <?php $__currentLoopData = $element; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $el): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if($key == $paginator->currentPage()): ?>
                        <li class="page-item"><a class="page-link active" href="javascript:;"><?php echo e($key); ?></a></li>
                    <?php else: ?>
                        <li class="page-item"><a class="page-link" href="<?php echo e($el); ?>"><?php echo e($key); ?></a></li>
                    <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <?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()); ?>" aria-label="Next">
                  <i class="far fa-long-arrow-alt-right"></i>
                </a>
            </li>
        <?php endif; ?>


      </ul>
    </nav>
  </div>
  <?php endif; ?>
<?php /**PATH E:\AR-8u191-IT\well-known (1)\resources\views/user/paginator.blade.php ENDPATH**/ ?>