Font Wizard Pro Preview
🔍 Font Size: 100%
Showing page {{ $pageactual }} of {{ $pagetotal }} pages
{{-- Previous Button --}} @if ($pageactual <= 1) @else @endif {{-- Responsive Page Numbers --}} @php // Lógica responsive para móviles if ($pagetotal <= 7) { // Si hay 7 páginas o menos, mostrar todas $start = 1; $end = $pagetotal; $showFirstLast = false; $showDots = false; } else { // Lógica para páginas con puntos suspensivos $showFirstLast = true; $showDots = true; if ($pageactual <= 4) { $start = 1; $end = 5; } elseif ($pageactual >= $pagetotal - 3) { $start = $pagetotal - 4; $end = $pagetotal; } else { $start = $pageactual - 2; $end = $pageactual + 2; } } @endphp {{-- Primera página --}} @if ($showFirstLast && $start > 1) 1 @if ($start > 2) ... @endif @endif {{-- Páginas del medio --}} @for ($i = $start; $i <= $end; $i++) @if ($i == $pageactual) {{ $i }} @else {{ $i }} @endif @endfor {{-- Última página --}} @if ($showFirstLast && $end < $pagetotal) @if ($end < $pagetotal - 1) ... @endif {{ $pagetotal }} @endif {{-- Next Button --}} @if ($pageactual >= $pagetotal) @else @endif