@if ($products instanceof \Illuminate\Contracts\Pagination\LengthAwarePaginator && $products->hasPages()) @php $prevSvg = ''; $nextSvg = ''; @endphp
{{ $page }}
@else {{ $page }} @endif @endforeach @endif @endforeach @if ($products->hasMorePages()) {!! $nextSvg !!} @else {!! $nextSvg !!} @endif