@php $invoice_total_deducted_amount = $invoice->totalDeductedAmount(); $invoice_applied_vat = $invoice->totalAppliedVAT(); @endphp @if($invoice->is_deduction_excluding_vat) {{-- Deduction before VAT --}} @if($invoice_total_deducted_amount) @endif @if($invoice_total_deducted_amount && $invoice_applied_vat) @php $taxableAmount = $invoice->subtotal_amount ?? $invoice->itemsSubtotalAmount() - $invoice_total_deducted_amount; @endphp @endif @if($invoice_applied_vat) @endif @else {{-- VAT before deduction --}} @if($invoice_applied_vat) @endif @if($invoice_total_deducted_amount) @endif @endif @if($invoice_WHT = $invoice->totalAppliedWHT()) @endif
Charges
Gross Amount: @cMoney($invoice->itemsSubtotalAmount(), $invoice->currency, true)
Down Payment Deduction: - @cMoney($invoice_total_deducted_amount, $invoice->currency, true)
Taxable Amount: @cMoney($taxableAmount, $invoice->currency, true)
VAT Amount: @cMoney($invoice_applied_vat, $invoice->currency, true)
VAT Amount: @cMoney($invoice_applied_vat, $invoice->currency, true)
Down Payment Deduction: - @cMoney($invoice_total_deducted_amount, $invoice->currency, true)
WHT Amount: - @cMoney($invoice_WHT, $invoice->currency, true)
Net Amount (Included VAT): {{ cMoney($invoice->getTotalAmount() ?? 0, $invoice->currency, true) }}
@php $payableAmount = ($invoice->getTotalAmount() ?? 0) - ($invoice->retention_amount ?? 0); @endphp
{{ tafqeetMoney($invoice->getTotalAmount()) }}
{{ spellNumber($invoice->getTotalAmount(), 'en', $invoice->currency) }}
Total Amount: {{ cMoney($invoice->getTotalAmount() ?? 0, $invoice->currency, true) }}
{{ tafqeetMoney($invoice->retention_amount) }}
{{ spellNumber($invoice->retention_amount, 'en', $invoice->currency) }}
Retention: {{ cMoney($invoice->retention_amount ?? 0, $invoice->currency, true) }}
{{ tafqeetMoney($payableAmount) }}
{{ spellNumber($payableAmount, 'en', $invoice->currency) }}
Payable Amount: {{ cMoney($payableAmount, $invoice->currency, true) }}
{{ tafqeetMoney($invoice->payableAmount() ?? 0) }}
{{ spellNumber($invoice->payableAmount() ?? 0, 'en', $invoice->currency) }}
Amount Due: {{ cMoney($invoice->payableAmount() ?? 0, $invoice->currency, true) }}