@extends('layouts.frontend') @section('title', $product->meta_title ?: $product->name) @section('meta_description', $product->meta_description ?: $product->short_description) @section('content') Beranda Produk {{ $product->category->name }} {{ $product->name }} @if($product->featured_image) @else @endif @if($product->gallery && count($product->gallery_urls) > 0) @if($product->featured_image) @endif @foreach($product->gallery_urls as $image) @endforeach @endif {{ $product->category->name }} {{ $product->name }} @if($product->brand) Brand: {{ $product->brand }} @endif SKU: {{ $product->sku }} {{ $product->views }} views @if($product->has_discount) {{ $product->formatted_final_price }} {{ $product->formatted_price }} -{{ number_format($product->discount_percentage, 0) }}% Hemat {{ $product->formatted_discount_amount }} @else {{ $product->formatted_final_price }} @endif @if($product->is_digital) Produk Digital @else Stok: @if($product->stock > 0) {{ $product->stock }} tersedia @if($product->stock <= 10) (Tinggal sedikit!) @endif @else Habis @endif @endif @if($product->short_description) {{ $product->short_description }} @endif @if(setting('contact_whatsapp')) Tanya via WhatsApp @endif @if($product->marketplace_links) Beli di Marketplace @foreach($product->marketplace_links as $marketplace => $url) @if($marketplace == 'shopee') Beli di Shopee @elseif($marketplace == 'tokopedia') Beli di Tokopedia @elseif($marketplace == 'lazada') Beli di Lazada @elseif($marketplace == 'bukalapak') Beli di Bukalapak @elseif($marketplace == 'blibli') Beli di Blibli @else Beli di {{ ucfirst($marketplace) }} @endif @endforeach @endif @if($product->tags && count($product->tags) > 0) Tags: @foreach($product->tags as $tag) {{ $tag }} @endforeach @endif Deskripsi @if($product->specifications && count($product->specifications) > 0) Spesifikasi @endif @if($product->dimensions || $product->weight) Info Pengiriman @endif {!! nl2br(e($product->description)) !!} @if($product->specifications && count($product->specifications) > 0) @foreach($product->specifications as $spec) {{ $spec['key'] }} {{ $spec['value'] }} @endforeach @endif @if($product->dimensions || $product->weight) @if($product->weight) Berat {{ $product->weight }} gram @endif @if($product->dimensions) Dimensi {{ $product->dimensions['length'] ?? '-' }} x {{ $product->dimensions['width'] ?? '-' }} x {{ $product->dimensions['height'] ?? '-' }} cm @endif @if($product->min_order > 1) Minimal Order {{ $product->min_order }} pcs @endif @endif @if($relatedProducts->count() > 0) Produk Terkait Produk lain yang mungkin Anda sukai @foreach($relatedProducts as $relatedProduct) @if($relatedProduct->featured_image) @else @endif @if($relatedProduct->has_discount) -{{ number_format($relatedProduct->discount_percentage, 0) }}% @endif {{ $relatedProduct->name }} @if($relatedProduct->has_discount) {{ $relatedProduct->formatted_final_price }} {{ $relatedProduct->formatted_price }} @else {{ $relatedProduct->formatted_final_price }} @endif Lihat Detail @endforeach @endif @endsection @push('scripts') @endpush @push('styles') @endpush
Brand: {{ $product->brand }}
Hemat {{ $product->formatted_discount_amount }}
{{ $product->short_description }}
Produk lain yang mungkin Anda sukai