| # | Item Description | Qty | Unit Price | Tax | Total |
|---|---|---|---|---|---|
| {{ $index + 1 }} |
{{ $item->item->name ?? 'N/A' }}
@if($item->item->description)
{{ $item->item->description }}
@endif
@if($item->comment && $item->show_comment_on_receipt)
Note: {{ $item->comment }}
@endif
@if($item->variant_name)
Variant: {{ $item->variant_name }}
@endif
@if($item->modifiers && $item->modifiers->count() > 0)
@foreach($item->modifiers as $modifier)
+ {{ $modifier->name }}: {{ number_format($modifier->price, 2) }}
@endforeach
@endif
@if($item->taxes && $item->taxes->count() > 0)
@foreach($item->taxes as $tax)
Tax ({{ $tax->name }}): {{ number_format($tax->amount, 2) }}
@endforeach
@endif
@if($item->discounts && $item->discounts->count() > 0)
@foreach($item->discounts as $discount)
Discount ({{ $discount->name }}): -{{ number_format($discount->amount, 2) }}
@endforeach
@endif
|
{{ number_format($item->quantity, 2) }} | {{ number_format($item->unit_price, 2) }} | {{ number_format($item->total_tax ?? 0, 2) }} | {{ number_format(($item->unit_price * $item->quantity) + ($item->total_tax ?? 0) - ($item->total_discount ?? 0) + ($item->total_modifier ?? 0), 2) }} |
| Subtotal: | {{ number_format($sale->total_price + (isset($sale->total_discount) ? $sale->total_discount : 0) - (isset($sale->total_tax) ? $sale->total_tax : 0), 2) }} |
| Modifiers: | {{ number_format($sale->total_modifier, 2) }} |
| Tax: | {{ number_format($sale->total_tax, 2) }} |
| Discount: | -{{ number_format($sale->total_discount, 2) }} |
| TOTAL: | {{ number_format($sale->total_price, 2) }} |
| Amount Due: | {{ number_format($sale->total_price, 2) }} |
| Amount Paid: | {{ number_format($sale->paid, 2) }} |
| Change Given: | {{ number_format($sale->paid - $sale->total_price, 2) }} |
| Balance Due: | {{ number_format($sale->total_price - $sale->paid, 2) }} |
| Payment Methods: | @foreach($sale->payments as $payment) {{ $payment->name }}: {{ number_format($payment->pivot->amount, 2) }}@if(!$loop->last), @endif @endforeach |
| Payment Status: | @if($isPaid) ✓ FULLY PAID @elseif($isPartial) PARTIALLY PAID @else UNPAID @endif |