@if ($paginator->currentPage() > 1)
  • « {{ __('global.first') }}
  • ‹ {{ __('global.previous') }}
  • @else
  • {{ __('global.first') }}
  • {{ __('global.previous') }}
  • @endif @php $start = max(1, $paginator->currentPage() - 5); $end = min($paginator->lastPage(), $paginator->currentPage() + 5); @endphp @if ($start > 1)
  • 1
  • @if ($start > 2)
  • ...
  • @endif @endif @for ($i = $start; $i <= $end; $i++) @if ($i == $paginator->currentPage())
  • {{ $i }}
  • @else
  • {{ $i }}
  • @endif @endfor @if ($end < $paginator->lastPage()) @if ($end < $paginator->lastPage() - 1)
  • ...
  • @endif
  • {{ $paginator->lastPage() }}
  • @endif @if ($paginator->currentPage() < $paginator->lastPage())
  • {{ __('global.next') }} ›
  • {{ __('global.last') }} »
  • @else
  • {{ __('global.next') }}
  • {{ __('global.last') }}
  • @endif