{{-- BAGIAN 1: HEADER & INFO PERUSAHAAN (Bintang Vet Clinic) --}}

{{ $clinicData['name']}}

{{ $clinicData['address']}}


{{-- BAGIAN 2: INFO PELANGGAN DAN DETAIL INVOICE --}}
{{-- Kolom Kiri: Invoice Kepada --}}
Invoice Kepada:

{{ $invoiceData['customer_name'] ?? 'Rita' }}

Telepon Selular: {{ $invoiceData['customer_phone'] ?? '+62 81336538443' }}

{{-- Kolom Kanan: Detail Invoice --}}
No. Invoice: {{ $invoiceData['no_invoice'] ?? 'N/A' }}
Tanggal Invoice: {{ $invoiceData['tanggal_invoice'] ?? 'N/A' }}
{{-- BAGIAN 3: TABEL ITEM --}} @forelse ($invoiceData['data_item'] ?? [] as $item) @empty @endforelse @forelse ($invoiceData['data_service'] ?? [] as $service) @empty @endforelse @forelse ($invoiceData['data_petshop'] ?? [] as $petshop) @empty @endforelse
Nama Kuantitas Harga Total (Rp)
{{ $item->group_name }} {{ $item->quantity }} {{ number_format($item->each_price, 0, ',', '.') }} {{ number_format($item->price_overall, 0, ',', '.') }}
{{ $service->item_name }} {{ $service->quantity }} {{ number_format($service->selling_price, 0, ',', '.') }} {{ number_format($service->price_overall, 0, ',', '.') }}
{{ $petshop->item_name }} {{ $petshop->quantity }} {{ number_format($petshop->selling_price, 0, ',', '.') }} {{ number_format($petshop->price_overall, 0, ',', '.') }}
{{-- RINGKASAN TOTAL --}}
Total: Rp {{ number_format($invoiceData['total'] ?? 0, 0, ',', '.') }}
{{-- INSTRUKSI PEMBAYARAN --}}
Instruksi Pembayaran {{ $clinicData['payment_instruction'] ?? '' }}