@props([ 'paginator' => null, ]) @php $simple = ! $paginator instanceof \Illuminate\Contracts\Pagination\LengthAwarePaginator; @endphp @if ($simple)
class('pt-3 border-t border-zinc-100 dark:border-zinc-700 flex justify-between items-center') }} data-flux-pagination>
@if ($paginator->hasPages())
@if ($paginator->onFirstPage())
@else @if(method_exists($paginator,'getCursorName')) @else @endif @endif @if ($paginator->hasMorePages()) @if(method_exists($paginator,'getCursorName')) @else @endif @else
@endif
@endif
@else
class('pt-3 border-t border-zinc-100 dark:border-zinc-700 flex justify-between items-center gap-3') }} data-flux-pagination> @if ($paginator->total() > 0)
{!! __('Showing') !!} {{ $paginator->firstItem() }} {!! __('to') !!} {{ $paginator->lastItem() }} {!! __('of') !!} {{ $paginator->total() }} {!! __('results') !!}
@else
@endif @if ($paginator->hasPages()) {{-- Mobile pagination --}}
@if ($paginator->onFirstPage())
@else @endif @if ($paginator->hasMorePages()) @else
@endif
{{-- Desktop pagination --}} @endif
@endif