@foreach ($products as $row)
Product {{-- {{ __('product.empty') }} --}} @if ($row->total_stock > 0)
@else {{ __('product.empty') }} @endif
{{ $row->category_name }}
{{ $row->name }}
{!! $row->description !!}
@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
{{ $products->links('vendor.pagination.custom')}}
{{ __('product.add_alert') }}