@extends('layouts.store') @section('title',$product->seo_title ?: $product->display_name) @section('meta_description',$product->seo_description ?: ($product->display_short_description ?: ($product->capacity_label ? $product->display_name.' from '.($product->brand?->display_name ?? $storeName).'. Contact us for product details.' : __('A handcrafted product from Bangladesh.')))) @php $productSchema = ['@context' => 'https://schema.org', '@type' => 'Product', 'name' => $product->display_name, 'image' => $product->image_url, 'description' => $product->display_description ?: $product->display_short_description, 'sku' => $product->sku, 'brand' => ['@type' => 'Brand', 'name' => $product->brand?->display_name ?? $storeName], 'additionalProperty' => $product->capacity_kva ? [['@type' => 'PropertyValue', 'name' => 'Generator capacity', 'value' => $product->capacity_kva, 'unitText' => 'kVA']] : []]; if (! $product->price_on_request) { $productSchema['offers'] = ['@type' => 'Offer', 'priceCurrency' => 'BDT', 'price' => $product->price, 'availability' => $product->stock_quantity ? 'https://schema.org/InStock' : 'https://schema.org/OutOfStock', 'url' => request()->url()]; } $breadcrumbSchema = ['@context' => 'https://schema.org', '@type' => 'BreadcrumbList', 'itemListElement' => [['@type' => 'ListItem', 'position' => 1, 'name' => __('Home'), 'item' => url('/')], ['@type' => 'ListItem', 'position' => 2, 'name' => __('All products'), 'item' => url('/shop')], ['@type' => 'ListItem', 'position' => 3, 'name' => $product->display_name, 'item' => request()->url()]]]; @endphp @push('head') @endpush @section('content') @php($gallery = collect([$product->image_url])->merge($product->images->map(fn ($image) => $image->url))->filter()->unique()->values())
{{ $product->brand?->display_name ?? __('Local maker') }} · {{ $product->category?->display_name }}

{{ $product->display_name }}

@if($product->reviews_count) {{ number_format($product->reviews_avg_rating,1) }} · {{ trans_choice(':count approved reviews', $product->reviews_count, ['count'=>$product->reviews_count]) }}@else{{ __('No reviews yet') }}@endif
{{ $product->price_on_request ? __('Contact for price') : '৳'.number_format($product->price) }}@if(!$product->price_on_request && $product->sale_price)৳{{ number_format($product->regular_price) }}{{ __('Special price') }}@endif

{{ $product->display_short_description ?: $product->display_description }}

SKU {{ $product->sku }}

{{ $product->price_on_request ? '● '.__('Check availability with us') : ($product->stock_quantity ? '● '.__('In stock') : '○ '.__('Out of stock')) }} @if(!$product->price_on_request && $product->stock_quantity && $product->stock_quantity<6)· {{ __('Only :count left', ['count'=>$product->stock_quantity]) }}@endif
@if($product->price_on_request){{ __('Request a quote on WhatsApp') }} ↗@else
@csrf
stock_quantity)>{{ __('Delivery across Bangladesh') }}
@endif

Hotline: 💬 WhatsApp 01317096620

@auth
@csrf
@else♡ {{ __('Sign in to save to wishlist') }}@endauth
⌁

{{ __('Delivery across Bangladesh') }}{{ __('We deliver nationwide.') }}

↺

{{ __('Easy support') }}{{ __('Contact us if you need product support.') }}

♧

{{ __('Support local makers') }}{{ __('There is a story behind every product.') }}

{{ __('Product story') }}

{{ __('Chosen with care, for you') }}

{{ $product->display_description ?: $product->display_short_description }}

{{ __('Categories') }}
{{ $product->category?->display_name }}
{{ __('Brand') }}
{{ $product->brand?->display_name ?? __('Local maker') }}
@if($product->capacity_label)
{{ __('Capacity (kVA)') }}
{{ $product->capacity_label }}
@endif
SKU
{{ $product->sku }}
{{ __('Weight') }}
{{ $product->weight ? $product->weight.' kg' : __('Not specified') }}
{{ __('Customer experiences') }}

{{ __('Product reviews') }} ({{ $product->reviews_count }})

@if($canReview && !$hasReviewed){{ __('Write a review') }} ↗@endif
@if($canReview && !$hasReviewed)
@csrf
@elseif(auth()->check() && $hasReviewed)

{{ __('Thank you. Your review has been submitted or published.') }}

@elseif(auth()->check())

{{ __('You must have a delivered order to review this product.') }}

@endif
@forelse($product->reviews as $review)
{{ $review->user?->name ?? __('Customer') }}@if($review->verified_purchase)✓ {{ __('Verified purchase') }}@endif
{{ str_repeat('★',$review->rating) }}{{ str_repeat('☆',5-$review->rating) }}
@if($review->title)

{{ $review->title }}

@endif

{{ $review->body }}

@empty

{{ __('No approved reviews yet. Share your experience first.') }}

@endforelse
@if($related->isNotEmpty())@endif
@endsection