@if ($paginator->hasPages())
{{-- prev button --}} @if ($paginator->onFirstPage()) @else
@endif {{-- end prev button --}} {{--pages--}} @foreach ($elements as $element) @if (is_string($element)) @endif @if (is_array($element)) @foreach ($element as $page => $url) @if ($page == $paginator->currentPage()) @else
@endif
@endforeach @endif @endforeach {{--end pages--}} {{-- next button --}} @if ($paginator->hasMorePages())
@else @endif {{--end next btn --}}
@endif