@forelse ($products as $key => $product)

{{ $product['name'] }}

{{ currencyFormatter($product['quantity'] * $product['price']) }}

@php $appliedTax = 0; $totalTax = 0; $taxPercent = 0; $subTotal = $product['quantity'] * $product['price'] @endphp @if (isset($product['tax'])) @forelse (json_decode($product['tax']) as $tax) @if (isset($tax->tax_name)) @php $taxPercent += $tax->percent; $appliedTax += ($subTotal*$tax->percent)/100; $totalTax += $appliedTax; @endphp @endif @empty @endforelse @endif
@empty
@lang('front.table.emptyMessage')
@endforelse