|
1 | 1 | @if ($paginator->hasPages()) |
2 | | - <nav role="navigation" aria-label="{{ __('Pagination Navigation') }}" class="flex items-center justify-between"> |
3 | | - <div class="flex justify-between flex-1 sm:hidden"> |
| 2 | + <nav role="navigation" aria-label="{{ __('Pagination Navigation') }}"> |
| 3 | + |
| 4 | + <div class="flex gap-2 items-center justify-between sm:hidden"> |
| 5 | + |
4 | 6 | @if ($paginator->onFirstPage()) |
5 | | - <span class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 rounded-md dark:text-gray-600 dark:bg-gray-800 dark:border-gray-600"> |
| 7 | + <span class="inline-flex items-center px-4 py-2 text-sm font-medium text-gray-600 bg-white border border-gray-300 cursor-not-allowed leading-5 rounded-md dark:text-gray-300 dark:bg-gray-700 dark:border-gray-600"> |
6 | 8 | {!! __('pagination.previous') !!} |
7 | 9 | </span> |
8 | 10 | @else |
9 | | - <a href="{{ $paginator->previousPageUrl() }}" class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-500 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150 dark:bg-gray-800 dark:border-gray-600 dark:text-gray-300 dark:focus:border-blue-700 dark:active:bg-gray-700 dark:active:text-gray-300"> |
| 11 | + <a href="{{ $paginator->previousPageUrl() }}" rel="prev" class="inline-flex items-center px-4 py-2 text-sm font-medium text-gray-800 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-700 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-800 transition ease-in-out duration-150 dark:bg-gray-800 dark:border-gray-600 dark:text-gray-200 dark:focus:border-blue-700 dark:active:bg-gray-700 dark:active:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-900 dark:hover:text-gray-200"> |
10 | 12 | {!! __('pagination.previous') !!} |
11 | 13 | </a> |
12 | 14 | @endif |
13 | 15 |
|
14 | 16 | @if ($paginator->hasMorePages()) |
15 | | - <a href="{{ $paginator->nextPageUrl() }}" class="relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-500 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150 dark:bg-gray-800 dark:border-gray-600 dark:text-gray-300 dark:focus:border-blue-700 dark:active:bg-gray-700 dark:active:text-gray-300"> |
| 17 | + <a href="{{ $paginator->nextPageUrl() }}" rel="next" class="inline-flex items-center px-4 py-2 text-sm font-medium text-gray-800 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-700 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-800 transition ease-in-out duration-150 dark:bg-gray-800 dark:border-gray-600 dark:text-gray-200 dark:focus:border-blue-700 dark:active:bg-gray-700 dark:active:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-900 dark:hover:text-gray-200"> |
16 | 18 | {!! __('pagination.next') !!} |
17 | 19 | </a> |
18 | 20 | @else |
19 | | - <span class="relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 rounded-md dark:text-gray-600 dark:bg-gray-800 dark:border-gray-600"> |
| 21 | + <span class="inline-flex items-center px-4 py-2 text-sm font-medium text-gray-600 bg-white border border-gray-300 cursor-not-allowed leading-5 rounded-md dark:text-gray-300 dark:bg-gray-700 dark:border-gray-600"> |
20 | 22 | {!! __('pagination.next') !!} |
21 | 23 | </span> |
22 | 24 | @endif |
| 25 | + |
23 | 26 | </div> |
24 | 27 |
|
25 | | - <div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between"> |
| 28 | + <div class="hidden sm:flex-1 sm:flex sm:gap-2 sm:items-center sm:justify-between"> |
| 29 | + |
26 | 30 | <div> |
27 | | - <p class="text-sm text-gray-700 leading-5 dark:text-gray-400"> |
| 31 | + <p class="text-sm text-gray-700 leading-5 dark:text-gray-600"> |
28 | 32 | {!! __('Showing') !!} |
29 | 33 | @if ($paginator->firstItem()) |
30 | 34 | <span class="font-medium">{{ $paginator->firstItem() }}</span> |
|
40 | 44 | </div> |
41 | 45 |
|
42 | 46 | <div> |
43 | | - <span class="relative z-0 inline-flex rtl:flex-row-reverse shadow-sm rounded-md"> |
| 47 | + <span class="inline-flex rtl:flex-row-reverse shadow-sm rounded-md"> |
| 48 | + |
44 | 49 | {{-- Previous Page Link --}} |
45 | 50 | @if ($paginator->onFirstPage()) |
46 | 51 | <span aria-disabled="true" aria-label="{{ __('pagination.previous') }}"> |
47 | | - <span class="relative inline-flex items-center px-2 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default rounded-l-md leading-5 dark:bg-gray-800 dark:border-gray-600" aria-hidden="true"> |
| 52 | + <span class="inline-flex items-center px-2 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-not-allowed rounded-l-md leading-5 dark:bg-gray-700 dark:border-gray-600 dark:text-gray-400" aria-hidden="true"> |
48 | 53 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> |
49 | 54 | <path fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd" /> |
50 | 55 | </svg> |
51 | 56 | </span> |
52 | 57 | </span> |
53 | 58 | @else |
54 | | - <a href="{{ $paginator->previousPageUrl() }}" rel="prev" class="relative inline-flex items-center px-2 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-l-md leading-5 hover:text-gray-400 focus:z-10 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-500 transition ease-in-out duration-150 dark:bg-gray-800 dark:border-gray-600 dark:active:bg-gray-700 dark:focus:border-blue-800" aria-label="{{ __('pagination.previous') }}"> |
| 59 | + <a href="{{ $paginator->previousPageUrl() }}" rel="prev" class="inline-flex items-center px-2 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-l-md leading-5 hover:text-gray-400 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-500 transition ease-in-out duration-150 dark:bg-gray-800 dark:border-gray-600 dark:active:bg-gray-700 dark:focus:border-blue-800 dark:text-gray-300 dark:hover:bg-gray-900 dark:hover:text-gray-300" aria-label="{{ __('pagination.previous') }}"> |
55 | 60 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> |
56 | 61 | <path fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd" /> |
57 | 62 | </svg> |
|
63 | 68 | {{-- "Three Dots" Separator --}} |
64 | 69 | @if (is_string($element)) |
65 | 70 | <span aria-disabled="true"> |
66 | | - <span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-700 bg-white border border-gray-300 cursor-default leading-5 dark:bg-gray-800 dark:border-gray-600">{{ $element }}</span> |
| 71 | + <span class="inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-700 bg-white border border-gray-300 cursor-default leading-5 dark:bg-gray-800 dark:border-gray-600 dark:text-gray-300">{{ $element }}</span> |
67 | 72 | </span> |
68 | 73 | @endif |
69 | 74 |
|
|
72 | 77 | @foreach ($element as $page => $url) |
73 | 78 | @if ($page == $paginator->currentPage()) |
74 | 79 | <span aria-current="page"> |
75 | | - <span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 dark:bg-gray-800 dark:border-gray-600">{{ $page }}</span> |
| 80 | + <span class="inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-700 bg-gray-200 border border-gray-300 cursor-default leading-5 dark:bg-gray-700 dark:border-gray-600 dark:text-gray-300">{{ $page }}</span> |
76 | 81 | </span> |
77 | 82 | @else |
78 | | - <a href="{{ $url }}" class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 hover:text-gray-500 focus:z-10 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150 dark:bg-gray-800 dark:border-gray-600 dark:text-gray-400 dark:hover:text-gray-300 dark:active:bg-gray-700 dark:focus:border-blue-800" aria-label="{{ __('Go to page :page', ['page' => $page]) }}"> |
| 83 | + <a href="{{ $url }}" class="inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 hover:text-gray-700 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150 dark:bg-gray-800 dark:border-gray-600 dark:text-gray-300 dark:hover:text-gray-300 dark:active:bg-gray-700 dark:focus:border-blue-800 hover:bg-gray-100 dark:hover:bg-gray-900" aria-label="{{ __('Go to page :page', ['page' => $page]) }}"> |
79 | 84 | {{ $page }} |
80 | 85 | </a> |
81 | 86 | @endif |
|
85 | 90 |
|
86 | 91 | {{-- Next Page Link --}} |
87 | 92 | @if ($paginator->hasMorePages()) |
88 | | - <a href="{{ $paginator->nextPageUrl() }}" rel="next" class="relative inline-flex items-center px-2 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-r-md leading-5 hover:text-gray-400 focus:z-10 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-500 transition ease-in-out duration-150 dark:bg-gray-800 dark:border-gray-600 dark:active:bg-gray-700 dark:focus:border-blue-800" aria-label="{{ __('pagination.next') }}"> |
| 93 | + <a href="{{ $paginator->nextPageUrl() }}" rel="next" class="inline-flex items-center px-2 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-r-md leading-5 hover:text-gray-400 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-500 transition ease-in-out duration-150 dark:bg-gray-800 dark:border-gray-600 dark:active:bg-gray-700 dark:focus:border-blue-800 dark:text-gray-300 dark:hover:bg-gray-900 dark:hover:text-gray-300" aria-label="{{ __('pagination.next') }}"> |
89 | 94 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> |
90 | 95 | <path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" /> |
91 | 96 | </svg> |
92 | 97 | </a> |
93 | 98 | @else |
94 | 99 | <span aria-disabled="true" aria-label="{{ __('pagination.next') }}"> |
95 | | - <span class="relative inline-flex items-center px-2 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default rounded-r-md leading-5 dark:bg-gray-800 dark:border-gray-600" aria-hidden="true"> |
| 100 | + <span class="inline-flex items-center px-2 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-not-allowed rounded-r-md leading-5 dark:bg-gray-700 dark:border-gray-600 dark:text-gray-400" aria-hidden="true"> |
96 | 101 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> |
97 | 102 | <path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" /> |
98 | 103 | </svg> |
|
0 commit comments