@extends('layouts.app') @section('content')

"{{ $query }}" এর জন্য অনুসন্ধান ফলাফল

মোট {{ $products->total() }}টি পণ্য পাওয়া গেছে

@if($products->count() > 0)
@foreach($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 --}}
@endforeach
{{ $products->appends(['query' => $query])->links() }}
@else

দুঃখিত! আমরা কিছু খুঁজে পাইনি

অনুগ্রহ করে অন্য কোনো শব্দ দিয়ে সার্চ করুন অথবা আমাদের কালেকশন দেখুন।

সব পণ্য দেখুন
@endif
@endsection