{{-- LEFT: IMAGES SECTION --}}
{{-- LIST IMAGE (PRIMARY) --}}
Thumbnail Image @if($product->list_image || file_exists(public_path('storage/'.$product->list_image)))
@else

No List Image
@endif
{{-- PRODUCT GALLERY --}}
Product Gallery @php $validImages = $product->images->filter(function($img) { return $img->product_image && file_exists(public_path('storage/'.$img->product_image)); }); @endphp @if($validImages->count()) @else
Multiple images not available
@endif
{{-- RIGHT: PRODUCT DETAILS --}}

{{ $product->name }}

{{ ucfirst(str_replace('_',' ',$product->stock_status)) }}

Status: {{ ucfirst($product->status) }} | Added on {{ $product->created_at->format('M d, Y') }}


{{-- QUICK SPECIFICATIONS GRID --}}
@php $specs = [ ['label' => 'Category', 'val' => $product->categories?->name, 'icon' => 'tag'], ['label' => 'Color', 'val' => $product->colors?->color_name, 'icon' => 'palette'], ['label' => 'Sub Colors', 'val' => !empty($product->sub_colors) ? implode(', ', $product->sub_colors) : 'N/A', 'icon' => 'paint-brush'], ['label' => 'Material', 'val' => $product->materials?->material_name, 'icon' => 'layer-group'], ['label' => 'Size (H x W)', 'val' => ($product->sizes?->height ?? 'N/A') . ' x ' . ($product->sizes?->width ?? 'N/A'), 'icon' => 'ruler-combined'], ['label' => 'Thickness', 'val' => $product->thicknessess?->thickness, 'icon' => 'arrows-left-right'], ['label' => 'Product Type', 'val' => $product->product_type, 'icon' => 'cube'], ['label' => 'Weight', 'val' => $product->weight ? ($product->weight . ' ' . ($product->weight_unit ?? '')) : null, 'icon' => 'weight-hanging'], ['label' => 'Coverage Area', 'val' => $product->coverage_area, 'icon' => 'th-large'], ['label' => 'Piece Per Box', 'val' => $product->piece_per_box, 'icon' => 'boxes-stacked'], ]; @endphp @foreach($specs as $spec)
{{ $spec['label'] }}

{{ $spec['val'] ?? 'N/A' }}

@endforeach {{-- APPLICATIONS --}}
APPLICATION
@forelse($product->application_names as $app) {{ $app }} @empty N/A @endforelse
{{-- DESCRIPTIONS --}}
{!! $product->long_description ?? 'No detailed description provided.' !!}
{!! $product->short_description ?? 'N/A' !!}
@if(!empty($product->attributes) && count($product->attributes))
@foreach($product->attributes as $key => $value)

{{ str_replace('_',' ', $key) }} : {{ $value }}

@endforeach
@endif
{{-- META TITLE --}}
Meta Title
{{ $product->title ?? 'N/A' }}
{{-- META DESCRIPTION --}}
Meta Description
{{ $product->description ?? 'N/A' }}
{{-- ACTIONS --}}
{{-- END ROW --}}