@php $logoPath = public_path('images/logo.png'); $hasLogo = file_exists($logoPath); @endphp
@if($hasLogo)
@endif

{{ config('app.name') }}

Sale Receipt
Invoice: {{ $sale->invoice_number }}Date: {{ $sale->sale_date->format('d M Y') }}
@foreach($sale->items as $item) @endforeach
ProductQtyUnitTotal
{{ $item->product->name ?? '-' }} {{ $item->quantity }} {{ number_format($item->unit_price, 2) }} {{ number_format($item->line_total, 2) }}
Subtotal{{ number_format($sale->subtotal, 2) }}
Discount{{ number_format($sale->discount_amount, 2) }}
Grand Total{{ number_format($sale->grand_total, 2) }}
Amount Received{{ number_format($sale->amount_received, 2) }}
Balance / Change{{ number_format($sale->balance(), 2) }}
@if($sale->notes)
Notes: {{ $sale->notes }}
@endif
Thank you!