@php $isEdit = $invoice->exists; $formItems = collect($initialItems ?? old('items', [])); @endphp
@csrf @if($isEdit) @method('PUT') @endif
{{-- Status is hidden from the UI: new invoices default to unpaid (pending); on edit the stored status is preserved untouched. --}}
Invoice Products
Add every product that belongs to the same supplier invoice number.
@foreach($formItems as $index => $item)
Product Line {{ $index + 1 }}
@endforeach
@foreach($suppliers as $supplier) @endforeach
Cancel
@csrf