@foreach($dynamicHeaders as $header) @endforeach @foreach($data as $row) @foreach($dynamicHeaders as $header) @endforeach @endforeach
Date Particulars Voucher Type Voucher No. Invoice No. Taxable Value Gross Amount Purchase Amount Other Charges{{ $header }}Grand Total
{{ $row['voucher_date'] }} {{ $row['particulars'] }} {{ $row['voucher_type'] }} {{ $row['voucher_no'] }} {{ $row['invoice_no'] }} {{ number_format($row['taxable_value'], 2, '.', '') }} {{ number_format($row['gross_total'], 2, '.', '') }} {{ number_format($row['purchase_amount'], 2, '.', '') }} {{ number_format($row['other_charges'], 2, '.', '') }}{{ number_format($row[$header] ?? 0, 2, '.', '') }}{{ number_format($row['grand_total'], 2, '.', '') }}