@extends('layouts.app')
@section('content')
@php
$defaultPrice = $product->final_price ?? 0;
$defaultMrp = $product->productMrp ?? $product->old_price ?? 0;
if(($product->has_price_variant ?? 'no') == 'yes' && isset($product->priceVariants) && $product->priceVariants->count() > 0){
$defaultVariant = $product->priceVariants->sortBy('final_price')->first();
if($defaultVariant){
$defaultPrice = $defaultVariant->final_price ?? 0;
$defaultMrp = $defaultVariant->size_mrp ?? 0;
}
}
$defaultDiscountPercent = 0;
if($defaultMrp > 0 && $defaultPrice > 0 && $defaultMrp > $defaultPrice){
$defaultDiscountPercent = round((($defaultMrp - $defaultPrice) / $defaultMrp) * 100);
}
$inCart = in_array($product->id, $cartProductIds ?? []);
@endphp
{{ Str::limit(strip_tags($product->productDescription), 220) ?: 'Premium quality custom printing product with professional finish and fast delivery.' }}
{!! $product->productDescription ?: 'This premium product is specially designed for professional printing and customization. It is suitable for business branding, gifting, marketing and personal use.' !!}
{{ $product->productName }}
Product Description
Specifications
Product Name
{{ $product->productName }}
Category
{{ $product->category->categoryName ?? 'Printing Product' }}
@if($defaultMrp > 0)
Selling Price
₹{{ number_format($defaultPrice, 2) }}
@endif
MRP
₹{{ number_format($defaultMrp, 2) }}
@if(isset($product->specifications) && $product->specifications->count() > 0)
@foreach($product->specifications as $spec)
Stock Status
{{ $product->stock ?? 'Available' }}
@endforeach
@endif
{{ $spec->specificationTitle ?? $spec->title ?? 'Specification' }}
{{ $spec->specificationValue ?? $spec->value ?? '' }}
Customization
Available on request
Related Products