@extends('layouts.app') @section('title', __('maintenance::lang.edit') . ' — ' . $work_order->work_order_number) @section('content') @include('maintenance::layouts.nav') @php $util = app(\Modules\Maintenance\Utils\MaintenanceUtil::class); @endphp

@lang('maintenance::lang.edit') — {{ $work_order->work_order_number }}

@lang('maintenance::lang.view')
{!! Form::open(['url' => action([\Modules\Maintenance\Http\Controllers\WorkOrderController::class, 'update'], [$work_order->id]), 'method' => 'put']) !!} @include('maintenance::partials.scope_fields', ['projects' => $projects, 'production_lines' => $production_lines, 'equipment' => $equipment, 'model' => $work_order])
{!! Form::label('priority', __('maintenance::lang.priority') . ':') !!} {!! Form::select('priority', $priorities, $work_order->priority, ['class' => 'form-control']) !!}
{!! Form::label('status', __('maintenance::lang.status') . ':') !!} {!! Form::select('status', $statuses, $work_order->status, ['class' => 'form-control']) !!}
{!! Form::label('assigned_technician_id', __('maintenance::lang.assigned_technician') . ':') !!} {!! Form::select('assigned_technician_id', $users, $work_order->assigned_technician_id, ['class' => 'form-control select2', 'placeholder' => __('maintenance::lang.select'), 'style' => 'width:100%']) !!}
{!! Form::label('labor_hours', __('maintenance::lang.labor_hours') . ':') !!} {!! Form::number('labor_hours', $work_order->labor_hours, ['class' => 'form-control', 'step' => '0.01', 'min' => '0']) !!}
{!! Form::label('scheduled_at', __('maintenance::lang.scheduled_at') . ':') !!} {!! Form::text('scheduled_at', $util->formatDateTime($work_order->scheduled_at), ['class' => 'form-control mm-datetimepicker']) !!}
{!! Form::label('cost', __('maintenance::lang.cost') . ':') !!} {!! Form::number('cost', $work_order->cost, ['class' => 'form-control', 'min' => '0']) !!}
{!! Form::label('description', __('maintenance::lang.description') . ':') !!} {!! Form::textarea('description', $work_order->description, ['class' => 'form-control', 'rows' => 2]) !!}
{!! Form::label('completion_report', __('maintenance::lang.completion_report') . ':') !!} {!! Form::textarea('completion_report', $work_order->completion_report, ['class' => 'form-control', 'rows' => 3]) !!}
{!! Form::close() !!}
@endsection @section('javascript') @endsection