@if ($paginator->hasPages())
{{-- Showing text (hide on mobile, show on tablet+) --}}
Showing {{ $paginator->firstItem() ?? 0 }}–{{ $paginator->lastItem() ?? 0 }} of {{ $paginator->total() }}
{{-- Showing text (mobile only, placed below buttons) --}} {{-- Pagination buttons (mobile-friendly scroll) --}}
{{-- Previous --}} @if ($paginator->onFirstPage()) Previous @else @endif {{-- Page Numbers --}} @foreach ($elements as $element) {{-- "..." --}} @if (is_string($element)) {{ $element }} @endif {{-- Links --}} @if (is_array($element)) @foreach ($element as $page => $url) @if ($page == $paginator->currentPage()) {{ $page }} @else {{ $page }} @endif @endforeach @endif @endforeach {{-- Next --}} @if ($paginator->hasMorePages()) @else Next @endif
@endif