@lang('product.brand'): {{ $js->brand_name ?: '-' }}
@lang('repair::lang.model'): {{ $js->model_name ?: '-' }}
@lang('repair::lang.service_type'): {{ !empty($js->service_type) ? __('repair::lang.' . $js->service_type) : '-' }}
@lang('repair::lang.expected_delivery_date'):
{{ !empty($js->delivery_date) ? \Carbon\Carbon::parse($js->delivery_date)->format('Y-m-d H:i') : '-' }}
@lang('repair::lang.estimated_cost'):
{{ !is_null($js->estimated_cost) ? $currency_symbol . ' ' . number_format((float) $js->estimated_cost, 2) : '-' }}
@lang('business.business_location'): {{ $js->location_name ?: '-' }}
@if($jsTotalInsp > 0 || !empty($jsWork))
@if($jsTotalInsp > 0)
Vehicle Health Check
@if($jsGood > 0)
{{ $jsGood }}
@endif
@if($jsAtt > 0)
{{ $jsAtt }}
@endif
@if($jsRep > 0)
{{ $jsRep }}
@endif
{{ $jsGood }} Good
{{ $jsAtt }} Needs attention
{{ $jsRep }} Replace
@foreach($inspection_items as $iKey => $iLabel)
@if(!empty($jsInsp[$iKey]))
@php
$st = $jsInsp[$iKey];
$stLabel = $inspection_statuses[$st]['label'] ?? ucfirst($st);
@endphp
{{ $iLabel }}
{{ $stLabel }}
@endif
@endforeach
@endif
@if(!empty($jsWork))
Work done
{{ count($jsWork) }}
@foreach($jsWork as $code)
@php
$rawLabel = $service_checklist_items[$code] ?? $code;
$cleanLabel = preg_replace('/^\d+\s*-\s*/', '', $rawLabel);
@endphp
{{ $cleanLabel }}
@endforeach
@endif
@endif
@if(!empty($js->defects))
@lang('repair::lang.problem_reported_by_customer'):
@php
$defects = json_decode($js->defects, true);
@endphp
@if(is_array($defects))
{{ collect($defects)->pluck('value')->implode(', ') }}
@else
{{ $js->defects }}
@endif
@endif
@if(!empty($js->comment_by_ss))
@lang('repair::lang.comment_by_ss'): {{ $js->comment_by_ss }}
@endif
@if(!empty($js->activities) && $js->activities->count() > 0)
@lang('repair::lang.activities'):
@includeIf('repair::customer_repair.repair_activities', ['activities' => $js->activities])
@endif