@php use App\ProductionOrder; @endphp @extends('layouts.app', ['page' => 'Create Production Order', 'pageSlug' => 'production-orders', 'section' => 'manufacturing']) @section('content')

Create Production Order

@if($errors->any())

Please fix the following errors:

    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @error('error')
Error: {{ $message }}
@enderror
@csrf
@error('order_number')
{{ $message }}
@enderror Leave empty to auto-generate, or click Generate for a new number
@error('product_id')
{{ $message }}
@enderror
@error('batch_size')
{{ $message }}
@enderror
@error('planned_start_date')
{{ $message }}
@enderror
@error('planned_end_date')
{{ $message }}
@enderror
@error('notes')
{{ $message }}
@enderror
Note: The production order will be created with the selected batch size. All raw materials from the BOM will be consumed when production starts, and the actual quantity produced will be entered when production is completed. Make sure the selected product has a BOM configured for the chosen batch size.
@endsection