Inv: {{ $sale->invoice_no }}
Date: {{ $sale->created_at->format('Y-m-d H:i') }}
Customer: {{ $sale->customer->name ?? 'Walk-in' }}
Cashier: {{ $sale->creator->name ?? 'System' }}
| Item |
Qty |
Total |
@foreach($sale->items as $item)
{{ $item->product->name }}
@if($item->variation)
({{ $item->variation->variationType->name }})
@endif
Price: Rs {{ number_format($item->sub_total, 2) }}
@if($item->discount_rate > 0)
Discount:
{{ rtrim(rtrim($item->discount_rate, '0'), '.') }}% (Rs {{ number_format(($item->net_unit_price) * $item->qty * ($item->discount_rate / 100), 2) }})
@elseif($item->discount_amount > 0)
Discount: Rs {{ number_format($item->discount_amount, 2) }}
@endif
|
{{ number_format($item->qty, 0) }} |
{{ number_format($item->total, 2) }} |
@endforeach
Sub Total: {{ number_format($sale->sub_total, 2) }}
@if($sale->order_discount > 0)
TOTAL DISCOUNT: {{ number_format($sale->order_discount, 2) }}
{{ $sale->order_discount_type == 'percent' ? ' %' : ' Rs' }}
@endif
Grand Total:
{{ $settings->currency_symbol ?? 'Rs.' }} {{ number_format($sale->grand_total, 2) }}
Cash Given: Rs {{ number_format($sale->cash_given, 2) }}
Paid: Rs {{ number_format($sale->paid_amount, 2) }}
Balance: Rs {{ number_format($sale->balance, 2) }}
Method: {{ $sale->payment_type == 1 ? 'Cash' : 'Credit' }}
@if ($sale->customer_id)
@if ($settings->show_points_on_invoice && $settings->enable_loyalty_points)
@if($sale->earned_points > 0)
Points Earned: {{ $sale->earned_points }}
@endif
@if($sale->redeemed_points > 0)
Points Redeemed: {{ $sale->redeemed_points }}
@endif
@if($sale->wallet_amount_used > 0)
Wallet Paid: Rs {{ number_format($sale->wallet_amount_used, 2) }}
@endif
@if($sale->wallet_amount_added > 0)
Added to Wallet: Rs {{ number_format($sale->wallet_amount_added, 2) }}
@endif
@if($settings->enable_loyalty_points)
Remaining Points: {{ $sale->customer->loyalty_points }}
@endif
@endif
@if ($total_outstanding > 0)
TOTAL OUTSTANDING:
Rs {{ number_format($total_outstanding, 2) }}
@endif
@endif