simple-bootstrap-5.blade.php 1.1 KB

1234567891011121314151617181920212223242526272829
  1. @if ($paginator->hasPages())
  2. <nav role="navigation" aria-label="Pagination Navigation">
  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">{!! __('pagination.previous') !!}</span>
  8. </li>
  9. @else
  10. <li class="page-item">
  11. <a class="page-link" href="{{ $paginator->previousPageUrl() }}" rel="prev">
  12. {!! __('pagination.previous') !!}
  13. </a>
  14. </li>
  15. @endif
  16. {{-- Next Page Link --}}
  17. @if ($paginator->hasMorePages())
  18. <li class="page-item">
  19. <a class="page-link" href="{{ $paginator->nextPageUrl() }}" rel="next">{!! __('pagination.next') !!}</a>
  20. </li>
  21. @else
  22. <li class="page-item disabled" aria-disabled="true">
  23. <span class="page-link">{!! __('pagination.next') !!}</span>
  24. </li>
  25. @endif
  26. </ul>
  27. </nav>
  28. @endif