{!! Form::open(['url' => action([\Modules\Maintenance\Http\Controllers\OverhaulController::class, 'update'], [$overhaul->id]), 'method' => 'put']) !!}
@include('maintenance::partials.scope_fields', ['projects' => $projects, 'production_lines' => $production_lines, 'equipment' => $equipment, 'model' => $overhaul])
{!! Form::label('title', __('maintenance::lang.title') . ':*') !!}
{!! Form::text('title', $overhaul->title, ['class' => 'form-control', 'required']) !!}
{!! Form::label('status', __('maintenance::lang.status') . ':') !!}
{!! Form::select('status', $statuses, $overhaul->status, ['class' => 'form-control']) !!}
{!! Form::label('supervisor_id', __('maintenance::lang.supervisor') . ':') !!}
{!! Form::select('supervisor_id', $users, $overhaul->supervisor_id, ['class' => 'form-control select2', 'placeholder' => __('maintenance::lang.select'), 'style' => 'width:100%']) !!}
{!! Form::label('start_date', __('maintenance::lang.start_date') . ':') !!}
{!! Form::text('start_date', $util->formatDate($overhaul->start_date), ['class' => 'form-control mm-datepicker']) !!}
{!! Form::label('end_date', __('maintenance::lang.end_date') . ':') !!}
{!! Form::text('end_date', $util->formatDate($overhaul->end_date), ['class' => 'form-control mm-datepicker']) !!}
{!! Form::label('estimated_duration_hours', __('maintenance::lang.estimated_duration_hours') . ':') !!}
{!! Form::number('estimated_duration_hours', $overhaul->estimated_duration_hours, ['class' => 'form-control', 'step' => '0.01']) !!}
{!! Form::label('actual_duration_hours', __('maintenance::lang.actual_duration_hours') . ':') !!}
{!! Form::number('actual_duration_hours', $overhaul->actual_duration_hours, ['class' => 'form-control', 'step' => '0.01']) !!}
{!! Form::label('estimated_cost', __('maintenance::lang.estimated_cost') . ':') !!}
{!! Form::number('estimated_cost', $overhaul->estimated_cost, ['class' => 'form-control', 'min' => '0']) !!}
{!! Form::label('actual_cost', __('maintenance::lang.actual_cost') . ':') !!}
{!! Form::number('actual_cost', $overhaul->actual_cost, ['class' => 'form-control', 'min' => '0']) !!}
{!! Form::label('safety_requirements', __('maintenance::lang.safety_requirements') . ':') !!}
{!! Form::textarea('safety_requirements', $overhaul->safety_requirements, ['class' => 'form-control', 'rows' => 2]) !!}
{!! Form::label('description', __('maintenance::lang.description') . ':') !!}
{!! Form::textarea('description', $overhaul->description, ['class' => 'form-control', 'rows' => 2]) !!}
{!! Form::close() !!}