{{-- Taxes Breakdown excluding the RC --}} @if($item->pivotTaxes && $item->pivotTaxes->count() > 0) @foreach($item->pivotTaxes->where('category', '!=', 3) as $tax) @php $label = $tax->category == 1 ? 'VAT' : ($tax->category == 2 ? 'WHT' : 'Tax'); $isWHT = $tax->category == 2; @endphp
{{ $label }}: @if($isWHT) - @endif {{ !$invoice->is_currency_hidden ? cMoney($tax->manual_amount ?: ($tax->calculated_amount ?? 0), $invoice->currency, true) : number_format(cMoney($tax->manual_amount ?: ($tax->calculated_amount ?? 0), $invoice->currency, false)->getAmount(), 2) }} @if($tax->type == 'Percent') ({{ $tax->amount }}%) @endif @if($tax->manual_amount) @php $formattedAmount = !$invoice->is_currency_hidden ? cMoney($tax->calculated_amount, $invoice->currency, true) : number_format(cMoney($tax->calculated_amount, $invoice->currency, false)->getAmount(), 2); @endphp *
{{ $isWHT ? '-' : '' }}{{ $formattedAmount }}
@endif
@endforeach @else N/A @endif