26 lines
1.3 KiB
PHP
26 lines
1.3 KiB
PHP
@if ($paginator->hasPages())
|
|
<nav class="flex items-center justify-between border-t border-gray-200 bg-white px-4 py-3 sm:px-6" aria-label="Pagination">
|
|
<div class="hidden sm:block">
|
|
<p class="text-sm text-gray-700">
|
|
Showing
|
|
<span class="font-medium">{{ $paginator->firstItem(); }}</span>
|
|
to
|
|
<span class="font-medium">{{ $paginator->lastItem(); }}</span>
|
|
of
|
|
<span class="font-medium">{{ $paginator->total() }}</span>
|
|
results
|
|
</p>
|
|
</div>
|
|
<div class="flex flex-1 justify-between sm:justify-end">
|
|
@if(! $paginator->onFirstPage())
|
|
<a href="{{ $paginator->previousPageUrl() }}" class="relative inline-flex items-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus-visible:outline-offset-0">Previous</a>
|
|
@endif
|
|
|
|
@if($paginator->hasMorePages())
|
|
<a href="{{ $paginator->nextPageUrl() }}" class="relative ml-3 inline-flex items-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus-visible:outline-offset-0">Next</a>
|
|
@endif
|
|
</div>
|
|
</nav>
|
|
|
|
@endif
|