@if($paginator->total() > $paginator->perPage())
    @unless ($paginator->firstItem() == 1) @endunless @if ($paginator->currentPage() > 1) @for ($i = $paginator->currentPage() - 4; $i< $paginator->currentPage(); $i++) @if ($i > 0)
  • {{ $i }}
  • @endif @endfor @endif
  • {{ $paginator->currentPage() }}
  • @for ($i = $paginator->currentPage() + 1; $i <= $paginator->lastPage(); $i++)
  • {{ $i }}
  • @if ($i >= $paginator->currentPage() + 4) @break @endif @endfor @unless (!$paginator->hasMorePages()) @endunless
@endif