@php $logoPath = public_path('logo/logo-umi.png'); $logoExists = file_exists($logoPath); @endphp
@if($logoExists) @endif UMI CELL

Jl. Raya Semarang-Boja, Jatisari, Kec. Mijen, Kota Semarang Jawa Tengah 50275

Telp: 0882005564342

FAKTUR PEMBELIAN
Nota: {{$purchase->purchase_number}}
Kasir: {{$purchase->user->name}}
Tanggal: {{date('d/m/Y', strtotime($purchase->purchase_date))}}
Supplier: {{$purchase->supplier->name}}
Alamat: {{$purchase->supplier->address ?? '-'}}
Telp: {{$purchase->supplier->phone ?? '-'}}
Cabang: {{$purchase->branch->name}}
@php $totalItems = 0; @endphp @foreach($purchase->purchaseDetails as $index => $detail) @php $totalItems += $detail->quantity; @endphp @endforeach
No Nama Qty Satuan Harga Total
{{$index + 1}} {{$detail->product->name}} {{number_format($detail->quantity, 0, ',', '.')}} {{$detail->product->unit}} {{number_format($detail->purchase_price, 0, ',', '.')}} {{number_format($detail->subtotal, 0, ',', '.')}}
Jumlah Item: {{number_format($totalItems, 0, ',', '.')}} item
Sub Total: Rp {{number_format($purchase->total_amount, 0, ',', '.')}}
TOTAL AKHIR: Rp {{number_format($purchase->total_amount, 0, ',', '.')}}
@if($purchase->notes)
Catatan: {{$purchase->notes}}
@endif
Hormat Kami,
({{$purchase->user->name}})
Penerima,
(................................)

Dicetak pada: {{date('d M Y H:i')}}