{{ $storeName }}

Invoice: {{ $order->invoice_number }}

Tanggal: {{ $order->created_at->translatedFormat('d F Y, H:i') }} WIB

{{ strtoupper($order->status) }} {{ strtoupper($order->payment_status) }}
Pelanggan
@if($order->channel === 'online' && $order->user) {{ $order->user->name }} @elseif($order->channel === 'offline') {{ $order->metadata['customer_name'] ?? 'Pelanggan Umum' }} @else - @endif
Kanal Penjualan
{{ $order->channel === 'online' ? 'Online Store' : 'POS Kasir' }}
@if($order->channel === 'offline' && $order->cashier)
Kasir
{{ $order->cashier->name }}
@endif @if($order->payment_method)
Metode Pembayaran
{{ strtoupper($order->payment_method) }}
@endif
@foreach ($order->items as $item) @endforeach
Produk Qty Harga Subtotal
{{ $item->product_name }} {{ $item->quantity }} Rp{{ number_format($item->unit_price, 0, ',', '.') }} Rp{{ number_format($item->subtotal, 0, ',', '.') }}
Subtotal Rp{{ number_format($order->subtotal_amount, 0, ',', '.') }}
@if($order->discount_amount > 0)
Diskon - Rp{{ number_format($order->discount_amount, 0, ',', '.') }}
@endif @if($order->shipping_cost > 0)
Ongkos Kirim Rp{{ number_format($order->shipping_cost, 0, ',', '.') }}
@endif
TOTAL Rp{{ number_format($order->grand_total, 0, ',', '.') }}
@if($order->shipping_address)
Alamat Pengiriman
{{ $order->shipping_address['recipient_name'] ?? '' }}
{{ $order->shipping_address['phone'] ?? '' }}
{{ $order->shipping_address['address'] ?? '' }}
{{ $order->shipping_address['city'] ?? '' }}, {{ $order->shipping_address['postal_code'] ?? '' }}
@endif
{{-- Real-time Clock Script --}}