Edit Invoice
@csrf
@error('invoice_date') {{ $message }} @enderror
@error('due_date') {{ $message }} @enderror
@error('gst') {{ $message }} @enderror

Product Details:
@foreach($invoice->invoiceItems as $index => $item) @php $product = $products->firstWhere('id', $item->product_id); $currentQty = $product ? $product->qty : 0; $taxIds = $item->invoiceItemTaxes->pluck('tax_id')->toArray(); @endphp @endforeach
# Product Avl. Qty Qty Unit Price Tax Amount Action
{{ $index + 1 }}
@error('discount_type') {{ $message }} @enderror
discount_type)) ? 'readonly' : '' }}> @error('discount') {{ $message }} @enderror
Sub Total: {{ number_format($invoice->amount, 2) }} ₹
Discount: {{ number_format($invoice->discount, 2) }} ₹
Tax: {{ number_format($invoice->final_amount - $invoice->amount + $invoice->discount, 2) }} ₹
Total: {{ number_format($invoice->final_amount, 2) }} ₹