diff --git a/resources/views/components/frameworks/tailwind/pagination.blade.php b/resources/views/components/frameworks/tailwind/pagination.blade.php index cf4cd67a..27d1eb0b 100644 --- a/resources/views/components/frameworks/tailwind/pagination.blade.php +++ b/resources/views/components/frameworks/tailwind/pagination.blade.php @@ -117,29 +117,29 @@ class="select-none cursor-pointer relative inline-flex items-center px-3 py-2 -m @endforeach @if ($paginator->hasMorePages()) -
- @if ($paginator->lastPage() - $paginator->currentPage() >= 2) - - @endif -
+ $paginator->lastPage() - $paginator->currentPage() >= 2, + 'hidden' => $paginator->lastPage() - $paginator->currentPage() < 2, + 'select-none cursor-pointer relative inline-flex items-center px-2 py-2 text-sm font-medium text-pg-primary-500 dark:text-pg-primary-300 bg-white dark:bg-pg-primary-600 border border-pg-primary-300 dark:border-transparent leading-5 hover:text-pg-primary-400 focus:z-10 focus:outline-none focus:shadow-outline-blue active:bg-pg-primary-100 active:text-pg-primary-500 transition ease-in-out duration-150' + ]) + wire:click="nextPage('{{ $paginator->getPageName() }}')" + rel="next" + > + + + +