@php $storeName = \App\Models\Setting::where('key', 'store_name')->value('value') ?? config('app.name', 'DigiShop'); $waNumber = \App\Models\Setting::where('key', 'whatsapp_number')->value('value') ?? '6281234567890'; $defaultOgImage = \App\Models\Setting::where('key', 'seo_og_image')->value('value'); $defaultOgImage = $defaultOgImage ? url(Storage::url($defaultOgImage)) : asset('favicon.ico'); $seoTitle = $product->meta_title ?: $product->name . ' | ' . $storeName; $fallbackDesc = $product->description ?: Str::limit(strip_tags($product->content), 160); $seoDesc = $product->meta_description ?: $fallbackDesc; $seoKeywords = $product->meta_keywords ?: ($product->category->name ?? 'Kategori') . ', produk digital'; $seoImage = $product->thumbnail ? url(Storage::url($product->thumbnail)) : $defaultOgImage; @endphp @section('title', $seoTitle) @section('meta_description', $seoDesc) @section('meta_keywords', $seoKeywords) @section('og_type', 'product') @section('og_image', $seoImage) @section('schema') @endsection {{-- Breadcrumb --}} {{-- MAIN PRODUCT SECTION --}}
{{-- KOLOM KIRI: Deskripsi & Konten --}}
{{-- Judul & Meta --}}
@if($product->category) {{ $product->category->name }} @endif

{{ $product->name }}

{{-- Rating & Statistik --}}
@for($i=1; $i<=5; $i++) @endfor {{ number_format($product->rating, 1) }}
|
@if($product->sold_count > 0) {{ number_format($product->sold_count, 0, ',', '.') }} Terjual @else Baru @endif
|
Update: {{ $product->updated_at->format('d M Y') }}
{{-- Trust Bar --}}
Auto Akses Download Instan
Garansi Aman 100% Legal & Ori
Free Updates Update Selamanya
{{-- Deskripsi Lengkap --}} @if($product->content)

Deskripsi Lengkap

{!! clean($product->content) !!}
@endif
{{-- KOLOM KANAN: Sticky Product Card --}}
{{-- Thumbnail --}}
@if($product->thumbnail) {{ $product->name }} @else
@endif @if($product->category)
{{ $product->category->name }}
@endif
{{-- Info & CTA --}}

{{ $product->name }}

{{-- Deskripsi singkat 2 baris --}} @if($product->description)

{{ $product->description }}

@endif {{-- Rating Mini --}}
@for($i=1; $i<=5; $i++) @endfor {{ number_format($product->rating, 1) }}
| @if($product->sold_count > 0) {{ number_format($product->sold_count, 0, ',', '.') }} Terjual @else Baru @endif
{{-- Harga --}}

Harga

Rp{{ number_format($product->price, 0, ',', '.') }}

{{-- Tombol CTA --}}
{{-- Beli Sekarang (direct checkout) --}} Beli Sekarang {{-- Add to Cart (AJAX) --}}
{{-- Trust Badge --}}

Transaksi aman & diproteksi

{{-- Informasi Produk --}}

Informasi Produk

  • Versi {{ $product->version ?? '-' }}
  • Format File {{ $product->format ?? '-' }}
  • Framework {{ $product->framework ?? '-' }}
  • Update Terakhir {{ $product->updated_at->format('d M Y') }}
{{-- Garansi Produk --}}

Garansi Produk

@if(!empty($product->warranty_info))
{!! clean($product->warranty_info) !!}
@else
  • Akses Instan — download setelah konfirmasi.
  • Garansi Uang Kembali jika tidak sesuai deskripsi.
  • Dukungan Teknis siap membantu Anda.
  • Akses Selamanya + update gratis.
@endif
{{-- Section Testimoni --}} @if($product->testimonials->count() > 0)

Apa Kata Mereka?

Kami mengumpulkan berbagai ulasan nyata dari pelanggan yang telah membeli dan merasakan manfaat langsung produk ini.

@foreach($product->testimonials as $testimonial)
@if($testimonial->avatar)
{{ $testimonial->name }}
@else @php $words = explode(' ', $testimonial->name); $initials = ''; foreach ($words as $w) { $initials .= mb_substr($w, 0, 1); } $initials = strtoupper(mb_substr($initials, 0, 2)); $classes = [ ['bg' => 'bg-indigo-200', 'text' => 'text-indigo-700'], ['bg' => 'bg-red-200', 'text' => 'text-red-700'], ['bg' => 'bg-amber-200', 'text' => 'text-amber-700'], ]; $style = $classes[strlen($testimonial->name) % count($classes)]; @endphp
{{ $initials }}
@endif

{{ $testimonial->name }}

@for($i=1; $i<=5; $i++) @if($i <= $testimonial->rating) @else @endif @endfor

"{{ $testimonial->content }}"

@endforeach
@endif @if($relatedProducts->count() > 0)

Produk Lainnya

Mungkin Anda Suka

@foreach($relatedProducts as $related)
@if($related->thumbnail) {{ $related->name }} @else
@endif {{-- Kategori Tag --}}
{{ $related->category->name ?? 'Umum' }}
{{-- Judul Produk --}}

{{ $related->name }}

{{-- Deskripsi Singkat --}}

{{ $related->description ?? 'Dapatkan produk digital premium terbaik untuk kebutuhan bisnis Anda.' }}

{{-- Rate & Terjual --}}
{{ number_format($related->rating, 1) }}
@if($related->sold_count > 0) Terjual {{ number_format($related->sold_count, 0, ',', '.') }} @else Baru @endif
{{-- Harga & Actions --}}
Rp{{ number_format($related->price, 0, ',', '.') }}
Detail
@endforeach
@endif