simple-bootstrap-4.blade.php 1.0 KB

123456789101112131415161718192021222324252627
  1. @if ($paginator->hasPages())
  2. <nav>
  3. <ul class="pagination">
  4. {{-- Previous Page Link --}}
  5. @if ($paginator->onFirstPage())
  6. <li class="page-item disabled" aria-disabled="true">
  7. <span class="page-link">@lang('pagination.previous')</span>
  8. </li>
  9. @else
  10. <li class="page-item">
  11. <a class="page-link" href="{{ $paginator->previousPageUrl() }}" rel="prev">@lang('pagination.previous')</a>
  12. </li>
  13. @endif
  14. {{-- Next Page Link --}}
  15. @if ($paginator->hasMorePages())
  16. <li class="page-item">
  17. <a class="page-link" href="{{ $paginator->nextPageUrl() }}" rel="next">@lang('pagination.next')</a>
  18. </li>
  19. @else
  20. <li class="page-item disabled" aria-disabled="true">
  21. <span class="page-link">@lang('pagination.next')</span>
  22. </li>
  23. @endif
  24. </ul>
  25. </nav>
  26. @endif