@push('schema') @php $schema = [ '@context' => 'https://schema.org', '@type' => 'Product', 'name' => $product->title, 'description' => $product->short_description ?? '', 'sku' => $product->sku ?? (string)$product->id, 'image' => $product->thumbnail ? [asset('storage/'.$product->thumbnail)] : [], 'url' => url('/products/'.$product->slug), 'offers' => [ '@type' => 'Offer', 'priceCurrency' => 'USD', 'price' => (string)$product->effective_price, 'availability' => 'https://schema.org/InStock', 'seller' => [ '@type' => 'Organization', 'name' => $product->vendor?->name ?? config('app.name') ] ] ]; if ($product->rating_count > 0) { $schema['aggregateRating'] = [ '@type' => 'AggregateRating', 'ratingValue' => (string)$product->rating_average, 'reviewCount' => (string)$product->rating_count, 'bestRating' => '5', 'worstRating' => '1' ]; } @endphp @endpush
{{-- Navigation / Back Bar --}}
{{-- LEFT COLUMN: Main Content --}}
{{-- Compact Category Breadcrumbs (Amazon/Etsy Style) --}} {{-- Product Gallery --}} @php $mainImage = $product->thumbnail; if ($mainImage && !\Illuminate\Support\Str::startsWith($mainImage, ['http://', 'https://'])) { $mainImage = asset('storage/' . $mainImage); } else { $mainImage = $mainImage ?: 'https://placehold.co/1200x800/111118/FFFFFF/png?text=Node+Preview'; } $galleryImages = $product->images->map(function($img) { $path = $img->path; return \Illuminate\Support\Str::startsWith($path, ['http://', 'https://']) ? $path : asset('storage/' . $path); }); if ($galleryImages->isEmpty() && $product->thumbnail) { $galleryImages->push($mainImage); } @endphp
@if($product->thumbnail || $product->images->isNotEmpty()) @else
@endif {{-- Preview Button --}} @if($product->demo_url) Live Demo @endif
{{-- Thumbnails --}} @if($galleryImages->count() > 1)
@foreach ($galleryImages as $index => $imgUrl) @endforeach
@endif
{{-- Tabs Navigation & Contents --}}
{!! $product->description !!}
@forelse ($product->highlights ?? [] as $highlight)
{{ is_array($highlight) ? ($highlight['text'] ?? '') : $highlight }}
@empty

No specific features listed.

@endforelse
Version {{ $product->version ?? '1.0.0' }} {{ $product->updated_at->format('M d, Y') }}

Initial premium release on the marketplace hub. Optimized for high-end performance and stability.

{{-- Reviews Section --}}

Customer Feedback

{{ number_format($product->rating_average ?? 5.0, 1) }} / 5.0
@forelse ($reviews as $review)
{{ strtoupper(substr($review->customer_name ?? 'C', 0, 1)) }}
{{ $review->customer_name ?? 'Anonymous' }}
{{ $review->created_at->format('M d, Y') }}
@for($i = 1; $i <= 5; $i++) @endfor

"{{ $review->comment }}"

@empty

Listening for customer reviews...

@endforelse
{{-- RIGHT COLUMN: Purchase Sidebar --}}
{{-- Purchase Card --}}
{{-- Decorative Background Glow --}}
{{-- Desktop Header --}}
Marketplace License @if($product->on_sale)
${{ number_format($product->effective_price, 2) }} ${{ number_format($product->price, 2) }}
@else ${{ number_format($product->price, 2) }} @endif
@if($product->on_sale)
Save {{ round((($product->price - $product->effective_price) / $product->price) * 100) }}%
@endif
@csrf
{{-- Product Details List --}}

Registry Information

  • Published {{ $product->created_at->format('M Y') }}
  • Build Version {{ $product->version ?? '1.2.0' }}
  • File Status Verified Digital
{{-- Social Actions Card --}}
Trusted
Marketplace
Node
{{-- Mobile Sticky Buy Bar --}}
{{ Str::limit($product->title, 20) }}
${{ number_format($product->effective_price, 2) }} @if($product->on_sale) ${{ number_format($product->price, 2) }} @endif
@csrf