{{-- Pagination Component Usage: --}} @props(['paginator']) @if (method_exists($paginator, 'hasPages') && $paginator->hasPages()) @if ($paginator->onFirstPage()) {!! __('pagination.previous') !!} @else {!! __('pagination.previous') !!} @endif @if ($paginator->hasMorePages()) {!! __('pagination.next') !!} @else {!! __('pagination.next') !!} @endif {!! __('Showing') !!} {{ $paginator->firstItem() }} {!! __('to') !!} {{ $paginator->lastItem() }} {!! __('of') !!} {{ $paginator->total() }} {!! __('results') !!} {{-- Previous Page Link --}} @if ($paginator->onFirstPage()) @else @endif {{-- Pagination Elements --}} @php $elements = $paginator->linkCollection()->toArray(); @endphp @foreach ($elements as $element) {{-- "Three Dots" Separator --}} @if (is_string($element)) {{ $element }} @endif {{-- Array Of Links --}} @if (is_array($element)) @foreach ($element as $page => $url) @if ($page == $paginator->currentPage()) {{ $page }} @else {{ $page }} @endif @endforeach @endif @endforeach {{-- Next Page Link --}} @if ($paginator->hasMorePages()) @else @endif @elseif (!method_exists($paginator, 'hasPages')) {{-- Simple display for non-paginated collections --}}
{!! __('Showing') !!} {{ $paginator->firstItem() }} {!! __('to') !!} {{ $paginator->lastItem() }} {!! __('of') !!} {{ $paginator->total() }} {!! __('results') !!}
{!! __('Showing') !!} {{ $paginator->count() }} {!! __('results') !!}