Receipt:
{{ $sale->receipt_number }}
Date:
{{ $sale->created_at->format('d M Y') }}
Time:
{{ $sale->created_at->format('h:i A') }}
@if($settings->show_cashier_name)
Cashier:
{{ $sale->cashier_name }}
@endif
@if($sale->warehouse)
Outlet:
{{ $sale->warehouse->name }}
@endif
@if($settings->show_customer_info && $sale->customer)
Customer:
{{ $sale->customer->name }}
Phone:
{{ $sale->customer->phone }}
@endif
@foreach($sale->items as $item)
{{ $item->product_name }}
@if($settings->show_item_sku)
({{ $item->sku }})
@endif
{{ $item->quantity }} x RM {{ number_format($item->unit_price, 2) }}
RM {{ number_format($item->line_total, 2) }}
@endforeach
Subtotal:
RM {{ number_format($sale->subtotal, 2) }}
@if($sale->discount_amount > 0)
{{ $sale->discount_label ?? 'Discount' }}:
-RM {{ number_format($sale->discount_amount, 2) }}
@endif
TOTAL:
RM {{ number_format($sale->total, 2) }}
@if($settings->show_payment_details)
Payment:
{{ ucfirst($sale->payment_method) }}
Paid:
RM {{ number_format($sale->amount_paid, 2) }}
@if($sale->payment_method === 'cash' && $sale->change_amount > 0)
Change:
RM {{ number_format($sale->change_amount, 2) }}
@endif
@endif
@if($settings->show_customer_points && $sale->customer)
@if($sale->points_earned > 0)
Points Earned: +{{ $sale->points_earned }} pts
@endif
Balance: {{ $sale->customer->loyalty_points }} pts
@endif
@if($settings->show_agent_code && $sale->agent_code)
Agent Code: {{ $sale->agent_code }}
@endif
@if($settings->show_qr_code && $settings->qr_code_content)
@endif