@extends('layouts.frontend') @section('title', $product->meta_title ?: $product->name) @section('meta_description', $product->meta_description ?: $product->short_description) @section('content')
@if($product->featured_image) {{ $product->name }} @else
@endif
@if($product->gallery && count($product->gallery_urls) > 0)
@if($product->featured_image) {{ $product->name }} @endif @foreach($product->gallery_urls as $image) {{ $product->name }} @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

@endif @if($product->tags && count($product->tags) > 0)

Tags:

@foreach($product->tags as $tag) {{ $tag }} @endforeach
@endif
{!! nl2br(e($product->description)) !!}
@if($product->specifications && count($product->specifications) > 0) @endif @if($product->dimensions || $product->weight) @endif
@if($relatedProducts->count() > 0)

Produk Terkait

Produk lain yang mungkin Anda sukai

@foreach($relatedProducts as $relatedProduct)
@if($relatedProduct->featured_image) {{ $relatedProduct->name }} @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