@php
$total_before_gst = $purchaseVoucher->voucherExpense->sum('exp_amount');
$total_after_gst = $purchaseVoucher->voucherAfterGstCharge->sum('after_gst_amount');
$total_taxable = $purchaseVoucher->total_purchase_amount + $total_before_gst;
@endphp
Item Taxable Value₹{{ number_format($purchaseVoucher->total_purchase_amount, 2) }}
Other Charges Taxable₹{{ number_format($total_before_gst, 2) }}
Total Taxable Value₹{{ number_format($total_taxable, 2) }}
@if($isRegular && !$isRcm)
@if($isIntra)
CGST₹{{ number_format($purchaseVoucher->final_tax_total / 2, 2) }}
SGST₹{{ number_format($purchaseVoucher->final_tax_total / 2, 2) }}
@else
IGST₹{{ number_format($purchaseVoucher->final_tax_total, 2) }}
@endif
@endif
Other Charges (after GST)₹{{ number_format($total_after_gst, 2) }}
Round Off{{ $purchaseVoucher->round_off >= 0 ? '+' : '' }}₹{{ number_format($purchaseVoucher->round_off, 2) }}
Invoice Total₹{{ number_format($purchaseVoucher->net_total, 2) }}
Paid Amount
₹{{ number_format($purchaseVoucher->total_paid, 2) }}
Remaining Balance
₹{{ number_format($purchaseVoucher->balance, 2) }}
@if($isRcm)
@php
$rcm_payable = 0;
foreach ($purchaseVoucher->voucherDetails as $detail) {
if ($detail->taxGroup && is_numeric($detail->taxGroup->tax_slab)) {
$rcm_payable += ($detail->amount * $detail->taxGroup->tax_slab) / 100;
}
}
foreach ($purchaseVoucher->voucherExpense as $expense) {
if ($expense->taxGroup && is_numeric($expense->taxGroup->tax_slab)) {
$rcm_payable += ($expense->exp_amount * $expense->taxGroup->tax_slab) / 100;
}
}
@endphp
@if($rcm_payable > 0)
RCM Payable to Govt.
₹{{ number_format($rcm_payable, 2) }}
Self-assessed — not part of invoice total
@endif
@endif