@extends('user::layouts.master') @section('breadcrumb_title', 'Product Details') @section('content')

{{ $product->title }}

Edit Back to Products
Product Details
@if ($product->getFirstMediaUrl('featured')) {{ $product->title }} @else

No featured image

@endif

{{ $product->title }}

{{ ucfirst($product->status) }} @if ($product->getMeta('is_featured') == 1) Featured @endif

URL Slug: {{ $product->slug }}
SKU: {{ $product->getMeta('sku') ?: 'N/A' }}
Price: {!! $product->getDisplayPrice() !!}
Stock: @if ($product->getMeta('manage_stock') == true) {{ $product->getMeta('stock_quantity') ?? 0 }} units @else {{ ucfirst($product->getMeta('stock_status', 'instock')) }} @endif
Created: {{ customDateTimeFormate($product->created_at) }}
@if ($product->published_at)
Published: {{ customDateTimeFormate($product->published_at) }}
@endif

Short Description

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

Full Description

{!! $product->content ?: 'No description provided.' !!}
@if ($product->getMedia('gallery')->count() > 0)
Product Gallery
@foreach ($product->getMedia('gallery') as $media) Gallery image @endforeach
@endif @if ($product->reviews?->count() > 0)
Reviews
@foreach ($product->reviews as $review)
{{ renderImageInfo($review->user->getFirstMediaUrl('avatar'), $review->user->name, $review->user->email) }}
@if ($review->ratting)
@for ($i = 1; $i <= 5; $i++) @if ($i <= $review->ratting) @else @endif @endfor
@endif

Review: {{ $review->content }}

@endforeach
@endif
Categories
@if ($product->categories?->count() > 0)
    @foreach ($product->categories as $category)
  • {{ $category->name }}
  • @endforeach
@else

No categories assigned

@endif
Tags
@if ($product->tags?->count() > 0)
    @foreach ($product->tags as $tag)
  • {{ $tag->name }}
  • @endforeach
@else

No tags assigned

@endif
Brand
@if ($product->brands?->count() > 0)
    @foreach ($product->brands as $brad)
  • {{ $brad->name }}
  • @endforeach
@else

No Brand assigned

@endif
Shipping Information
  • Weight: {{ $product->getMeta('weight') ? $product->getMeta('weight') . ' kg' : 'N/A' }}
  • Dimensions (L × W × H): @if (isset($product->getMeta('dimensions')['length']) || isset($product->getMeta('dimensions')['width']) || isset($product->getMeta('dimensions')['height'])) {{ $product->getMeta('dimensions')['length'] ?? 0 }} × {{ $product->getMeta('dimensions')['width'] ?? 0 }} × {{ $product->getMeta('dimensions')['height'] ?? 0 }} cm @else N/A @endif
SEO Information
Meta Title:

{{ $product->getSeoMeta('title') ?: $product->title }}

Meta Description:

{{ $product->getSeoMeta('description') ?: ($product->excerpt ?: 'No meta description provided.') }}

Meta Keywords:

{{ $product->getSeoMeta('keywords') ?: 'No keywords provided.' }}

@endsection