| {{ __('Cashier') }} : {{$saleInvoiceData->user->full_name}} | {{ __('Customer') }} : {{! empty($saleInvoiceData->customer) ? $saleInvoiceData->customer->first_name." ".$saleInvoiceData->customer->last_name : __('Walking customer') }} |
| {{ __('Invoice') }} : {{ $saleInvoiceData->reference }} | Date : {{ formatDate($saleInvoiceData->order_date) }} |
| {{ __('SL') }} | {{ __('Item') }} | {{ __('Quantity') }} | {{ __('Price') }} | {{ __('Total') }} |
|---|---|---|---|---|
| {{$key + 1}} | {{ $order->item_name }} | {{ formatCurrencyAmount($order->quantity) }} | {{ formatCurrencyAmount($order->unit_price) }} | {{ formatCurrencyAmount($order->quantity * $order->unit_price) }} | @php $subtotal += $order->quantity * $order->unit_price; @endphp
| {{ __('Sub Total') }}: | {{ formatCurrencyAmount($subtotal, $saleInvoiceData->currency->symbol) }} | |||
| (-) {{ __('Discount') }}: | @php $discountAmount = $saleInvoiceData->saleOrderDetails->sum('discount_amount'); if($saleInvoiceData->other_discount_type == "%") { $discountAmount += ($subtotal * $saleInvoiceData->other_discount_amount / 100); } else { $discountAmount += $saleInvoiceData->other_discount_amount; } @endphp {{ formatCurrencyAmount($discountAmount, $saleInvoiceData->currency->symbol) }} | |||
| {{ $saleInvoiceData->tax_type == 'inclusive' ? __('Included') : '(+) ' }} {{ __('Tax') }}: | {{ formatCurrencyAmount($totalTaxAmount, $saleInvoiceData->currency->symbol) }} | |||
| (+) {{ __('Shipping') }}: | {{ formatCurrencyAmount($saleInvoiceData->shipping_charge, $saleInvoiceData->currency->symbol) }} | |||
| {{ __('Net payable') }} : | {{ formatCurrencyAmount($saleInvoiceData->total, $saleInvoiceData->currency->symbol) }} | |||
| {{ __('Cash Paid') }} : | {{ formatCurrencyAmount($saleInvoiceData->amount_received, $saleInvoiceData->currency->symbol) }} | |||
| {{ __('Change Amount') }} : | {{ formatCurrencyAmount(abs($saleInvoiceData->amount_received - $saleInvoiceData->total), $saleInvoiceData->currency->symbol) }} | |||