1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| @if ($paginator->hasPages()) <nav class="pagination is-centered is-small"> <ul class="pagination-list"> @foreach ($elements as $element) @if (is_string($element)) <li> <span class="pagination-ellipsis">{{ $element }}</span> </li> @endif
@if (is_array($element)) @foreach ($element as $page => $url) <li> @if ($page == $paginator->currentPage()) <a class="pagination-link is-current" aria-current="page">{{ $page }}</a> @else <a class="pagination-link" href="{{ $url }}">{{ $page }}</a> @endif </li> @endforeach @endif @endforeach </ul> </nav> @endif
|