Purchased Items
Sub Total
Rs {{ number_format($sale->sub_total, 2) }}
@if($sale->order_tax > 0)
Tax
+ Rs {{ number_format($sale->order_tax, 2) }}
@endif
@if($sale->order_discount > 0)
Discount
- Rs {{ number_format($sale->order_discount_type == 'percent' ? ($sale->sub_total * $sale->order_discount / 100) : $sale->order_discount, 2) }}
@if($sale->order_discount_type == 'percent')
({{ rtrim(rtrim($sale->order_discount, '0'), '.') }}%)
@endif
@endif
@if($sale->shipping_cost > 0)
Shipping
+ Rs {{ number_format($sale->shipping_cost, 2) }}
@endif
Grand Total
Rs {{ number_format($sale->grand_total, 2) }}
Cash Given
Rs {{ number_format($sale->cash_given, 2) }}
Paid Amount
Rs {{ number_format($sale->paid_amount, 2) }}
Balance
Rs {{ number_format($sale->balance, 2) }}
Method
{{ $sale->payment_type == 1 ? 'Cash' : 'Credit' }}
@if($sale->due_amount > 0)
Due Amount
Rs {{ number_format($sale->due_amount, 2) }}
@endif
@if($sale->payments && $sale->payments->count() > 0)
Payment History
| Date |
Method |
Paid |
@foreach($sale->payments as $payment)
| {{ \Carbon\Carbon::parse($payment->payment_date)->format('d M y') }} |
{{ $payment->payment_method ?? 'Cash' }}
|
Rs {{ number_format($payment->amount, 2) }} |
@endforeach
@endif