@endif
| No | Item | Expired | Qty | Harga | Satuan | Total |
|---|---|---|---|---|---|---|
| {{ $index + 1 }} | @if ($order->type === 'products') @php $product = $detail->items->product ?? null; if ($product && $product->has_variant) { $variants = $detail->items->product_variant_values ?? []; $variantList = collect($variants) ->map(function ($v) { return $v->variant_value->variant_option->name . ':' . $v->variant_value->name; }) ->join(', '); echo $product->name . " [{$variantList}]"; } else { echo $product->name ?? '-'; } @endphp @else {{ $detail->items->name ?? '-' }} @endif | {{ $detail->expired_at ?? '-' }} | {{ $detail->quantity }} | Rp {{ number_format($detail->price, 0) }} | {{ $detail->items->unit->name ?? '-' }} | Rp {{ number_format($detail->total_price, 0) }} |
| Subtotal | Rp {{ number_format($order->subtotal, 0) }} | |||||
| Diskon | @if ($order->discount_type === 'rupiah') Rp @endif {{ $order->discount }} @if ($order->discount_type === 'percentage') % @endif | |||||
| Grand Total | Rp {{ number_format($order->grand_total, 0) }} | |||||
| No | Tanggal Pembayaran | Metode Pembayaran | Akun Bank | Jumlah Bayar |
|---|---|---|---|---|
| {{ $idx + 1 }} | {{ \Carbon\Carbon::parse($payment->paid_at)->format('d/m/Y') ?? '-' }} | {{ $payment->payment_method ?? '-' }} | @if ($payment->bank_account) {{ $payment->bank_account->bank_name }} - {{ $payment->bank_account->account_name }} [{{ $payment->bank_account->account_number }}] @else - @endif | Rp {{ number_format($payment->amount, 0) }} |
| Belum ada pembayaran. | ||||
| Total Bayar | Rp {{ number_format($order->order_payments->sum('amount'), 0) }} | |||
| Sisa Bayar | Rp {{ number_format($order->grand_total - $order->order_payments->sum('amount'), 0) }} | |||