@php
$stiPrintSummary = $stiPrintSummary ?? \App\Helpers\SalesHelper::buildStiPrintTaxSummary(
$sales_tax_invoice,
$sales_tax_invoice_data,
$AddionalExpense ?? null
);
extract($stiPrintSummary, EXTR_SKIP);
$sym = $currencySymbol ?? '';
@endphp
@if(empty($hideSubtotal) && ($subtotal ?? 0) > 0)
| Subtotal / Amount |
{{ $sym }}{{ number_format($subtotal, 2) }} |
@endif
@foreach($taxLines ?? [] as $taxLine)
| {{ $taxLine['label'] }} |
{{ $sym }}{{ number_format($taxLine['amount'], 2) }} |
@endforeach
@if(($advanceTax ?? 0) > 0)
| Advance Tax{{ ($advanceRate ?? 0) > 0 ? ' (' . number_format($advanceRate, 2) . '%)' : '' }} |
{{ $sym }}{{ number_format($advanceTax, 2) }} |
@endif
@if(($cartage ?? 0) > 0)
| Cartage Amount |
{{ $sym }}{{ number_format($cartage, 2) }} |
@endif
@foreach($expenseRows ?? [] as $expRow)
| {{ $expRow['label'] }} |
{{ $sym }}{{ number_format($expRow['amount'], 2) }} |
@endforeach