@php $formatPrice = fn($v) => 'Rp ' . number_format($v ?? 0, 0, ',', '.'); $formatDate = fn($v) => \Carbon\Carbon::parse($v)->format('d M Y'); @endphp
@if ($store['logo_data'] ?? false) @else
{{ substr($store['name'], 0, 2) }}
@endif
{{ $store['name'] }}
{{ Str::limit($store['address'], 60) }}
{{ $store['phone'] }}@if ($store['phone'] && $store['email']) | @endif{{ $store['email'] }}
INVOICE
{{ $transaction->invoice }}
{{ $formatDate($transaction->created_at) }}
Penerima
{{ $transaction->customer->name ?? 'Umum' }}
{{ $transaction->customer->no_telp ?? '-' }}
{{ Str::limit($transaction->customer->address ?? 'No Address', 80) }}
{{ $transaction->customer->village_name ?? '-' }} @if ($transaction->customer->district_name) , {{ $transaction->customer->district_name }} @endif @if ($transaction->customer->regency_name) , {{ $transaction->customer->regency_name }} @endif @if ($transaction->customer->province_name) , {{ $transaction->customer->province_name }} @endif
Ringkasan Pesanan
Item {{ $transaction->details->count() }} unit
Total {{ $formatPrice($transaction->grand_total) }}
Daftar Produk