@extends('layouts.app') @section('title', $product->title) @section('og_title', $product->title) @section('og_description', $product->short_description ?? Str::limit(strip_tags($product->description), 150)) @section('og_image', $product->cover_url) @section('content')
{{-- Image --}}
{{ $product->title }}
@if($product->discount_percent)
Hemat {{ $product->discount_percent }}%
@endif
{{-- Details --}}
@if($product->brand) {{ $product->brand }} @endif

{{ $product->title }}

@if($product->category) {{ $product->category->name }} @endif {{-- Price --}}
@if($product->discount_price)
{{ $product->formatted_discount_price }}
{{ $product->formatted_price }}
@else
{{ $product->formatted_price }}
@endif
@if($product->short_description)

{{ $product->short_description }}

@endif {{-- Specs --}} @if(is_array($product->specifications) && count($product->specifications) > 0)
@if($product->description) @endif
@foreach($product->specifications as $key => $value)
{{ $key }} {{ $value }}
@endforeach
@if($product->description)
{!! $product->description !!}
@endif
@endif Pesan via WhatsApp
{{-- Full Description (if no tabs used) --}} @if($product->description && !(is_array($product->specifications) && count($product->specifications) > 0))

Deskripsi Produk

{!! $product->description !!}
@endif
@endsection