Product Details: {{ $product->name }}
  • General
  • Specifications
  • Variants
  • Promotion & Freebies
  • Media & Gallery
{{-- GENRAL TAB --}}
Name:{{ $product->name }}
Category:{{ optional($product->category)->name ?? 'N/A' }} / {{ optional($product->subcategory)->name ?? 'None' }}
Brand:{{ optional($product->brand)->name ?? 'N/A' }}
Status: {{ $product->is_active ? 'Active' : 'Inactive' }} @if($product->is_new) New @endif @if($product->is_featured) Featured @endif
Keywords: @foreach($product->tags ?? [] as $tag) {{ $tag }} @endforeach
Description

{{ $product->description ?: 'No description provided.' }}

Core Pricing & Stock
Original Price ${{ number_format($product->price, 2) }}
@if(!is_null($product->final_price))
Current Offer Price ${{ number_format($product->final_price, 2) }} {{ round($product->final_discount_percentage) }}% Off
@endif
Stock {{ $product->available_qty }}
Threshold {{ $product->stock_threshold_qty }}
{{-- SPECS TAB --}}
@if($product->specifications->isNotEmpty())
@foreach($product->specifications as $spec) @endforeach
Section / Attribute Specification Value
{{ optional($spec->header)->name }} {{ optional($spec->subheader)->name }} {{ $spec->specification }}
@else

No specifications defined for this product.

@endif
{{-- VARIANTS TAB --}}
@if($product->variants->isNotEmpty())
@foreach($product->variants as $variant) @php $hasVOffer = !is_null($variant->final_price); @endphp @endforeach
Variant Name Original Price Offer Price Stock Status
{{ $variant->name }} ${{ number_format($variant->price, 2) }} ${{ number_format($variant->final_price ?? $variant->price, 2) }} @if($hasVOffer) ({{ round($variant->final_discount_percentage) }}% off) @endif {{ $variant->stock ?? 0 }} in stock
@else

This product does not have any variants.

@endif
{{-- FREE ITEMS & FAQS --}}
Free Gift Items
@if($product->freeItems->isNotEmpty())
    @foreach($product->freeItems as $freeItem) @if($freeItem->free_product_id && $freeItem->freeProduct)
  • {{ $freeItem->freeProduct->name }} Product
  • @endif @if($freeItem->custom_free_item_id && $freeItem->customFreeItem)
  • {{ $freeItem->customFreeItem->name }} Gift
  • @endif @endforeach
@else

No promotional gifts attached.

@endif
Frequently Asked Questions
@if($product->faqs->isNotEmpty())
@foreach($product->faqs as $faq)

{{ $faq->answer }}
@endforeach
@else

No FAQs defined.

@endif
{{-- MEDIA TAB --}}
Main Thumbnail
@if($product->image) @else
No Image
@endif
Gallery Images
@forelse($product->productImages as $pi)
Gallery
@empty

No gallery images found.

@endforelse
Open in Editor