@extends('frontpage.layouts.main') @section('content')

{{ __('product.Product_Detail') }}

@foreach ($detail->images as $row)
@endforeach
@foreach ($detail->images as $row)
@endforeach
{{ $detail->category_name }} - {{ $detail->brand_name }}
{{ $detail->name }}
{!! $detail->description !!}
{{ $detail->variants[0]->description }}
{{ __('product.Price') }} @php $harga = $detail->variants[0]->price; if ($detail->variants[0]->discount_price > 0 ) { $harga = $detail->variants[0]->discount_price; } @endphp @if ($detail->variants[0]->discount_price > 0 ) Rp. {{ number_format($detail->variants[0]->price, 0, '.', ',') }} @endif Rp. {{ number_format($harga, 0, '.', ',') }}
{{ __('product.Stock') }} {{ number_format($detail->variants[0]->stock, 0, '.', ',') }}
Variations
@foreach ($detail->variants as $row) @if ($row->stock > 0) @endif @endforeach
{{ $row->name }}

{{ __('product.Category') }}

@foreach($categories as $category)
@endforeach

{{ __('product.Related_products') }}

{{ __('product.Related_products') }}

@foreach($related_products as $row) @if ($row->total_stock > 0)
Product @if ($row->total_stock > 0)
@else {{ __('product.empty') }} @endif {{-- 20% --}}
{{ $row->category_name }}
{{ $row->name }}
{!! $row->description !!}
{{-- Rp. 25.000 --}} Rp. {{ $row->total_variant > 1 && $row->min_price != $row->max_price? number_format($row->min_price, 0, '.', ',') . ' - ' . number_format($row->max_price, 0, '.', ','): number_format($row->price, 0, '.', ',') }}
@endif @endforeach
@endsection @push('scripts') @endpush @push("styles") @endpush