@include('layouts.header')
{{-- LEFT: IMAGES --}} @php $images = [ $product->image_1 ?? null, $product->image_2 ?? null, $product->image_3 ?? null, $product->image_4 ?? null, ]; @endphp
@foreach($images as $index => $img) @if(!empty($img)) {{ $product->product_name }} @endif @endforeach
{{-- RIGHT: DETAILS --}}

{{ $product->product_name }} @if(!empty($product->brand_name)) Brand: {{ $product->brand_name }} @endif

{{-- Rating placeholder (later connect with reviews table) --}}
( {{ $product->rating_count ?? 0 }} reviews )
@php // Base price from global_product.product_amount (or your main price column) $base = $product->product_amount ?? 0; // Rate, currency, symbol – fall back to session if not passed from controller $rate = $rate ?? session('currency_rate', 1); $currency = $currency ?? session('currency_shortcut', 'USD'); $symbol = $symbol ?? session('currency_symbol', '$'); // Convert $price = $base * $rate; // Format based on currency if ($currency === 'AED') { // Symbol AFTER for AED $formattedPrice = number_format($price, 2) . ' ' . $symbol; } else { // default => symbol BEFORE $formattedPrice = $symbol . ' ' . number_format($price, 2); } @endphp
{{ $formattedPrice }}
{{-- SHORT DESCRIPTION --}}

{{ $product->short_description ?? Str::limit($product->short_description, 160) }}

{{-- ADD TO CART --}} {{-- AVAILABILITY / META --}}
  • Availability:
  • @if(!empty($product->color))
  • Color:

    {{ $product->color }}

  • @endif @if(!empty($product->size))
  • Size:

    {{ $product->size }}

  • @endif
  • Category:

    {{ $product->product_category }}

  • Promotions:

    Free shipping on eligible orders

{{-- TAB SECTION --}}
Description

{!! nl2br(e($product->product_description)) !!}

Artisan Name:- {!! nl2br(e($artisan->artisan_name)) !!}

Artisan Id:- {!! nl2br(e($product->uthhan_id)) !!}

Care:- {!! nl2br(e($product->care)) !!}

Delivery Within:- {!! nl2br(e($product->delivery_date)) !!}Days

Specification

Color:- {!! nl2br(e($product->color)) !!}

Dimensions:- {!! nl2br(e($product->product_dimension)) !!}Inches

Weight:- {!! nl2br(e($product->weight)) !!}Grams

Reviews

No reviews yet. Be the first to review this product!

{{-- Later: loop through reviews --}}
@if(!empty($product->video_url))
@endif
{{-- RELATED PRODUCTS --}} @if(isset($relatedProducts) && $relatedProducts->count())
@foreach($relatedProducts as $rel) @php $base = $rel->product_amount ?? 0; $rate = $rate ?? session('currency_rate', 1); $currency = $currency ?? session('currency_shortcut', 'USD'); $symbol = $symbol ?? session('currency_symbol', '$'); $price = $base * $rate; if ($currency === 'AED') { $relFormattedPrice = number_format($price, 2) . ' ' . $symbol; } else { $relFormattedPrice = $symbol . ' ' . number_format($price, 2); } @endphp
{{ $rel->product_name }}
{{ $relFormattedPrice }}
@endforeach
@endif
@include('layouts.footer')
+