@if($qrSvg)
{!! $qrSvg !!}
@else
QR tidak tersedia
{{ $invoiceNumber }}
@endif
{{ $invoiceNumber }}
{{ $usePpn ? 'INVOICE + PPN ' . rtrim(rtrim(number_format($ppnRate, 2, ',', '.'), '0'), ',') . '%' : 'TANPA PPN' }}
@if(env('APP_DEMO', false))
Demo Mode
Nota ini adalah simulasi / percobaan
termasuk transaksi palsu dan bukan bukti pembayaran sah
@endif
Tgl:
{{ optional($order->paid_at)->format('d/m/Y H:i') ?: now()->format('d/m/Y H:i') }}
Pelanggan:
{{ $order->customer_name }}
Kasir:
{{ $order->cashier->name ?? '-' }}
Designer:
{{ $order->designer->name ?? '-' }}
@foreach($order->items as $item)
@php
$qty = (float) ($item->qty ?? $item->quantity ?? 0);
$price = (float) ($item->calculated_price ?? $item->unit_price ?? $item->price ?? 0);
$subtotal = (float) ($item->subtotal ?? ($qty * $price));
if ($price <= 0 && $qty > 0 && $subtotal > 0) {
$price = $subtotal / $qty;
}
@endphp
{{ $item->product_name }} - {{ $item->file_name }}
{{ $item->size_description }} |
{{ ($item->sisi ?? 1) }} sisi |
{{ $item->material_name ?? '-' }}
{{ rtrim(rtrim(number_format($qty, 2, ',', '.'), '0'), ',') }} x Rp {{ number_format($price,0,',','.') }}
Rp {{ number_format($subtotal,0,',','.') }}
@endforeach
Subtotal
Rp {{ number_format($subtotalBeforePpn,0,',','.') }}
@if($usePpn)
PPN {{ rtrim(rtrim(number_format($ppnRate, 2, ',', '.'), '0'), ',') }}%
Rp {{ number_format($ppnAmount,0,',','.') }}
@endif
TOTAL
Rp {{ number_format($grandTotal,0,',','.') }}
Tunai
Rp {{ number_format($paidAmount,0,',','.') }}
Kembalian
Rp {{ number_format($changeAmount,0,',','.') }}
*** LUNAS ***
@if(env('APP_DEMO', false))
Demo mode aktif ยท transaksi ini tidak valid untuk penagihan, audit,
klaim pembayaran, pengambilan barang, atau bukti transaksi resmi
@endif