@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 PENJUALAN
Nota: {{$sale->sale_number}}
Kasir: {{$sale->cashier->name}}
Tanggal: {{date('d/m/Y', strtotime($sale->sale_date))}}
Pelanggan: {{$sale->customer ? $sale->customer->name : 'Umum'}}
@if($sale->customer)
Alamat: {{$sale->customer->address ?? '-'}}
Telp: {{$sale->customer->phone ?? '-'}}
@endif
Cabang: {{$sale->branch->name}}
@php $totalItems = 0; @endphp @foreach($sale->saleDetails as $index => $detail) @php $totalItems += $detail->quantity; @endphp @endforeach
No Nama Qty Satuan Harga Disc Total
{{$index + 1}} {{$detail->product->name}} {{number_format($detail->quantity, 0, ',', '.')}} {{$detail->product->unit}} {{number_format($detail->selling_price, 0, ',', '.')}} {{number_format($detail->discount, 0, ',', '.')}} {{number_format($detail->subtotal, 0, ',', '.')}}
Jumlah Item: {{number_format($totalItems, 0, ',', '.')}} item
Sub Total: Rp {{number_format($sale->subtotal, 0, ',', '.')}}
Potongan: Rp {{number_format($sale->discount, 0, ',', '.')}}
Pajak: Rp {{number_format($sale->tax, 0, ',', '.')}}
TOTAL AKHIR: Rp {{number_format($sale->total_amount, 0, ',', '.')}}
@if($sale->notes)
Catatan: {{$sale->notes}}
@endif
Metode Pembayaran: @if($sale->payment_method == 'cash') Tunai @elseif($sale->payment_method == 'transfer') Transfer @else Kredit @endif
Hormat Kami,
({{$sale->cashier->name}})
Penerima,
(................................)

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