@extends('layouts.app') @section('title', $product->{locale_field('name')}) @push('styles') @endpush @section('content') {{-- ══ BREADCRUMB ══ --}} {{-- ══ HERO / INTRO ══ --}}
{{-- Left: Image Gallery --}} @php $galleryImages = $product->images->unique('image')->values(); $mainImage = $galleryImages->firstWhere('is_primary', true) ?? $galleryImages->first(); $mainImgUrl = $mainImage ? image_url($mainImage->image) : ($product->thumbnail ? image_url($product->thumbnail) : ''); $allImages = $galleryImages->isNotEmpty() ? $galleryImages : collect(); @endphp {{-- Right: Product Info --}}
@if($product->brand)
{{ $product->brand->name }}
@endif

{{ $product->{locale_field('name')} }}

@if($product->sku) SKU: {{ $product->sku }} @endif @if($product->category) {{ is_locale_en() ? 'Category' : 'Kategori' }}: {{ $product->category->{locale_field('name')} }} @endif

{{ $product->{locale_field('short_description')} }}

{{-- SPAREPART: Part Number + Stock --}} @if($product->is_sparepart)
@if($product->part_number) Part #: {{ $product->part_number }} @endif @if($product->stock_status) @php $badge = $product->stock_badge; @endphp @if($badge) {!! $badge !!} @endif @endif
@endif {{-- Price (admin only for sparepart) --}}
@if($product->is_sparepart)
{{ is_locale_en() ? 'Contact for Price' : 'Hubungi untuk Harga' }}
@else
{{ is_locale_en() ? 'Contact for Price' : 'Hubungi untuk Harga' }}
@endif
{{-- CTA Buttons --}}
{{ $product->is_sparepart ? (is_locale_en() ? 'Order via WhatsApp' : 'Pesan via WhatsApp') : (is_locale_en() ? 'Request Quote via WhatsApp' : 'Minta Penawaran via WhatsApp') }} {{ is_locale_en() ? 'Send Inquiry' : 'Kirim Pertanyaan' }}
{{-- SPAREPART: Compatibility --}} @if($product->is_sparepart && $product->compatibility)
{{ is_locale_en() ? 'Compatible With' : 'Cocok Untuk' }}
{{ $product->compatibility }}
@endif {{-- Key Metric Highlights (compressor only) --}} @if(!$product->is_sparepart && $product->highlights->count() > 0)
@foreach($product->highlights as $hl) @php $hlSpec = $product->specs->where('key_id', $hl->value_id)->first(); @endphp
{{ $hlSpec?->value ?? $hl->{locale_field('value')} }}
{{ $hl->{locale_field('value')} }}
@endforeach
@endif {{-- Advantage Badges --}}
@php $advantages = [ ['label' => is_locale_en() ? '24/7 Technical Support' : 'Dukungan Teknis 24/7', 'color' => 'blue'], ['label' => is_locale_en() ? '24-Hour Response Quote' : 'Respon 24 Jam', 'color' => 'accent'], ['label' => is_locale_en() ? 'CE & ISO Certified' : 'Tersertifikasi CE & ISO', 'color' => 'blue'], ['label' => is_locale_en() ? 'Global Logistics' : 'Logistik Global', 'color' => 'accent'], ['label' => is_locale_en() ? 'OEM & ODM Support' : 'Dukungan OEM & ODM', 'color' => 'blue'], ]; @endphp @foreach($advantages as $adv) {{ $adv['label'] }} @endforeach
{{-- ══ COMPRESSOR-ONLY SECTIONS ══ --}} @if(!$product->is_sparepart) {{-- ══ STATS BANNER ══ --}} @if($product->specs->count() > 0) @php $perfSpecs = $product->specs->where('spec_group', 'Performance'); $highlightSpecs = $perfSpecs->take(4); @endphp @if($highlightSpecs->count() > 0)
@foreach($highlightSpecs as $spec)
{{ $spec->value }} {{ $spec->unit }}
{{ $spec->{locale_field('key')} }}
@endforeach
@endif @endif {{-- ══ COMMERCIAL + TECHNICAL ══ --}}
{{ is_locale_en() ? 'Commercial + Technical' : 'Keunggulan' }}

{{ is_locale_en() ? 'Why Choose This Series' : 'Keunggulan Produk Ini' }}

    @php $whyItems = [ ['strong_id'=>'Desain optimal','strong_en'=>'Optimized design','desc_id'=>'screw airend yang dirancang khusus untuk efisiensi maksimal','desc_en'=>'screw airend designed specifically for maximum efficiency','color'=>'blue'], ['strong_id'=>'Suhu kerja lebih rendah','strong_en'=>'Lower discharge temperatures','desc_id'=>'untuk umur komponen yang lebih panjang','desc_en'=>'for extended component life and reliability','color'=>'accent'], ['strong_id'=>'Kapasitas udara besar','strong_en'=>'Massive FAD','desc_id'=>'(Free Air Delivery) lebih besar dari unit standar','desc_en'=>'Free Air Delivery compared to standard units','color'=>'blue'], ['strong_id'=>'Sistem kontrol canggih','strong_en'=>'Advanced control system','desc_id'=>'untuk stabilitas tekanan dan monitoring presisi','desc_en'=>'for precise pressure stability and monitoring','color'=>'accent'], ]; @endphp @foreach($whyItems as $wi)
  • {{ is_locale_en() ? $wi['strong_en'] : $wi['strong_id'] }} {{ is_locale_en() ? $wi['desc_en'] : $wi['desc_id'] }}
  • @endforeach
