{!! Form::open(['url' => action([\Modules\Maintenance\Http\Controllers\FailureReportController::class, 'update'], [$failure_report->id]), 'method' => 'put', 'id' => 'mm_failure_report_form']) !!}
@php $util = app(\Modules\Maintenance\Utils\MaintenanceUtil::class); @endphp
@include('maintenance::partials.scope_fields', ['projects' => $projects, 'production_lines' => $production_lines, 'equipment' => $equipment, 'model' => $failure_report])
{!! Form::label('failure_type', __('maintenance::lang.failure_type') . ':') !!}
{!! Form::text('failure_type', $failure_report->failure_type, ['class' => 'form-control']) !!}
{!! Form::label('reported_at', __('maintenance::lang.reported_at') . ':') !!}
{!! Form::text('reported_at', $util->formatDateTime($failure_report->reported_at), ['class' => 'form-control mm-datetimepicker']) !!}
{!! Form::label('cost', __('maintenance::lang.cost') . ':') !!}
{!! Form::number('cost', $failure_report->cost, ['class' => 'form-control', 'min' => '0']) !!}
{!! Form::label('downtime_hours', __('maintenance::lang.downtime_hours') . ':') !!}
{!! Form::number('downtime_hours', $failure_report->downtime_hours, ['class' => 'form-control', 'step' => '0.01']) !!}
{!! Form::label('repair_hours', __('maintenance::lang.repair_hours') . ':') !!}
{!! Form::number('repair_hours', $failure_report->repair_hours, ['class' => 'form-control', 'step' => '0.01']) !!}
{!! Form::label('lost_production', __('maintenance::lang.lost_production') . ':') !!}
{!! Form::number('lost_production', $failure_report->lost_production, ['class' => 'form-control', 'step' => '0.01']) !!}
{!! Form::label('root_cause', __('maintenance::lang.root_cause') . ':') !!}
{!! Form::textarea('root_cause', $failure_report->root_cause, ['class' => 'form-control', 'rows' => 2]) !!}
{!! Form::label('corrective_action', __('maintenance::lang.corrective_action') . ':') !!}
{!! Form::textarea('corrective_action', $failure_report->corrective_action, ['class' => 'form-control', 'rows' => 2]) !!}
{!! Form::label('preventive_action', __('maintenance::lang.preventive_action') . ':') !!}
{!! Form::textarea('preventive_action', $failure_report->preventive_action, ['class' => 'form-control', 'rows' => 2]) !!}