Laravel's and Livewire's paginator views render data-md-pagination hooks; pagination.css draws the row, the 40px steps with their 48px targets, the selected page and the swap to "Page n of m" below 600px (plan step 36, inputs). It imports button.css for the simple paginators, now that the button is rewritten. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qwx5USif3wFFmxtHg5U1g9
19 lines
1.0 KiB
PHP
19 lines
1.0 KiB
PHP
{{-- Laravel's simple and cursor paginator, drawn in M3: previous and next as outlined buttons
|
|
(the package puts this in front of `pagination::simple-tailwind`). --}}
|
|
|
|
@if ($paginator->hasPages())
|
|
<nav role="navigation" aria-label="{{ __('Pagination Navigation') }}" data-md-pagination>
|
|
@if ($paginator->onFirstPage())
|
|
<x-livewire-material::button variant="outlined" icon="chevron_left" :label="__('Previous')" disabled />
|
|
@else
|
|
<x-livewire-material::button variant="outlined" icon="chevron_left" :label="__('Previous')" :link="$paginator->previousPageUrl()" no-wire-navigate rel="prev" />
|
|
@endif
|
|
|
|
@if ($paginator->hasMorePages())
|
|
<x-livewire-material::button variant="outlined" icon-right="chevron_right" :label="__('Next')" :link="$paginator->nextPageUrl()" no-wire-navigate rel="next" />
|
|
@else
|
|
<x-livewire-material::button variant="outlined" icon-right="chevron_right" :label="__('Next')" disabled />
|
|
@endif
|
|
</nav>
|
|
@endif
|