Blame view
resources/views/catalogs/paginate.blade.php
2.18 KB
c5118e5f3 Админка сайта - в... |
1 2 3 4 5 |
@if ($paginator->hasPages()) <div class="pagination"> <div class="pagination__inner"> @if ($paginator->onFirstPage()) <a class="pagination__btn pagination__btn-prev disabled" href="#"> |
477c05de1 Каталог страница,... |
6 7 |
<svg width="16" height="8"> <use xlink:href="{{ asset('/img/icons.svg#pag-prev')}}"></use> |
c5118e5f3 Админка сайта - в... |
8 9 10 11 |
</svg> </a> @else <a class="pagination__btn pagination__btn-prev" href="{{ $paginator->previousPageUrl() }}"> |
477c05de1 Каталог страница,... |
12 13 |
<svg width="16" height="8"> <use xlink:href="{{ asset('/img/icons.svg#pag-prev')}}"></use> |
c5118e5f3 Админка сайта - в... |
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
</svg> </a> @endif <ul class="pagination__list"> @foreach ($elements as $element) @if (is_string($element)) <li class="disabled pagination__item"><span>{{ $element }}</span></li> @endif @if (is_array($element)) @foreach ($element as $page => $url) @if ($page == $paginator->currentPage()) <li class="pagination__item"><a class="pagination__link active">{{ $page }}</a></li> @else <li class="pagination__item"><a class="pagination__link" href="{{ $url }}">{{ $page }}</a></li> @endif @endforeach @endif @endforeach </ul> @if ($paginator->hasMorePages()) <a class="pagination__btn pagination__btn-next" href="{{ $paginator->nextPageUrl() }}"> |
477c05de1 Каталог страница,... |
42 43 |
<svg width="16" height="8"> <use xlink:href="{{ asset('/img/icons.svg#pag-next') }}"></use> |
c5118e5f3 Админка сайта - в... |
44 45 46 |
</svg></a> @else <a class="pagination__btn pagination__btn-next disabled" href="#"> |
477c05de1 Каталог страница,... |
47 48 |
<svg width="16" height="8"> <use xlink:href="{{ asset('/img/icons.svg#pag-next') }}"></use> |
c5118e5f3 Админка сайта - в... |
49 50 51 52 53 |
</svg></a> @endif </div> </div> @endif |