@props([ 'from' => 0, 'to' => 0, 'total' => 0, 'currentPage' => 1, 'lastPage' => 1, /** Comma-separated Livewire actions that should show the loading state */ 'wireTarget' => null, 'firstAction' => null, 'previousAction' => null, 'nextAction' => null, 'lastAction' => null, ]) @php $onFirstPage = (int) $currentPage <= 1; $onLastPage = (int) $currentPage >= (int) $lastPage; $navButtonClass = 'flex w-10 items-center justify-center border-r border-neutral-200 text-neutral-500 transition-colors hover:bg-neutral-100 disabled:cursor-not-allowed disabled:opacity-35 dark:border-white/[0.10] dark:text-fg-dim dark:hover:bg-white/[0.06]'; $lastNavButtonClass = 'flex w-10 items-center justify-center text-neutral-500 transition-colors hover:bg-neutral-100 disabled:cursor-not-allowed disabled:opacity-35 dark:text-fg-dim dark:hover:bg-white/[0.06]'; $hasLoading = filled($wireTarget); @endphp
class('flex items-center justify-between gap-3 px-4 py-3') }}>

Showing {{ $from }}–{{ $to }} of {{ $total }}

@if ($hasLoading) {{ $currentPage }} Loading page… @else {{ $currentPage }} @endif