@php
$subTotal = 0;
$totalTax = 0;
$grandTotal = 0;
foreach ($products as $product) {
$subTotal += $product['price_subtotal'];
$totalTax += $product['price_tax'];
$grandTotal += $product['price_total'];
}
@endphp
Untaxed Amount
{{ money($subTotal, $currency?->name) }}
@if ($totalTax > 0)
Tax
{{ money($totalTax, $currency?->name) }}
@endif
Total
{{ money($grandTotal, $currency?->name) }}