@extends('layouts.app') @section('content')
{{ $product->category->categoryName ?? 'Sports Trophy' }}

{{ $product->productName }}

@php $defaultPrice = $product->final_price; $defaultMrp = $product->productMrp; if($product->has_price_variant == 'yes' && $product->priceVariants->count() > 0){ $defaultVariant = $product->priceVariants->sortBy('final_price')->first(); $defaultPrice = $defaultVariant->final_price; $defaultMrp = $defaultVariant->size_mrp; } $defaultDiscountPercent = 0; if($defaultMrp > 0 && $defaultPrice > 0 && $defaultMrp > $defaultPrice){ $defaultDiscountPercent = round((($defaultMrp - $defaultPrice) / $defaultMrp) * 100); } @endphp
₹{{ number_format($defaultPrice, 2) }} ₹{{ number_format($defaultMrp, 2) }} {{ $defaultDiscountPercent }}% Off
@if($product->has_price_variant == 'yes' && $product->priceVariants->count() > 0)
@foreach($product->priceVariants as $index => $variant) @endforeach @if($product->has_color_variant == 'yes' && $product->colorVariants->count() > 0)
@foreach($product->colorVariants as $index => $color) @endforeach
@endif @if($product->addons->count() > 0)
@foreach($product->addons as $addon) @endforeach
@endif
@endif

{{ $product->productDescription ?: 'Premium quality sports product crafted for tournaments, school competitions, club events and championship awards.' }}

SKU: PROD-{{ str_pad($product->id, 4, '0', STR_PAD_LEFT) }}

Category: {{ $product->category->categoryName ?? 'Sports Trophy' }}

Availability: @if($product->stock == 'Out of Stock') {{ $product->stock }} @elseif($product->stock == 'Low Stock') {{ $product->stock }} @else {{ $product->stock }} @endif

Shipping: Delivery available across India

Product Description

{{ $product->productDescription ?: 'This premium product is specially designed to celebrate excellence and achievement. Its attractive design and quality finish make it a perfect choice for sports events, school competitions, club tournaments and award ceremonies.' }}

Specifications

@if($product->productMrp > 0) @endif @if($product->specifications->count() > 0) @foreach($product->specifications as $spec) @endforeach @endif
Product Name {{ $product->productName }}
Category {{ $product->category->categoryName ?? 'Sports Trophy' }}
Selling Price ₹{{ number_format($product->final_price, 2) }}
MRP ₹{{ number_format($product->productMrp, 2) }}
Stock Status {{ $product->stock }}
{{ $spec->specificationTitle }} {{ $spec->specificationValue }}
Customization Available on request
@if($relatedProducts->count() > 0)
@foreach($relatedProducts as $item)
@endforeach
@endif
Added to cart View Cart
@endsection