{{ __('home.new_product') }}

{{ __('home.new_product') }}

@foreach ($new_products as $row)
Product {{-- 20% --}} @if ($row->total_stock > 0)
@else {{ __('product.empty') }} @endif

{{ $row->category }}

{{ $row->name }}
@php $minimal = $row->min_price; $maximal = $row->max_price; $harga = $row->price; if ($row->min_discount_price > 0) $minimal = $row->min_discount_price; if ($row->max_discount_price > 0) $maximal = $row->max_discount_price; if ($row->discount_price > 0) $harga = $row->discount_price; @endphp @if ($row->min_discount_price > 0 || $row->max_discount_price > 0) 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 Rp. {{ $row->total_variant > 1 && $minimal != $maximal? number_format($minimal, 0, '.', ',') . ' - ' . number_format($maximal, 0, '.', ','): number_format($harga, 0, '.', ',') }}
@endforeach

{{ __('home.best_seller') }}

{{ __('home.best_seller') }}

@foreach ($best_sellers as $row)
Product {{-- 20% --}} @if ($row->total_stock > 0)
@else {{ __('product.empty') }} @endif

{{ $row->category }}

{{ $row->name }}
@if ($row->min_discount_price > 0 || $row->max_discount_price > 0) Rp. {{ $row->total_stock > 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 {{ $row->min_price == $row->max_price ? number_format($row->min_price) : number_format($row->min_price).' - '.number_format($row->max_price) }}
@endforeach
{{ __('home.add_to_chart') }}