@php $baseUrl = $baseUrl ?? request()->segment(1) . '/' . request()->segment(2) . '/' . request()->segment(3); $totalPages = $paginator->lastPage(); @endphp @if ($paginator->hasPages()) @else {{-- Show result count even when there are no pages (single page or no results) --}}

@if ($paginator->total() > 0) Showing {{ $paginator->firstItem() }} to {{ $paginator->lastItem() }} of {{ $paginator->total() }} results @else No results found @endif

@endif