{{-- LEFT: IMAGES SECTION --}}
{{-- QUICK SPECIFICATIONS GRID --}}
@if(!empty($product->attributes) && count($product->attributes))
@endif
{{-- ACTIONS --}}
{{-- END ROW --}}
{{-- LIST IMAGE (PRIMARY) --}}
{{-- RIGHT: PRODUCT DETAILS --}}
Thumbnail Image
@if($product->list_image || file_exists(public_path('storage/'.$product->list_image)))
@else
No List Image
@endif
{{-- PRODUCT GALLERY --}}
No List Image
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
{{ $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)
@endforeach
{{-- APPLICATIONS --}}
{{-- DESCRIPTIONS --}}
{{ $spec['label'] }}
{{ $spec['val'] ?? 'N/A' }}
APPLICATION
@forelse($product->application_names as $app)
{{ $app }}
@empty
N/A
@endforelse
{!! $product->long_description ?? 'No detailed description provided.' !!}
{!! $product->short_description ?? 'N/A' !!}
@foreach($product->attributes as $key => $value)
{{ str_replace('_',' ', $key) }} : {{ $value }}
@endforeach
{{-- META TITLE --}}
Meta Title
{{-- META DESCRIPTION --}}
{{ $product->title ?? 'N/A' }}
Meta Description
{{ $product->description ?? 'N/A' }}