@php /** * 테이블 하단 Pagination * * @param \Illuminate\Database\Eloquent\Collection $resources * @param string $path * @param string|array $except */ if (!isset($except) || !$pageName) { $except = 'page'; } if (class_basename($resources) === 'Collection') { if (!$resources->count()) { return; } } else { if (!$resources->total()) { return; } } $view = $resources->appends(request()->except((array)$except)); if (isset($path) && $path) { $view = $view->setPath($path); } $start = ($resources->currentPage() - 1) * $resources->perPage() + 1; $end = $resources->currentPage() * $resources->perPage(); @endphp
Showing {{ number_format($start) }} to {{ number_format($end) }} of {{ number_format($resources->total()) }} entries
{{ $view->links('template.pagination') }}