@extends('layouts.app') @section('content')
{{-- Sidebar Categories --}}
{{-- Categories --}}

ক্যাটাগরি

{{-- Price Slider --}}

দাম অনুসারে

{{-- Histogram --}}
@foreach($histogram as $count)
@endforeach
{{-- Dual Range Slider --}}
{{-- Track --}}
{{-- Active range --}}
{{-- Range inputs --}}
{{-- Input fields --}}
৳
—
৳
{{-- Action buttons --}}
রিসেট

@php $filteredCount = $products->total(); @endphp {{ $filteredCount }}টি পণ্য পাওয়া গেছে

{{-- Product Grid --}}

আমাদের কালেকশন

{{-- Sort By Dropdown --}}
@foreach(request()->except('sort', 'page') as $key => $value) @endforeach

মোট {{ $products->total() }}টি পণ্য

@forelse($products as $product) @php $_origPrice = $product->price; $_salePrice = $product->sale_price ?? null; $_hasDiscount = $_salePrice && $_salePrice < $_origPrice; $_discountPct = $_hasDiscount ? round(($_origPrice - $_salePrice) / $_origPrice * 100) : 0; $_inStock = !isset($product->stock_quantity) || $product->stock_quantity > 0; @endphp
{{-- Image --}}
{{ $product->name }} {{-- Wishlist Button --}} {{-- Sale Badge --}} @if($_hasDiscount)
-{{ $_discountPct }}%
@endif {{-- Out of Stock Overlay --}} @unless($_inStock)
Out of Stock
@endunless
{{-- Content --}}
@if(!empty($product->category?->name))

{{ $product->category->name }}

@endif

{{ $product->name }}

{{-- Rating --}} @if(!empty($product->average_rating))
@for($i = 1; $i <= 5; $i++) @endfor
({{ $product->reviews_count ?? 0 }})
@endif {{-- Price --}}
@if($_hasDiscount) ৳{{ number_format($_salePrice) }} ৳{{ number_format($_origPrice) }} @else ৳{{ number_format($_origPrice) }} @endif
{{-- Add to Cart --}}
@empty

দুঃখিত, কোনো পণ্য পাওয়া যায়নি!

@endforelse
{{ $products->links() }}
@endsection @push('scripts') @endpush