{{-- HEADER --}}

{{ $company->nama_company }}

{!! $company->alamat !!}

PURCHASE INVOICE

No: {{ $data->invoice_number }}
{{-- QR Code (otomatis di-generate) --}}

{{-- INFORMASI PO --}}
Kode PI: {{ $data->invoice_number }} Tanggal Invoice: {{ date('d/m/Y', strtotime($data->invoice_date)) }}
Vendor: {{ $data->vendors->nama_vendor ?? '-' }}  

Detail Barang

@foreach ($data->items as $i => $item) @endforeach
No Produk Satuan Qty Harga Beli Disc (%) Disc (Rp) Pajak Subtotal
{{ $i + 1 }} {{ $item->products->name ?? '-' }} {{ $item->units->name ?? '-' }} {{ $item->qty }} {{ number_format($item->purchase_price, 0, ',', '.') }} {{ $item->discount_percent }} {{ number_format($item->discount_amount, 0, ',', '.') }} {{ $item->po_detail->tax_rate }}%/{{ number_format($item->po_detail->tax_amount, 0, ',', '.') }} {{ number_format($item->subtotal, 0, ',', '.') }}
Total {{ number_format($total, 0, ',', '.') }}





Disetujui Oleh


(__________________)



Dibuat Oleh


(__________________)