@extends('front.master') @section('body') @php $totalItems = \App\Models\Product::where('status', 1)->where('category_id', $category->id)->count(); $shownItems = $products->currentPage() * $products->perPage(); $shownItems = $shownItems > $totalItems ? $totalItems : $shownItems; $progressPercentage = ($shownItems / $totalItems) * 100; @endphp
SHOWING {{ $shownItems }} of {{ $totalItems }} results
@foreach ($products as $product)
Vintage
{!! Str::limit($product->title ,18, ' ...') !!} {{-- --}}
₦{{ number_format($product->price, 2) }}
@endforeach
@if($products->count() > 20) @endif {{--
@if ($products->onFirstPage()) Previous @else Previous @endif @if ($products->hasMorePages()) Next @else Next @endif
--}}
@endsection