{{-- Pagination Component for Laravel --}} @if ($paginator->hasPages()) {{-- Mobile pagination --}} @if ($paginator->onFirstPage()) {!! __('pagination.previous') !!} @else {!! __('pagination.previous') !!} @endif @if ($paginator->hasMorePages()) {!! __('pagination.next') !!} @else {!! __('pagination.next') !!} @endif {!! __('Showing') !!} @if ($paginator->firstItem()) {{ $paginator->firstItem() }} {!! __('to') !!} {{ $paginator->lastItem() }} @else {{ $paginator->count() }} @endif {!! __('of') !!} {{ $paginator->total() }} {!! __('results') !!} {{-- Previous Page Link --}} @if ($paginator->onFirstPage()) @else @endif {{-- Pagination Elements --}} @foreach ($paginator->getUrlRange(1, $paginator->lastPage()) as $page => $url) @if ($page == $paginator->currentPage()) {{ $page }} @else {{ $page }} @endif @endforeach {{-- Next Page Link --}} @if ($paginator->hasMorePages()) @else @endif @elseif (!method_exists($paginator, 'hasPages')) {{-- Simple display for non-paginated collections --}}
{!! __('Showing') !!} @if ($paginator->firstItem()) {{ $paginator->firstItem() }} {!! __('to') !!} {{ $paginator->lastItem() }} @else {{ $paginator->count() }} @endif {!! __('of') !!} {{ $paginator->total() }} {!! __('results') !!}
{!! __('Showing') !!} {{ $paginator->count() }} {!! __('results') !!}