@extends('layout.template') @section('title','Cusella Home Furnishing | Curtains, Sofas, Wallpapers & Interior Solutions') @section('content')
@foreach($variants[0]['images'] ?? [] as $img)
@endforeach
@foreach($variants[0]['images'] ?? [] as $img) @endforeach
@php $mrp = $variants[0]['mrp'] ?? 0; $offer = $variants[0]['offer_price'] ?? 0; $discount = 0; if ($mrp > 0) { $discount = round((($mrp - $offer) / $mrp) * 100); } @endphp

{{ $product['name'] }}

@for($i = 0; $i < 5; $i++) @endfor
@if(($product['review_count'] ?? 0) > 0) ( {{ $product['review_count'] }} Reviews ) @else (No reviews yet) @endif
  • SKU: {{ $variants[0]['sku'] ?? '' }}
  • |
  • Category: {{ $product['category']['name'] ?? '' }} {{ $product['subcategory']['name'] ?? '' }}
₹{{ $mrp }} @if($discount > 0) {{ $discount }}% OFF @endif
₹{{ $offer }} (Incl. of all taxes)
@if( $product['category']['id'] !=8)
Color :
    @foreach($variants as $key => $variant)
  • @endforeach
@endif
@if($product['category']['slug'] == 'curtain')
Select Curtain Model
@foreach($models as $model)

{{ $model['name'] }}

@endforeach
@endif @if($product['category']['slug'] == 'fabric')
Fabric Quantity
Enter the meters of fabric you need
Unit
m
Price / meter
{{ $variants[0]['offer_price'] }}
Total meters
0 m
Total Price: ₹0
@endif @if($product['category']['slug'] == 'wallpaper')
Wallpaper Roll Calculator
@endif @if(!empty($mattressConfig))
Select Category
@foreach($mattressConfig['categories'] as $cat) @endforeach
Select Thickness
@foreach($mattressConfig['thickness'] as $thick) @endforeach
Select Unit
@foreach($mattressConfig['units'] as $unit) @endforeach
Select Size
@endif
@if(in_array($product['category']['slug'], ['mattress', 'sofa', 'sleep-comfort', 'accessories']))
@endif
@if(($product['category']['slug'] == 'wallpaper' || $product['category']['slug'] == 'fabric') && $product['sample_purchase'] == 1) @endif
@if(!empty($product['description']))

{{ $product['description'] }}

@endif

The {{ $product['name'] }} from our {{ $product['category']['name'] ?? '' }} collection is designed to deliver superior comfort and durability.

Ideal for {{ implode(', ', $product['rooms'] ?? []) }}, this product ensures quality performance and long-lasting support.

@if(!empty($product['warranty_certification']))

Comes with {{ $product['warranty_certification'] }} for added peace of mind.

@endif @if(!empty($product['tags']))

Tagged as: {{ implode(', ', $product['tags']) }}

@endif
@if($product['category']['slug'] == 'mattress' && !empty($mattressConfig)) @foreach($mattressConfig['sizes'] as $type => $sizes)

{{ $type }} Size

@foreach($sizes as $size) @endforeach
Variant Inch Feet CM
#{{ $size['variant_id'] }} {{ $size['inch'] }} {{ $size['ft'] }} {{ $size['cm'] }}
@endforeach
Available Thickness

{{ implode(', ', $mattressConfig['thickness']) }} inches

@endif @if($product['category']['slug'] != 'mattress') @php $variant = $variants[0] ?? null; function cmToInch($cm) { return $cm ? round($cm / 2.54, 2) : 0; } @endphp @if(!empty($variant['dimensions']))
Dimension CM Inches
Length {{ $variant['dimensions']['length'] ?? 0 }} {{ cmToInch($variant['dimensions']['length'] ?? 0) }}
Width {{ $variant['dimensions']['width'] ?? 0 }} {{ cmToInch($variant['dimensions']['width'] ?? 0) }}
Height {{ $variant['dimensions']['height'] ?? 0 }} {{ cmToInch($variant['dimensions']['height'] ?? 0) }}
@else

No measurement data available.

@endif @endif
@if(!empty($product['material']) || !empty($product['pattern']) || !empty($product['features']))
    @if(!empty($product['material']))
  • Material: {{ $product['material'] }}
  • @endif @if(!empty($product['pattern']))
  • Pattern: {{ $product['pattern'] }}
  • @endif @if(!empty($product['features']))
  • Features: {{ $product['features'] }}
  • @endif @if(!empty($product['maintenance']))
  • Maintenance: {{ $product['maintenance'] }}
  • @endif
@else {{-- AUTO GENERATED --}}

The {{ $product['name'] }} is crafted with high-quality materials to ensure durability and long-lasting performance.

Designed for {{ implode(', ', $product['rooms'] ?? []) }}, it offers both comfort and style, making it a perfect addition to your space.

Built with premium finishing and attention to detail, this product is ideal for everyday use.

@endif

{{ count($reviews) }} review(s) for {{ $product['name'] }}

@forelse($reviews as $review)
{{-- Rating Stars --}}
@for($i = 1; $i <= 5; $i++) @if($i <=$review['rating']) @else @endif @endfor
{{ $review['user_name'] }} - {{ $review['date'] }}

{{ $review['review'] }}

@empty {{-- NO REVIEWS UI --}}

No reviews yet

Be the first to review this product

@endforelse
{{-- REVIEW FORM --}}

Add a Review

Your email address will not be published. Required fields are marked *

@csrf
Your rating
@if($product['category']['id'] == 8) @endif @endsection