@if ($paginator->hasPages()) @php $total = $paginator->total(); $perPage = $paginator->perPage(); $current = $paginator->currentPage(); $last = $paginator->lastPage(); $from = $paginator->firstItem() ?? 0; $to = $paginator->lastItem() ?? 0; @endphp
{{-- Info --}} {{ $from }}–{{ $to }} sur {{ number_format($total, 0, ',', ' ') }} résultat(s) {{-- Boutons --}}
{{-- Précédent --}} @if ($paginator->onFirstPage()) @else @endif {{-- Pages --}} @foreach ($elements as $element) @if (is_string($element)) @endif @if (is_array($element)) @foreach ($element as $page => $url) @if ($page == $current) {{ $page }} @else {{ $page }} @endif @endforeach @endif @endforeach {{-- Suivant --}} @if ($paginator->hasMorePages()) @else @endif
@endif