@push('meta') @include('frontend.partials.product-seo', ['product' => $product]) @endpush @extends('frontend.layouts.app') @section('content')
@php $hasDiscount = !is_null($product->discount_price) && $product->discount_price > 0; $basePrice = $product->price ?: 0; $finalPrice = $hasDiscount ? $product->discount_price : $basePrice; $discountPercent = $hasDiscount && $basePrice > 0 ? round((($basePrice - $product->discount_price) / $basePrice) * 100) : null; @endphp

{{ $product->name }}

{{ $product->product_code }}

BDT: {{ number_format($finalPrice, 2) }} Tk @if ($hasDiscount) {{ number_format($basePrice, 2) }} Tk @endif

@if ($discountPercent) {{ $discountPercent }}% OFF @endif
@php $hasSize = false; foreach ($product->variants as $item) { if (!is_null($item->size)) { $hasSize = true; break; } } @endphp @if ($hasSize)
Select Size

View Size Guide

@foreach ($product->variants as $item)
  • {{ $item->size }}
  • @endforeach
    @endif

  • Description
    {!! $product->description !!}
    Details
    {!! $product->detail !!}
    Materials
    {!! $product->matetial !!}
    Care
    {!! $product->care !!}
    @endsection @push('script') @include('frontend.partials.ga4-product', ['product' => $product]) @endpush @push('style') @endpush @push('script') @endpush