@lang('repair::lang.pre_repair_checklist'):
@php
$checklists = [];
if (!empty($job_sheet->deviceModel) && !empty($job_sheet->deviceModel->repair_checklist)) {
$checklists = explode('|', $job_sheet->deviceModel->repair_checklist);
}
if(!empty($repair_settings['default_repair_checklist'])) {
$checklists = array_merge(explode('|', $repair_settings['default_repair_checklist']), $checklists);
}
@endphp
@if(!empty($checklists))
@foreach($checklists as $check)
@php
if(!isset($job_sheet->checklist[$check])) {
continue;
}
@endphp
@if($job_sheet->checklist[$check] == 'yes')
✔
@elseif($job_sheet->checklist[$check] == 'no')
✖
@elseif($job_sheet->checklist[$check] == 'not_applicable')
@endif
{{$check}}
@endforeach
@endif
@if(!empty($job_sheet->custom_field_1))
{{$repair_settings['job_sheet_custom_field_1'] ?? __('lang_v1.custom_field', ['number' => 1])}}:
{{$job_sheet->custom_field_1}}
@endif
@if(!empty($job_sheet->custom_field_2))
{{$repair_settings['job_sheet_custom_field_2'] ?? __('lang_v1.custom_field', ['number' => 2])}}:
{{$job_sheet->custom_field_2}}
@endif
@if(!empty($job_sheet->custom_field_3))
{{$repair_settings['job_sheet_custom_field_3'] ?? __('lang_v1.custom_field', ['number' => 3])}}:
{{$job_sheet->custom_field_3}}
@endif
@if(!empty($job_sheet->custom_field_4))
{{$repair_settings['job_sheet_custom_field_4'] ?? __('lang_v1.custom_field', ['number' => 4])}}:
{{$job_sheet->custom_field_4}}
@endif
@if(!empty($job_sheet->custom_field_5))
{{$repair_settings['job_sheet_custom_field_5'] ?? __('lang_v1.custom_field', ['number' => 5])}}:
{{$job_sheet->custom_field_5}}
@endif