{{-- views/themes/default/product.blade.php --}} @extends('themes.default.layout') @section('title', $product->seo_title . ' - ' . $website->name) @section('meta') @if($product->meta_keywords) @endif @endsection @section('content')

{{ $product->name }}

@if($product->sku)

SKU: {{ $product->sku }}

@endif
@if($product->categories->count() > 0)
@foreach($product->categories as $category) {{ $category->name }} @endforeach
@endif
@if($product->sale_price)
{{ $website->getCurrencySymbol() }} {{ number_format($product->sale_price, 2) }} {{ $website->getCurrencySymbol() }} {{ number_format($product->price, 2) }} Save {{ number_format((($product->price - $product->sale_price) / $product->price) * 100, 0) }}%
@else @if($product->has_variations) {{ $website->getCurrencySymbol() }} {{ number_format($product->min_price, 2) }} - {{ $website->getCurrencySymbol() }} {{ number_format($product->max_price, 2) }} @else {{ $website->getCurrencySymbol() }} {{ number_format($product->price, 2) }} @endif @endif
@if($product->in_stock) In Stock ({{ $product->total_stock }} units available) @else Out of Stock @endif
@if($product->has_variations && $product->variations->count() > 0)
Available Options
@foreach($product->variations as $variation)
{{ $variation->variation_display }}
@if($variation->stock_quantity > 0) {{ $variation->stock_quantity }} in stock @else Out of stock @endif
{{ $website->getCurrencySymbol() }} {{ number_format($variation->final_price, 2) }}
@if($variation->price_adjustment != 0) ({{ $variation->price_adjustment >= 0 ? '+' : '' }}{{ $website->getCurrencySymbol() }} {{ number_format($variation->price_adjustment, 2) }}) @endif
@endforeach
@endif @if($product->description)
Description

{{ $product->description }}

@endif @if($product->weight || $product->dimensions)
Product Details
    @if($product->weight)
  • Weight: {{ $product->weight }} kg
  • @endif @if($product->dimensions)
  • Dimensions: {{ $product->dimensions['length'] ?? '' }}cm × {{ $product->dimensions['width'] ?? '' }}cm × {{ $product->dimensions['height'] ?? '' }}cm
  • @endif
@endif @if($product->in_stock)
@csrf @if($product->has_variations && $product->variations->count() > 0)
@endif
@else
This product is currently out of stock.
@endif

Free Shipping

Secure Payment

Easy Returns

Product Description

{{ $product->description ?: 'No detailed description available for this product.' }}

Product Specifications

@if($product->sku) @endif @if($product->weight) @endif
Brand:{{ $website->name }}
Product Name:{{ $product->name }}
SKU:{{ $product->sku }}
Weight:{{ $product->weight }} kg
@if($product->dimensions) @endif @if($product->categories->count() > 0) @endif @if($product->has_variations) @endif
Dimensions: {{ $product->dimensions['length'] ?? '' }}cm × {{ $product->dimensions['width'] ?? '' }}cm × {{ $product->dimensions['height'] ?? '' }}cm
Categories:{{ $product->categories->pluck('name')->implode(', ') }}
Status:{{ $product->in_stock ? 'In Stock' : 'Out of Stock' }}
Variations:{{ $product->variations->count() }} options available
@if($product->has_variations)

Product Variations

@foreach($product->variations as $variation) @endforeach
Variation SKU Price Stock Status
{{ $variation->variation_display }} {{ $variation->sku }} {{ $website->getCurrencySymbol() }} {{ number_format($variation->final_price, 2) }} {{ $variation->stock_quantity }} units @if($variation->stock_quantity > 0) Available @else Out of Stock @endif
@endif
@if(isset($relatedProducts) && $relatedProducts->count() > 0)

Related Products

@foreach($relatedProducts as $relatedProduct)
@if($relatedProduct->main_image) {{ $relatedProduct->name }} @else @endif
{{ $relatedProduct->name }}

{{ Str::limit($relatedProduct->description, 80) }}

@if($relatedProduct->sale_price) {{ $website->getCurrencySymbol() }} {{ number_format($relatedProduct->sale_price, 2) }} @else {{ $website->getCurrencySymbol() }} {{ number_format($relatedProduct->price, 2) }} @endif
View
@endforeach
@endif @endsection