@extends('site.layout.layout') @section('title',__('Products By Category')) @section('content')
@include('site.products.all_product_cards', ['products' => $products])
@if($products->hasMorePages()) @php $total = $products->total(); $perPage = $products->perPage(); $currentPage = $products->currentPage(); $shown = $currentPage * $perPage; $shown = $shown > $total ? $total : $shown; $percentage = $total > 0 ? round(($shown / $total) * 100) : 0; @endphp

{{ __('Total ') }} {{ $shown }} / {{ $total }} {{ __('product') }}

@endif
@endsection @push('scripts') @endpush