@extends('layouts.app') @section('title', 'Create Bill of Materials') @section('content') Create Bill of Materials @include('manufacturing.partials.navigation') New Bill of Materials @csrf BOM Code * Auto-generated code BOM Name * @error('name') {{ $message }} @enderror Product * Select Product @foreach($products ?? [] as $product) id ? 'selected' : '' }} data-unit="{{ $product->unit_id }}"> {{ $product->sku }} - {{ $product->name }} @if($product->unit) {{ $product->unit->actual_name }} @endif @endforeach @error('product_id') {{ $message }} @enderror Status Draft Final Inactive Obsolete @error('status') {{ $message }} @enderror Quantity Produced * @error('quantity') {{ $message }} @enderror Quantity this BOM produces Unit of Measure Select Unit @error('unit_of_measure') {{ $message }} @enderror Units related to the selected product Effective Date @error('effective_date') {{ $message }} @enderror Expiry Date @error('expiry_date') {{ $message }} @enderror Notes {{ old('notes') }} @error('notes') {{ $message }} @enderror Set as Default BOM Make this the default BOM for the selected product Components (0) Add Component Save BOM Cancel @endsection