@php $existingItems = old('items'); if ($existingItems === null && isset($record) && $record) { $existingItems = $record->items->map(fn($i)=>['ingredient_id'=>$i->ingredient_id,'unit_price'=>$i->unit_price,'quantity'=>$i->quantity])->values()->all(); } $existingItems = $existingItems ?? []; @endphp
@error('supplier_id')
{{ $message }}
@enderror
@error('purchase_date')
{{ $message }}
@enderror
@error('items')
{{ $message }}
@enderror
SNIngredient(Code)Unit PriceQuantity/AmountTotalActions
@error('paid')
{{ $message }}
@enderror
@error('payment_method')
{{ $message }}
@enderror
Add Supplier
NOTICE
NOTICEYou must enter the Quantity/Amount in the Unit showing just right after the Quantity/Amount field, otherwise Stock will not match.