@if ($paginator instanceof \Illuminate\Contracts\Pagination\LengthAwarePaginator) @php $current = $paginator->currentPage(); $last = $paginator->lastPage(); $from = max(1, $current - 2); $to = min($last, $current + 2); $perPage = $paginator->perPage(); $perPageChoices = collect([10, 12, 15, 20, 25, 50, 100, $perPage])->unique()->sort()->values(); $query = request()->query(); unset($query['page'], $query['per_page']); @endphp
{{ __('admin.page_summary', [ 'from' => num($paginator->firstItem()), 'to' => num($paginator->lastItem()), 'total' => num($paginator->total()), ]) }}
@foreach ($query as $name => $value) @if (is_array($value)) @foreach ($value as $item) @if (is_scalar($item)) @endif @endforeach @elseif (is_scalar($value) && $value !== '') @endif @endforeach
@if ($paginator->hasPages()) @endif
@endif