@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 --}}
@if ($paginator->onFirstPage())
@else
@endif
@foreach (\Livewire\invade($paginator)->elements() as $element)
{{-- "Three Dots" Separator --}}
@if (is_string($element))
{{ $element }}
@endif
{{-- Array Of Links --}}
@if (is_array($element))
@foreach ($element as $page => $url)
@if ($page == $paginator->currentPage())
{{ $page }}
@else
@endif
@endforeach
@endif
@endforeach
@if ($paginator->hasMorePages())
@else
@endif
@endif
@endif