{{ $client->nama_client }}

{{ $client->nama_perusahaan }} — {{ $client->kota }}, {{ $client->provinsi }}

{{ app()->getLocale() == 'en' ? 'Contact Information' : 'Informasi Kontak' }}

{{ $client->email ?? (app()->getLocale() == 'en' ? 'No email set' : 'Email belum diatur') }}
{{ $client->no_hp ?? (app()->getLocale() == 'en' ? 'No phone set' : 'Telepon belum diatur') }}
{{ $client->alamat }}

{{ app()->getLocale() == 'en' ? 'Account Stats' : 'Statistik Akun' }}

Rp {{ number_format($client->invoices()->sum('total'), 0, ',', '.') }}

{{ app()->getLocale() == 'en' ? 'Total Billing' : 'Total Tagihan' }}

{{ $client->invoices()->count() }}

{{ app()->getLocale() == 'en' ? 'Total Invoices' : 'Total Faktur' }}

{{ app()->getLocale() == 'en' ? 'Invoice History' : 'Riwayat Faktur' }}

@foreach($client->invoices()->latest()->get() as $invoice) @endforeach
{{ app()->getLocale() == 'en' ? 'Reference' : 'Referensi' }} {{ app()->getLocale() == 'en' ? 'Date' : 'Tanggal' }} {{ app()->getLocale() == 'en' ? 'Total' : 'Total' }} {{ app()->getLocale() == 'en' ? 'Status' : 'Status' }}
{{ $invoice->invoice_number }} {{ $invoice->tanggal_invoice->format('M d, Y') }} Rp {{ number_format($invoice->total, 0, ',', '.') }}

{{ app()->getLocale() == 'en' ? 'Quotation History' : 'Riwayat Penawaran' }}

@foreach($client->receipts()->latest()->get() as $quotation) @endforeach
{{ app()->getLocale() == 'en' ? 'Reference' : 'Referensi' }} {{ app()->getLocale() == 'en' ? 'Date' : 'Tanggal' }} {{ app()->getLocale() == 'en' ? 'Total' : 'Total' }} {{ app()->getLocale() == 'en' ? 'Status' : 'Status' }}
{{ $quotation->receipt_number }} {{ $quotation->tanggal_receipt->format('M d, Y') }} Rp {{ number_format($quotation->total, 0, ',', '.') }}