@extends('layouts.master') @section('title', $product->title . ' - ' . config('app.name')) @push('styles') @endpush @section('content') @php $mainImage = $product->thumbnail_url; $galleryImages = $product->images->map(fn($img) => str_starts_with($img->path, 'http') ? $img->path : asset('storage/' . $img->path)); if ($galleryImages->isEmpty()) $galleryImages->push($mainImage); $highlights = $product->highlights ?? [ '120+ Premium UI Screens', 'Fully Customizable', 'Organized Layers & Components', 'Free Fonts Used', 'Compatible with Figma' ]; @endphp
{{-- Breadcrumbs --}}
{{-- Left Side: Gallery & Description --}}
{{-- Left: Image Gallery --}}
{{-- Badge --}} @if($product->is_top_sale || $product->is_featured)
{{ $product->is_top_sale ? 'Best Seller' : 'Featured' }}
@endif {{-- Wishlist --}}
{{-- Thumbnails --}}
@foreach($galleryImages as $index => $img) @endforeach
{{-- Trust Badges --}}
Instant Download
Secure Payment
Lifetime Access
{{-- Tabs Content (Description, etc.) --}}
{!! $product->description !!}
Version {{ $product->version ?? '1.0.0' }}
Last Update {{ $product->updated_at->format('M d, Y') }}
Format {{ $product->extension ?? 'Figma' }}
@forelse($product->display_reviews as $review)
{{ substr($review->customer_name ?? 'U', 0, 1) }}
{{ $review->customer_name }}
@for($i=0;$i<5;$i++)@endfor

"{{ $review->comment }}"

@empty

No reviews yet.

@endforelse
{{-- Right Column: Product Info & Actions (Sticky) --}}
{{-- Marketing: Viewers --}} @if($viewers = $product->display_viewers)
{{ $viewers }} viewing
@endif
({{ ($product->display_reviews->count() ?: 5) + 120 }})

{{ $product->title }}

${{ number_format($product->effective_price, 2) }}
@if($product->price > $product->effective_price)
${{ number_format($product->price, 2) }}
@endif
{{-- Scarcity --}} @if($product->scarcity_enabled && $product->fake_stock_left > 0)
Limited Stock {{ $product->fake_stock_left }} left
@endif {{-- Actions --}} {{-- Features List --}}
@foreach($highlights as $h)
{{ is_array($h) ? ($h['text'] ?? '') : $h }}
@endforeach
{{-- Related Products --}}
{{-- Mobile Sticky Bar --}}
Price
${{ number_format($product->effective_price, 2) }}
@endsection