@php $doc = $document ?? null; $isInvoice = $doc && isset($doc->invoice_number); @endphp @if($showTaxable ?? false) @endif @if($gstMode ?? false) @foreach($gstSummaryRows ?? [] as $tax) @endforeach @else @foreach($taxBreakdown ?? [] as $tax) @endforeach @endif @if($isInvoice && $doc->isExcise() && $doc->excise_amount > 0) @endif @if($doc->has_shipping && $doc->shipping_charges > 0) @endif @if($doc->has_discount_total && $doc->discount_on_total > 0) @endif @if($doc->has_advance_payment && $doc->advance_payment > 0) @endif @if($isInvoice && ($docOpts['show_net_received_totals'] ?? false) && (float) $doc->paid_amount > 0) @endif @if($isInvoice && ($docOpts['show_amount_due'] ?? true) && ($amountDue ?? 0) > 0) @endif
Subtotal ₹ {{ number_format($doc->subtotal, 2) }}
Total Taxable Value ₹ {{ number_format((float) ($isInvoice ? $doc->taxable_amount : $doc->subtotal), 2) }}
{{ $tax['label'] }} ({{ rtrim(rtrim(number_format($tax['rate'], 2), '0'), '.') }}%) ₹ {{ number_format($tax['amount'], 2) }}
{{ $tax['name'] }} ({{ rtrim(rtrim(number_format($tax['rate'], 2), '0'), '.') }}%) ₹ {{ number_format($tax['amount'], 2) }}
Excise ({{ $doc->excise_percent }}%) ₹ {{ number_format($doc->excise_amount, 2) }}
{{ $docLbl['col_shipping'] ?? 'Shipping' }} ₹ {{ number_format($doc->shipping_charges, 2) }}
{{ $docLbl['col_discount'] ?? 'Discount' }} on total (-) ₹ {{ number_format($doc->discount_on_total, 2) }}
Advance payment (-) ₹ {{ number_format($doc->advance_payment, 2) }}
Net Received ₹ {{ number_format($doc->paid_amount, 2) }}
TOTAL ₹ {{ $fmtTotal($doc->grand_total) }}
Balance Due ₹ {{ number_format($amountDue, 2) }}