30% {{ is_locale_en() ? 'Energy Saving' : 'Hemat Energi' }}

{{ is_locale_en() ? 'What Users Face' : 'Masalah Umum' }} VS {{ is_locale_en() ? 'How We Solve' : 'Solusi Kami' }}

[✗] {{ is_locale_en() ? 'Common Issue' : 'Masalah Umum' }}

{{ is_locale_en() ? 'Huge energy loss from reducing 7-bar air to 2-3 bar. High maintenance costs of running standard units at low load.' : 'Kehilangan energi besar dari reduksi tekanan 7-bar ke 2-3 bar. Biaya perawatan tinggi pada unit standar beban rendah.' }}

[✓] {{ is_locale_en() ? 'Crius Solution' : 'Solusi Crius' }}

{{ is_locale_en() ? 'Eliminate throttling loss and cut power bills by 30% or more. Increased air delivery ensures stable production.' : 'Hilangkan kerugian throttling dan potong biaya listrik hingga 30%+. Kapasitas udara meningkat memastikan produksi stabil.' }}

{{-- ══ SPECS TABLE ══ --}} @if($product->specs->count() > 0)
{{ is_locale_en() ? 'Technical Data' : 'Data Teknis' }}

{{ is_locale_en() ? 'Technical' : 'Spesifikasi' }} {{ is_locale_en() ? 'Specifications' : 'Teknis' }}

{{ is_locale_en() ? 'Complete specifications for model comparison and project planning.' : 'Spesifikasi lengkap untuk perbandingan model dan perencanaan proyek.' }}

@foreach($product->grouped_specs as $group => $specs)

{{ $group }}

@foreach($specs as $spec) @endforeach
{{ is_locale_en() ? 'Parameter' : 'Parameter' }} {{ is_locale_en() ? 'Value' : 'Nilai' }} {{ is_locale_en() ? 'Unit' : 'Satuan' }}
{{ $spec->{locale_field('key')} }} {{ $spec->value }} {{ $spec->unit }}
@endforeach
@endif {{-- ══ DESCRIPTION ══ --}}
{{ is_locale_en() ? 'Description' : 'Deskripsi' }}

{{ is_locale_en() ? 'Product' : 'Deskripsi' }} {{ is_locale_en() ? 'Description' : 'Produk' }}

{!! $product->{locale_field('description')} !!}
{{-- ══ INDUSTRIES ══ --}}
{{ is_locale_en() ? 'Best-Fit Industries' : 'Industri yang Cocok' }}

{{ is_locale_en() ? 'Recommended' : 'Aplikasi' }} {{ is_locale_en() ? 'Applications' : 'Direkomendasikan' }}

@php $industries = [ ['icon'=>'M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 10.172V5L8 4z','title_id'=>'Pertambangan','title_en'=>'Mining & Quarry','desc_id'=>'Kompresor untuk tambang batu bara, nikel, dan emas dengan tekanan tinggi.','desc_en'=>'Compressors for coal, nickel, and gold mining with high pressure.'], ['icon'=>'M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 10.172V5L8 4z','title_id'=>'Manufaktur','title_en'=>'Manufacturing','desc_id'=>'Kompresor screw industrial untuk pabrik, otomotif, dan elektronik.','desc_en'=>'Industrial screw compressors for factories, automotive, and electronics.'], ['icon'=>'M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z','title_id'=>'Minyak & Gas','title_en'=>'Oil & Gas','desc_id'=>'Kompresor khusus eksplorasi migas untuk lingkungan ekstrem.','desc_en'=>'Specialized compressors for oil & gas exploration in extreme environments.'], ['icon'=>'M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z','title_id'=>'Konstruksi','title_en'=>'Construction','desc_id'=>'Kompresor portable untuk konstruksi, tunneling, dan infrastruktur.','desc_en'=>'Portable compressors for construction, tunneling, and infrastructure.'], ]; @endphp @foreach($industries as $ind)

{{ is_locale_en() ? $ind['title_en'] : $ind['title_id'] }}

{{ is_locale_en() ? $ind['desc_en'] : $ind['desc_id'] }}

@endforeach
{{-- ══ FAQ ══ --}} @if($faqs->count() > 0)
FAQ

{{ is_locale_en() ? 'Frequently Asked' : 'Pertanyaan' }} {{ is_locale_en() ? 'Questions' : 'Umum' }}

@foreach($faqs as $faq)
{{ $faq->{locale_field('answer')} }}
@endforeach
@endif @endif {{-- end compressor-only sections --}} {{-- ══ RELATED PRODUCTS ══ --}} @if($related->count() > 0)
{{ is_locale_en() ? 'Related' : 'Produk' }}

{{ is_locale_en() ? 'Related' : 'Produk' }} {{ is_locale_en() ? 'Products' : 'Terkait' }}

@endif {{-- ══ CTA ══ --}}
{{ is_locale_en() ? 'Get Started' : 'Mulai' }}

{{ is_locale_en() ? 'Ready to Optimize' : 'Siap Optimalkan' }} {{ is_locale_en() ? 'Your System?' : 'Sistem Anda?' }}

{{ is_locale_en() ? 'Contact our engineering team for a custom solution tailored to your needs.' : 'Hubungi tim engineering kami untuk solusi kustom sesuai kebutuhan Anda.' }}

@endsection