@if ($products instanceof \Illuminate\Contracts\Pagination\LengthAwarePaginator && $products->hasPages()) @php $prevSvg = ''; $nextSvg = ''; @endphp
@if ($products->onFirstPage()) {!! $prevSvg !!} @else @endif @foreach ($products->onEachSide(1)->links()->elements as $element) @if (is_string($element)) {{ $element }} @endif @if (is_array($element)) @foreach ($element as $page => $url) @if ($page == $products->currentPage())

{{ $page }}

@else {{ $page }} @endif @endforeach @endif @endforeach @if ($products->hasMorePages()) @else {!! $nextSvg !!} @endif
@endif