@php $fontFamily = "'Inter', 'Helvetica', 'Arial', sans-serif"; @endphp

{{ $store['name'] }}

@if ($store['address'])
{{ $store['address'] }}
@endif
{{ $store['phone'] ? 'Telp: ' . $store['phone'] . ' • ' : '' }}{{ $store['email'] }}
INVOICE
{{ $transaction->invoice }}
{{ \Carbon\Carbon::parse($transaction->created_at)->format('d M Y H:i') }}
Pelanggan
{{ $transaction->customer->name ?? 'Umum' }}
@if ($transaction->customer?->no_telp)
{{ $transaction->customer->no_telp }}
@endif @if ($transaction->customer)
{{ $transaction->customer->village_name ?? '' }} @if ($transaction->customer->regency_name) , {{ $transaction->customer->regency_name }} @endif @if ($transaction->customer->province_name) , {{ $transaction->customer->province_name }} @endif
@endif
Kasir
{{ $transaction->cashier->name ?? '-' }}
Status: {{ $transaction->payment_status }}
Metode: {{ $transaction->payment_method }}
@if ($transaction->receivable && $transaction->receivable->due_date)
Jatuh tempo: {{ $transaction->receivable->due_date }}
@endif
@foreach ($transaction->details as $index => $detail) @endforeach
Nama Produk Qty Harga Subtotal
{{ $detail->product->title ?? 'Produk' }} {{ $detail->qty }} {{ number_format($detail->price / max(1, $detail->qty), 0, ',', '.') }} {{ number_format($detail->price, 0, ',', '.') }}
@php $discount = $transaction->discount ?? 0; $shipping = $transaction->shipping_cost ?? 0; $grandTotal = $transaction->grand_total ?? 0; $subtotal = $grandTotal + $discount - $shipping; @endphp
Diskon - {{ number_format($discount, 0, ',', '.') }}
Ongkir + {{ number_format($shipping, 0, ',', '.') }}
Total {{ number_format($grandTotal, 0, ',', '.') }}