@extends('frontend.layouts.app') @section('content')
@include('frontend.partials.product_filter')
{{translate($title)}}

{{translate('Showing')}} {{$products->firstItem()}} {{translate('of')}} {{$products->lastItem()}} {{translate('of')}} {{$products->total()}} {{translate('Results')}}

@forelse($products as $product)
{{$product->name}}
@if($product->discount_percentage > 0) {{translate('off')}} {{round($product->discount_percentage)}} % @endif
@php echo show_ratings($product->review->avg('rating')) @endphp

{{$product->name}}

@php $price = (@$product->stock->first()?->price ?? $product->price); @endphp @if(($product->discount_percentage) > 0) {{short_amount(cal_discount($product->discount_percentage,$price))}} {{short_amount($price)}} @else {{short_amount($price)}} @endif
@php $authUser = auth_user('web'); $wishedProducts = $authUser ? $authUser->wishlist->pluck('product_id')->toArray() : []; $randNum = "prod-".rand(6666,10000000); @endphp
@empty
@include("frontend.partials.empty",['message' => 'No Data Found'])
@endforelse
{{$products->withQueryString()->links()}}
@endsection @push('scriptpush') @endpush