@if(env('APP_DEMO', false))
Demo Mode
Nota gabungan ini adalah simulasi / percobaan
termasuk transaksi palsu dan bukan bukti pembayaran sah
@endif
Tgl Cetak:
{{ now()->format('d/m/Y H:i') }}
Jumlah Order:
{{ $orders->count() }}
Pelanggan:
{{ $orders->first()->customer_name ?? '-' }}
Metode:
{{ $paymentMethodLabel }}
@foreach($orders as $order)
@php
$totalSemua += (float) $order->total_price;
@endphp
@foreach($order->items as $item)
{{ $item->product_name }} - {{ $item->file_name }}
{{ $item->size_description ?: '-' }} |
{{ ($item->sisi ?? 1) }} sisi |
{{ $item->material_name ?? '-' }}
{{ $item->qty }} pcs x Rp {{ number_format($item->calculated_price, 0, ',', '.') }}
Rp {{ number_format($item->subtotal, 0, ',', '.') }}
@endforeach
@endforeach
TOTAL ORDER
Rp {{ number_format($totalSemua, 0, ',', '.') }}
@if($isSplitPayment)
Detail Split Payment
@foreach($splitSummary as $split)
{{ $split['method_label'] ?? '-' }}
@if(!empty($split['account_label']))
{{ $split['account_label'] }}
@endif
Rp {{ number_format((float) ($split['amount'] ?? 0), 0, ',', '.') }}
@endforeach
Total Split
Rp {{ number_format($splitTotal, 0, ',', '.') }}
@endif
Metode Bayar
{{ $paymentMethodLabel }}
Jumlah Dibayar
Rp {{ number_format($paidAmount > 0 ? $paidAmount : ($isSplitPayment ? $splitTotal : $totalSemua), 0, ',', '.') }}
@if(!$isSplitPayment && $paymentMethod === 'cash')
Uang Diterima
Rp {{ number_format($cashReceived > 0 ? $cashReceived : ($paidAmount > 0 ? $paidAmount : $totalSemua), 0, ',', '.') }}
Kembalian
Rp {{ number_format($changeAmount, 0, ',', '.') }}
@elseif($changeAmount > 0)
Kembalian
Rp {{ number_format($changeAmount, 0, ',', '.') }}
@endif
@if(env('APP_DEMO', false))
*** DEMO / TIDAK SAH ***
Demo mode aktif ยท nota gabungan ini tidak valid untuk pembayaran, penagihan,
audit, pengambilan barang, klaim transaksi, atau bukti transaksi resmi
@else
@if($orders->every(fn($o) => $o->isPaid()))
*** LUNAS ***
@else
*** TAGIHAN ***
@endif
@endif