|
1 | 1 | @if ($paginator->hasPages()) |
2 | | - <nav role="navigation" aria-label="pagination"> |
3 | | - <ul class="pagination"> |
4 | | - {{-- Previous Page Link --}} |
5 | | - @if ($paginator->onFirstPage()) |
6 | | - <li class="page-item disabled" aria-disabled="true"> |
7 | | - <a class="page-link"> |
8 | | - {!! __('pagination.previous') !!} |
9 | | - </a> |
10 | | - </li> |
11 | | - @else |
12 | | - <li class="page-item"> |
13 | | - <a class="page-link" |
14 | | - href="{{ $paginator->previousPageUrl() }}" |
15 | | - rel="prev"> |
16 | | - {!! __('pagination.previous') !!} |
17 | | - </a> |
18 | | - </li> |
19 | | - @endif |
20 | | - |
21 | | - {{-- Pagination Elements --}} |
22 | | - @foreach ($elements as $element) |
23 | | - {{-- "Three Dots" Separator --}} |
24 | | - @if (is_string($element)) |
25 | | - <li class="page-item disabled" aria-disabled="true"> |
26 | | - <a class="page-link"> |
27 | | - {{ $element }} |
28 | | - </a> |
29 | | - </li> |
30 | | - @endif |
| 2 | + <nav class="btn-toolbar" |
| 3 | + role="toolbar" |
| 4 | + aria-label="Pagination"> |
| 5 | + {{-- Previous Page Link --}} |
| 6 | + @if ($paginator->onFirstPage()) |
| 7 | + <div class="btn-group me-2 mb-2" role="group"> |
| 8 | + <button class="btn btn-outline-secondary" |
| 9 | + type="button" |
| 10 | + disabled> |
| 11 | + {!! __('pagination.previous') !!} |
| 12 | + </button> |
| 13 | + </div> |
| 14 | + @else |
| 15 | + <div class="btn-group me-2 mb-2" role="group"> |
| 16 | + <a class="btn btn-outline-primary" |
| 17 | + href="{{ $paginator->previousPageUrl() }}" |
| 18 | + role="button" |
| 19 | + disabled> |
| 20 | + {!! __('pagination.previous') !!} |
| 21 | + </a> |
| 22 | + </div> |
| 23 | + @endif |
31 | 24 |
|
32 | | - {{-- Array Of Links --}} |
33 | | - @if (is_array($element)) |
34 | | - @foreach ($element as $page => $url) |
35 | | - @if ($page == $paginator->currentPage()) |
36 | | - <li class="page-item active" aria-current="page"> |
37 | | - <a class="page-link"> |
38 | | - {{ $page }} |
39 | | - </a> |
40 | | - </li> |
41 | | - @else |
42 | | - <li class="page-item"> |
43 | | - <a class="page-link" href="{{ $url }}"> |
44 | | - {{ $page }} |
45 | | - </a> |
46 | | - </li> |
47 | | - @endif |
48 | | - @endforeach |
49 | | - @endif |
50 | | - @endforeach |
| 25 | + {{-- Pagination Elements --}} |
| 26 | + @foreach ($elements as $element) |
| 27 | + {{-- "Three Dots" Separator --}} |
| 28 | + @if (is_string($element)) |
| 29 | + <div class="btn-group me-2 mb-2" role="group"> |
| 30 | + <button class="btn btn-outline-secondary border border-0 px-1" |
| 31 | + type="button" |
| 32 | + disabled> |
| 33 | + {{ $element }} |
| 34 | + </button> |
| 35 | + </div> |
| 36 | + @endif |
51 | 37 |
|
52 | | - {{-- Next Page Link --}} |
53 | | - @if ($paginator->hasMorePages()) |
54 | | - <li class="page-item"> |
55 | | - <a class="page-link" href="{{ $paginator->nextPageUrl() }}"> |
56 | | - {!! __('pagination.next') !!} |
57 | | - </a> |
58 | | - </li> |
59 | | - @else |
60 | | - <li class="page-item disabled" aria-disabled="true"> |
61 | | - <a class="page-link"> |
62 | | - {!! __('pagination.next') !!} |
63 | | - </a> |
64 | | - </li> |
| 38 | + {{-- Array Of Links --}} |
| 39 | + @if (is_array($element)) |
| 40 | + @foreach ($element as $page => $url) |
| 41 | + @if ($page == $paginator->currentPage()) |
| 42 | + <div class="btn-group me-2 mb-2" role="group"> |
| 43 | + <button class="btn btn-primary" type="button"> |
| 44 | + {{ $page }} |
| 45 | + </button> |
| 46 | + </div> |
| 47 | + @else |
| 48 | + <div class="btn-group me-2 mb-2" role="group"> |
| 49 | + <a class="btn btn-outline-primary" |
| 50 | + href="{{ $url }}" |
| 51 | + role="button"> |
| 52 | + {{ $page }} |
| 53 | + </a> |
| 54 | + </div> |
| 55 | + @endif |
| 56 | + @endforeach |
65 | 57 | @endif |
66 | | - </ul> |
| 58 | + @endforeach |
| 59 | + |
| 60 | + {{-- Next Page Link --}} |
| 61 | + @if ($paginator->hasMorePages()) |
| 62 | + <div class="btn-group mb-2" role="group"> |
| 63 | + <a class="btn btn-outline-primary" |
| 64 | + href="{{ $paginator->nextPageUrl() }}" |
| 65 | + role="button"> |
| 66 | + {!! __('pagination.next') !!} |
| 67 | + </a> |
| 68 | + </div> |
| 69 | + @else |
| 70 | + <div class="btn-group mb-2" role="group"> |
| 71 | + <button class="btn btn-outline-secondary" |
| 72 | + type="button" |
| 73 | + disabled> |
| 74 | + {!! __('pagination.next') !!} |
| 75 | + </button> |
| 76 | + </div> |
| 77 | + @endif |
67 | 78 | </nav> |
68 | 79 | @endif |
0 commit comments