@section('meta_title', $product->name . ' - ' . \App\Models\Setting::getVal('site_name', 'SwiftCart')) @section('meta_description', Str::limit(strip_tags($product->meta_description ?? $product->description ?? $product->name), 160)) @section('meta_keywords', $product->name . ', ' . ($product->brand ?? 'gadgets') . ', buy ' . $product->name . ' online bd, best price bangladesh') @section('og_image', str_starts_with($product->image, 'http') ? $product->image : asset($product->image)) @section('json_ld_schema') @endsection
Home {{ $product->category->name }} {{ $product->name }}
@php $images = [str_starts_with($product->image, 'http') ? $product->image : asset($product->image)]; if (!empty($product->additional_images) && is_array($product->additional_images)) { foreach($product->additional_images as $addImg) { $images[] = str_starts_with($addImg, 'http') ? $addImg : asset($addImg); } } @endphp
{{ $product->name }} @if($product->discount_price) OFFER @endif

{{ $product->name }}

Brand: {{ $product->brand ?? 'No Brand' }} @if(!empty($product->brand) && $product->brand !== 'No Brand') Verified Brand @endif
|
@for($i = 1; $i <= 5; $i++) @endfor
{{ $product->reviews_avg_rating }}
| {{ $product->reviews_count }} Ratings
@if($product->discount_price) ৳{{ number_format($product->price, 0) }} -{{ round((($product->price - $product->discount_price)/$product->price)*100) }}% @endif
@if($product->stock > 5) In Stock ({{ $product->stock }} available) @elseif($product->stock > 0) Only {{ $product->stock }} left in stock @else Out of Stock @endif
@if($product->stock > 0)
@csrf @php $colorsList = is_array($product->colors) ? $product->colors : (is_string($product->colors) && trim($product->colors) !== '' ? array_map('trim', explode(',', $product->colors)) : []); $sizesList = is_array($product->sizes) ? $product->sizes : (is_string($product->sizes) && trim($product->sizes) !== '' ? array_map('trim', explode(',', $product->sizes)) : []); @endphp @if(!empty($colorsList) || !empty($sizesList))
@if(!empty($colorsList))
Color
@foreach($colorsList as $index => $color) @endforeach
@endif @if(!empty($sizesList))
Size
@foreach($sizesList as $index => $size) @endforeach
@endif
@endif
Quantity
@else @endif @if(isset($showProductWa) && $showProductWa == '1') @endif @if(!empty($productCustomNote))
Special Notice / Note: {{ $productCustomNote }}
@endif
@php $prodDeliveryMode = \App\Models\Setting::getVal('delivery_system_mode', 'simple'); $prodDeliveryInsideDhaka = (float)\App\Models\Setting::getVal('delivery_inside_dhaka', 60); $prodDeliveryOutsideDhaka = (float)\App\Models\Setting::getVal('delivery_outside_dhaka', 120); @endphp

Delivery

Standard Delivery {{ number_format($prodDeliveryInsideDhaka, 0) }}

2 - 4 day(s)

Cash on Delivery Available

Service

7 Days Returns

Change of mind is not applicable

{{ $product->warranty ?? 'Warranty Not Available' }}

Specifications & Key Attributes

@if($product->category) @endif @if(!empty($product->colors) && is_array($product->colors)) @endif @if(!empty($product->sizes) && is_array($product->sizes)) @endif
Feature / Specification Details
Brand {{ $product->brand ?? 'No Brand' }} @if(!empty($product->brand) && $product->brand !== 'No Brand') Verified @endif
Product Code / SKU {{ $product->sku ?? ('PRD-' . $product->id) }}
Category {{ $product->category->name }}
Warranty Service {{ $product->warranty ?? '1 Year Official Warranty' }}
Stock Availability @if($product->stock > 0) In Stock ({{ $product->stock }} Units Available) @else Out of Stock @endif
Available Colors {{ implode(', ', $product->colors) }}
Available Sizes {{ implode(', ', $product->sizes) }}
@php if (is_array($product->highlights)) { $highlights = $product->highlights; } elseif (is_string($product->highlights) && trim($product->highlights) !== '') { $decoded = json_decode($product->highlights, true); $highlights = is_array($decoded) ? $decoded : array_map('trim', explode("\n", $product->highlights)); } else { $highlights = []; } @endphp @if(!empty($highlights))

Product Key Highlights & Features

    @foreach($highlights as $bullet) @if(!empty(trim($bullet)))
  • {{ trim($bullet) }}
  • @endif @endforeach
@endif

Full Product Overview & Description

{!! $product->description ?? 'No detailed description provided for this product.' !!}
@if($product->video_url)

Official Video Preview

@endif @php if (is_array($product->description_images)) { $descImages = $product->description_images; } elseif (is_string($product->description_images) && trim($product->description_images) !== '') { $decoded = json_decode($product->description_images, true); $descImages = is_array($decoded) ? $decoded : array_map('trim', explode(',', $product->description_images)); } else { $descImages = []; } @endphp @if(!empty($descImages))

Product Gallery & Detailed Views

@foreach($descImages as $imgUrl) @if(!empty($imgUrl))
{{ $product->name }} detailed view
@endif @endforeach
@endif

Questions About This Product

@if(Auth::check())
@csrf
@else
Please login to ask questions.
@endif @if($product->questions->isNotEmpty())
@foreach($product->questions as $qa)
Q

{{ $qa->question }}

By {{ $qa->user?->name ?? 'Customer' }} • {{ $qa->created_at->diffForHumans() }} @if(Auth::check()) @endif @endif
@if($qa->answer && $qa->replies->where('reply', $qa->answer)->isEmpty() && $qa->replies->where('is_admin_reply', true)->isEmpty())
A

{{ $qa->answer }}

Verified Store Admin
@endif @foreach($qa->replies as $rep)
R
@endforeach
@if(Auth::check())
@csrf
@endif
@endforeach
@else

No questions asked yet. Be the first to ask!

@endif

Verified Customer Ratings

{{ $product->reviews_avg_rating }} / 5.0
@for($i = 1; $i <= 5; $i++) @endfor
({{ $product->reviews_count }} Ratings)
@if($relatedProducts->isNotEmpty())

Just For You

@foreach($relatedProducts as $related)
{{ $related->name }} @if($related->discount_price) -{{ round((($related->price - $related->discount_price)/$related->price)*100) }}% @endif
{{ $related->name }}
৳{{ number_format($related->discount_price ?? $related->price, 0) }} @if($related->discount_price) ৳{{ number_format($related->price, 0) }} @endif
(12)
BD
@endforeach
@endif