{{-- Copyright (c) ppy Pty Ltd . Licensed under the GNU Affero General Public License v3.0. See the LICENCE file in the repository root for full licence text. --}} @if ($object->lastPage() > 1) @php if ($object->currentPage() > $object->lastPage()) { $currentPage = $object->lastPage() + 1; } else { $currentPage = $object->currentPage(); } @endphp @endif