@if ($product->thumbnail) {{ $product->name }} @else @endif
{{-- PRODUCT HEADER --}}
{{-- Product Name --}}

{!! svg_icon('package', '#6c757d', '20') !!} {{ ucwords($product->name) }}

{{-- Price --}}
{!! svg_icon('receipt-2', '#198754', '18') !!} {{ $product->formatted_price }}
{{-- Short Description --}}

{!! svg_icon('message-star', '#6c757d', '16') !!} {!! Str::limit(strip_tags($product->description), 100, '...') ?? 'No short description available.' !!} @if (strlen(strip_tags($product->description)) > 100) Read more @endif

{{-- SKU --}} @if ($product->sku)
SKU
{{ $product->sku }}
@endif {{-- Category --}} @if ($product->category)
Category
{{ $product->category->name }}
@endif {{-- Created --}} @if ($product->created_at)
Created
{{ date('d M Y', strtotime($product->created_at)) }}
@endif {{-- Updated --}} @if ($product->updated_at)
Last Updated
{{ date('d M Y', strtotime($product->updated_at)) }}
@endif
@include('store.product._variant-detail-popup')
{{-- OTHER INFORMATION --}}
{!! svg_icon('bookmarks', '#000', '20') !!} Other Information
{{-- Dynamic Attributes (2 per row) --}} @foreach ($product->productAttributes->chunk(2) as $chunk) @foreach ($chunk as $attribute) @endforeach {{-- If odd attribute count --}} @if ($chunk->count() === 1) @endif @endforeach
{{ ucfirst(str_replace('_', ' ', $attribute->key)) }} {{ $attribute->value }}
{!! $product->description ?? 'N/A' !!}