@extends('layouts.app') @section('title', 'Edit Production Schedule') @section('content') Edit Production Schedule @include('manufacturing.partials.navigation') Edit Schedule: {{ $schedule->schedule_code }} @csrf @method('PUT') Schedule Code * Code cannot be changed Bill of Materials (BOM) * Select BOM @foreach($boms ?? [] as $bom) bom_id) == $bom->id ? 'selected' : '' }}> {{ $bom->bom_code }} - {{ $bom->name }} @if($bom->product) ({{ $bom->product->name }}) @endif @endforeach @error('bom_id') {{ $message }} @enderror Select a BOM to auto-fill product details Product * Select Product @foreach($products ?? [] as $product) product_id) == $product->id ? 'selected' : '' }}> {{ $product->sku ?? $product->product_code }} - {{ $product->name }} @endforeach @error('product_id') {{ $message }} @enderror Automatically populated from selected BOM Quantity to Produce * @error('quantity_to_produce') {{ $message }} @enderror Unit of Measure * Select Unit @error('unit_of_measure') {{ $message }} @enderror Unit for the quantity to produce Planned Start Date * @error('planned_start_date') {{ $message }} @enderror Planned End Date * @error('planned_end_date') {{ $message }} @enderror Priority priority) == 'low' ? 'selected' : '' }}>Low priority) == 'medium' ? 'selected' : '' }}>Medium priority) == 'high' ? 'selected' : '' }}>High priority) == 'urgent' ? 'selected' : '' }}>Urgent @error('priority') {{ $message }} @enderror Shift @error('shift') {{ $message }} @enderror Status status) == 'draft' ? 'selected' : '' }}>Draft status) == 'approved' ? 'selected' : '' }}>Approved status) == 'in_production' ? 'selected' : '' }}>In Production status) == 'completed' ? 'selected' : '' }}>Completed status) == 'on_hold' ? 'selected' : '' }}>On Hold status) == 'cancelled' ? 'selected' : '' }}>Cancelled @error('status') {{ $message }} @enderror Select Machines Select machines... ▼ 0 machine(s) selected Select machines for this schedule @error('machines') {{ $message }} @enderror Select Areas / Locations Select areas... ▼ 0 area(s) selected Select areas/locations for this schedule @error('locations') {{ $message }} @enderror Assignment Options enable_machine_users ?? false) ? 'checked' : '' }}> Assign Users to Machines (Assign specific users to each machine) enable_location_users ?? false) ? 'checked' : '' }}> Assign Users to Areas (Assign specific users to each area) Machine User Assignments Assign users to each selected machine Location/Area User Assignments Assign users to each selected area Notes {{ old('notes', $schedule->notes) }} @error('notes') {{ $message }} @enderror BOM Code: - BOM Name: - Product: - Product Unit: - BOM Quantity: - Update Schedule Cancel @endsection