@extends('layouts.layoutapp') @section('content')
| Branch Name | Invoice ID | HSN Code | Invoice Date | Due Date | Tax | Amount | Total Amount | {{--Status | --}}
|---|---|---|---|---|---|---|---|---|
| {{ $item->branch->name ?? '' }} | {{ $item->invoice_id ?? '' }} | {{ $invoiceItem->products->hsn_code ?? '' }} | {{ $item->invoice_date ?? '' }} | {{ $item->due_date ?? '' }} | @php $totalTax = 0; if (isset($invoiceItem->invoiceItemTaxes) && $invoiceItem->invoiceItemTaxes->isNotEmpty()) { foreach ($invoiceItem->invoiceItemTaxes as $tax) { $totalTax += round(($invoiceItem->total * $tax->tax) / 100, 2); } } echo $totalTax; @endphp | {{ $invoiceItem->total ?? 0 }} | @php $subtotal = $invoiceItem->total ?? 0; $grandTotal = $subtotal + $totalTax; echo number_format($grandTotal, 2); @endphp | {{--{{ $statusList[$item->status] ?? 'Unknown' }} | --}}