{{__('Edit BOM (Bill of Material)') }}

  1. Dashboard
  2. BOM (Bill of Material)
  3. {{ __('Edit BOM (Bill of Material)') }}
@php $initialItems = old('items') ?: $bom->items->map(fn($item) => [ 'id' => $item->id, 'product_id' => $item->product_id, 'product_size_id' => $item->product_size_id, 'unit_id' => $item->unit_id, 'unit_name' => $item->unit->name ?? '', 'quantity' => $item->quantity, ])->values(); // Get the initial unit information from the BOM $initialUnitId = old('unit_id', $bom->unit_id); $initialUnitName = $bom->unit->name ?? ''; @endphp
@csrf @method('PUT')
@error('product_id')

{{ $message }}

@enderror
@error('product_size_id')

{{ $message }}

@enderror
@error('unit_id')

{{ $message }}

@enderror
Item Product *
Size
Unit
Quantity
Cancel