|
1 | 1 | <nav role="navigation" aria-label="{{ __('Pagination Navigation') }}" class="flex items-center justify-between px-4 sm:px-0 py-3"> |
2 | 2 | <div class="flex justify-between flex-1 md:hidden"> |
3 | 3 | @if ($paginator->onFirstPage()) |
4 | | - <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"> |
| 4 | + <span class="relative inline-flex items-center px-4 py-2 text-xs sm:text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 rounded-md"> |
5 | 5 | {!! __('pagination.previous') !!} |
6 | 6 | </span> |
7 | 7 | @else |
8 | | - <Link dusk="pagination-simple-previous" 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"> |
| 8 | + <Link dusk="pagination-simple-previous" href="{{ $paginator->previousPageUrl() }}" class="relative inline-flex items-center px-4 py-2 text-xs sm: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"> |
9 | 9 | {!! __('pagination.previous') !!} |
10 | 10 | </Link> |
11 | 11 | @endif |
12 | 12 |
|
13 | 13 | @include('splade::table.per-page-selector') |
14 | 14 |
|
15 | 15 | @if ($paginator->hasMorePages()) |
16 | | - <Link dusk="pagination-simple-next" 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"> |
| 16 | + <Link dusk="pagination-simple-next" href="{{ $paginator->nextPageUrl() }}" class="relative inline-flex items-center px-4 py-2 ml-3 text-xs sm: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"> |
17 | 17 | {!! __('pagination.next') !!} |
18 | 18 | </Link> |
19 | 19 | @else |
20 | | - <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"> |
| 20 | + <span class="relative inline-flex items-center px-4 py-2 text-xs sm:text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 rounded-md"> |
21 | 21 | {!! __('pagination.next') !!} |
22 | 22 | </span> |
23 | 23 | @endif |
|
28 | 28 | @include('splade::table.per-page-selector') |
29 | 29 |
|
30 | 30 | <div class="hidden lg:block ml-3"> |
31 | | - <p class="text-sm text-gray-700 leading-5"> |
| 31 | + <p class="text-xs sm:text-sm text-gray-700 leading-5"> |
32 | 32 | @if ($paginator->firstItem()) |
33 | 33 | <span class="font-medium">{{ $paginator->firstItem() }}</span> |
34 | 34 | {!! __('to') !!} |
|
48 | 48 | {{-- Previous Page Link --}} |
49 | 49 | @if ($paginator->onFirstPage()) |
50 | 50 | <span aria-disabled="true" aria-label="{{ __('pagination.previous') }}"> |
51 | | - <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" aria-hidden="true"> |
| 51 | + <span class="relative inline-flex items-center px-2 py-2 text-xs sm:text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default rounded-l-md leading-5" aria-hidden="true"> |
52 | 52 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> |
53 | 53 | <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" /> |
54 | 54 | </svg> |
55 | 55 | </span> |
56 | 56 | </span> |
57 | 57 | @else |
58 | | - <Link dusk="pagination-previous" 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" aria-label="{{ __('pagination.previous') }}"> |
| 58 | + <Link dusk="pagination-previous" href="{{ $paginator->previousPageUrl() }}" rel="prev" class="relative inline-flex items-center px-2 py-2 text-xs sm: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" aria-label="{{ __('pagination.previous') }}"> |
59 | 59 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> |
60 | 60 | <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" /> |
61 | 61 | </svg> |
|
67 | 67 | {{-- "Three Dots" Separator --}} |
68 | 68 | @if (is_string($element)) |
69 | 69 | <span aria-disabled="true"> |
70 | | - <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">{{ $element }}</span> |
| 70 | + <span class="relative inline-flex items-center px-4 py-2 -ml-px text-xs sm:text-sm font-medium text-gray-700 bg-white border border-gray-300 cursor-default leading-5">{{ $element }}</span> |
71 | 71 | </span> |
72 | 72 | @endif |
73 | 73 |
|
|
76 | 76 | @foreach ($element as $page => $url) |
77 | 77 | @if ($page == $paginator->currentPage()) |
78 | 78 | <span aria-current="page"> |
79 | | - <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">{{ $page }}</span> |
| 79 | + <span class="relative inline-flex items-center px-4 py-2 -ml-px text-xs sm:text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5">{{ $page }}</span> |
80 | 80 | </span> |
81 | 81 | @else |
82 | | - <Link dusk="pagination-{{ $page }}" 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" aria-label="{{ __('Go to page :page', ['page' => $page]) }}"> |
| 82 | + <Link dusk="pagination-{{ $page }}" href="{{ $url }}" class="relative inline-flex items-center px-4 py-2 -ml-px text-xs sm: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" aria-label="{{ __('Go to page :page', ['page' => $page]) }}"> |
83 | 83 | {{ $page }} |
84 | 84 | </Link> |
85 | 85 | @endif |
|
89 | 89 |
|
90 | 90 | {{-- Next Page Link --}} |
91 | 91 | @if ($paginator->hasMorePages()) |
92 | | - <Link dusk="pagination-next" 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" aria-label="{{ __('pagination.next') }}"> |
| 92 | + <Link dusk="pagination-next" href="{{ $paginator->nextPageUrl() }}" rel="next" class="relative inline-flex items-center px-2 py-2 -ml-px text-xs sm: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" aria-label="{{ __('pagination.next') }}"> |
93 | 93 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> |
94 | 94 | <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" /> |
95 | 95 | </svg> |
96 | 96 | </Link> |
97 | 97 | @else |
98 | 98 | <span aria-disabled="true" aria-label="{{ __('pagination.next') }}"> |
99 | | - <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" aria-hidden="true"> |
| 99 | + <span class="relative inline-flex items-center px-2 py-2 -ml-px text-xs sm:text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default rounded-r-md leading-5" aria-hidden="true"> |
100 | 100 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> |
101 | 101 | <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" /> |
102 | 102 | </svg> |
|
0 commit comments