| # | Produk | Qty | Harga Satuan | @if($sale->items->sum('discount') > 0)Diskon | @endifSubtotal |
|---|---|---|---|---|---|
| {{ $i + 1 }} |
{{ $item->product?->name }}
@if($item->product?->code) {{ $item->product->code }} @endif
|
{{ $item->quantity }}{{ $item->product?->unit ? ' '.$item->product->unit : '' }} | Rp {{ number_format($item->unit_price, 0, ',', '.') }} | @if($sale->items->sum('discount') > 0)@if($item->discount > 0)- Rp {{ number_format($item->discount, 0, ',', '.') }}@else—@endif | @endifRp {{ number_format($item->subtotal, 0, ',', '.') }} |