@extends('frontend.app') @push('head_assets') @endpush @push('css') @endpush @section('content')
{{-- Main Grid --}}
{{-- ═══ LEFT: IMAGES ═══ --}}
{{-- Main Large Image --}}
{{-- Small Thumbnails --}}
thumb
@foreach ($singleProduct->images as $k => $im)
thumb
@endforeach
{{-- ═══ RIGHT: DETAILS ═══ --}}
{{-- Category --}}
{{ $singleProduct->category->name ?? 'Product' }}
{{-- Name --}}

{{ $singleProduct->name }}

{{-- Rating --}} @php $totalReviews = $singleProduct->reviews->count(); $averageRating = $totalReviews > 0 ? round($singleProduct->reviews->avg('review'), 2) : 0; @endphp
@for ($i = 1; $i <= 5; $i++) @endfor
({{ $totalReviews }} রিভিউ) রিভিউ দেখুন
{{-- Price --}} @php $curr = $info->currency; @endphp
@if ($curr == 'BDT') ৳ {{ (int) $data['price'] }}@else{{ $data['price'] }} @endif @if ($singleProduct->after_discount > 0) ৳ {{ (int) $data['old_price'] }} @if (isset($discountPercent) && $discountPercent > 0) {{ $discountPercent }}% সাশ্রয় @endif @endif
{{-- SKU --}} @php $whatsappNumber = preg_replace('/[^0-9]/', '', $info->whats_num ?? ''); $encodedMessage = urlencode( 'হ্যালো, আমি আপনার এই প্রোডাক্টটি কিনতে চাই: ' . $singleProduct->name . ' - SKU: ' . $singleProduct->sku, ); @endphp
প্রোডাক্ট কোড: {{ $singleProduct->sku }}
{{-- Variations --}} @if (isset($singleProduct->variations) && $singleProduct->variations->count() > 0)
ভেরিয়েশন বেছে নিন:
@foreach ($singleProduct->variations as $var)
{{ $var->display_title }}
@endforeach
@endif {{-- Mini Desc --}} @if ($singleProduct->body && strip_tags($singleProduct->body) != '')
{!! Str::limit(strip_tags($singleProduct->body), 260) !!}
বিস্তারিত দেখুন @endif
{{-- Cart Form --}}
@csrf {{-- Quantity --}}
পরিমাণ:
{{-- CTA Buttons --}}
{{-- Call / WhatsApp --}} {{-- Delivery --}}
ডেলিভারি চার্জ
@foreach ($charges as $charge)
{{ $charge->title }} ৳ {{ number_format($charge->amount, 0) }}
@endforeach
{{-- Features --}}
    {!! $singleProduct->feature !!}
{{-- /spd-details --}}
{{-- /col-lg-6 --}} {{-- ═══ /RIGHT ═══ --}}
{{-- /row --}} {{-- ═══ TABS ═══ --}}

পণ্যের বিবরণ

@if ($singleProduct->video_link)
{!! $singleProduct->video_link !!}
@endif
{!! $singleProduct->body !!}

কাস্টমার রিভিউ

    @include('frontend.products.partials.reviewList')

রিভিউ লিখুন

{{-- ═══ RELATED PRODUCTS ═══ --}}
{{-- /container-fluid --}}
{{-- /single-product-thumb --}}
{{-- /axil-single-product-area --}}
{{-- /spd-wrapper --}} @endsection @push('js') @endpush