@extends('layouts.app') @section('title', $product->name . ' | Detail Produk Kami') @section('extra_css') @endsection @section('content')
Product
@if ($product->main_image) @endif @foreach ($gallery as $img) @endforeach

{{ $product->name }}

@if ($product->price_to > $product->price) Rp {{ number_format($product->price, 0, ',', '.') }} - Rp {{ number_format($product->price_to, 0, ',', '.') }} @else Rp {{ number_format($product->price, 0, ',', '.') }} @endif
Deskripsi Produk

{!! nl2br(e($product->description)) !!}

Kategori {{ $product->category_name }}
Material {{ $product->material ? $product->material : 'Baja Monel Premium' }}
Ketersediaan {{ $product->availability ? $product->availability : 'Ready Stock' }}
@csrf
Pilihan Variasi (Ukuran / Warna / Tipe)
@php $variationsArray = $product->variations_array; if (empty($variationsArray)) { $variationsArray = [ ['name' => 'Ukuran 16', 'price' => $product->price], ['name' => 'Ukuran 17', 'price' => $product->price], ['name' => 'Ukuran 18', 'price' => $product->price], ]; } // Determine if this specific product is customizable based on its Title (Judul Produk) $productNameLower = strtolower($product->name); $isCustomizable = str_contains($productNameLower, 'ukir') || str_contains($productNameLower, 'grafir') || str_contains($productNameLower, 'custom') || str_contains($productNameLower, 'kustom'); @endphp @foreach($variationsArray as $key => $var) @php $varPrice = isset($var['price']) && $var['price'] > 0 ? $var['price'] : $product->price; @endphp @endforeach
@if($isCustomizable)
Live Engraving Studio
Nama Anda
Gaya Grafir (Font Style)
Tulisan Grafir (Maks. 12 Karakter)
0/12

Grafir dilakukan menggunakan teknologi laser tingkat tinggi untuk hasil permanen yang rapi dan berkilau.

@endif
Jumlah Pembelian
@auth @else Masuk untuk Membeli @endauth
@auth @else Masuk untuk Membeli @endauth
{{-- ═══════════════════════════════════════════════════════════════ SECTION: Produk Serupa (Content-Based Filtering Recommendation) ═══════════════════════════════════════════════════════════════ --}} @if($recommendations->isNotEmpty())

Produk Serupa untuk Anda

Lihat Semua
@foreach($recommendations as $rec)
{{ $rec->name }} {{ $rec->category->name ?? 'Produk' }}
Lihat Detail

{{ $rec->name }}

Rp {{ number_format($rec->price, 0, ',', '.') }} @if($rec->price_to > $rec->price) – Rp {{ number_format($rec->price_to, 0, ',', '.') }} @endif

@if($rec->material)

{{ $rec->material }}

@endif
@endforeach
@endif @endsection @section('extra_js') @endsection