@if ($paginator->hasPages()) @php $currentPage = $paginator->currentPage(); $lastPage = $paginator->lastPage(); @endphp {{-- Desktop / tablet: original full pagination, unchanged --}} {{-- Mobile: compact "1 ... 9 10 11 ... 18" pattern --}} @endif