|
1 | 1 | @if ($paginator->hasPages())
|
2 | 2 | @props(['darkMode' => false])
|
3 | 3 |
|
4 |
| - <div class="uk-flex uk-flex-between@m uk-flex-left uk-flex-wrap @if ($darkMode) uk-light @endif"> |
| 4 | + <div class="uk-flex uk-flex-between uk-flex-wrap @if ($darkMode) uk-light @endif"> |
5 | 5 | {{-- Previous Page Link --}}
|
6 | 6 | @if ($paginator->onFirstPage())
|
7 | 7 | <button class="uk-button uk-button-small uk-button-default uk-width-auto@m uk-width-1-2 uk-margin-small-top"
|
|
29 | 29 | @endif
|
30 | 30 |
|
31 | 31 | {{-- Pagination Elements --}}
|
32 |
| - @foreach ($elements as $element) |
33 |
| - {{-- "Three Dots" Separator --}} |
34 |
| - @if (is_string($element)) |
35 |
| - <button class="uk-button uk-button-small uk-button-default uk-margin-small-top" disabled> |
36 |
| - {{ $element }} |
37 |
| - </button> |
38 |
| - @endif |
| 32 | + <div> |
| 33 | + @foreach ($elements as $element) |
| 34 | + {{-- "Three Dots" Separator --}} |
| 35 | + @if (is_string($element)) |
| 36 | + <button class="uk-button uk-button-small uk-button-default uk-margin-small-top" disabled> |
| 37 | + {{ $element }} |
| 38 | + </button> |
| 39 | + @endif |
39 | 40 |
|
40 |
| - {{-- Array Of Links --}} |
41 |
| - @if (is_array($element)) |
42 |
| - @foreach ($element as $page => $url) |
43 |
| - @if ($page == $paginator->currentPage()) |
44 |
| - <button class="uk-button uk-button-small uk-button-primary uk-margin-small-top"> |
45 |
| - {{ $page }} |
46 |
| - </button> |
47 |
| - @else |
48 |
| - <a class="uk-button uk-button-small uk-button-default uk-margin-small-top" |
49 |
| - href="{{ $url }}"> |
50 |
| - {{ $page }} |
51 |
| - </a> |
52 |
| - @endif |
53 |
| - @endforeach |
54 |
| - @endif |
55 |
| - @endforeach |
| 41 | + {{-- Array Of Links --}} |
| 42 | + @if (is_array($element)) |
| 43 | + @foreach ($element as $page => $url) |
| 44 | + @if ($page == $paginator->currentPage()) |
| 45 | + <button class="uk-button uk-button-small uk-button-primary uk-margin-small-top"> |
| 46 | + {{ $page }} |
| 47 | + </button> |
| 48 | + @else |
| 49 | + <a class="uk-button uk-button-small uk-button-default uk-margin-small-top" |
| 50 | + href="{{ $url }}"> |
| 51 | + {{ $page }} |
| 52 | + </a> |
| 53 | + @endif |
| 54 | + @endforeach |
| 55 | + @endif |
| 56 | + @endforeach |
| 57 | + </div> |
56 | 58 | </div>
|
57 | 59 | @endif
|
0 commit comments