@php $custom_labels = json_decode(session('business.custom_labels'), true); $contact_custom_fields = !empty($jobsheet_settings['contact_custom_fields']) ? $jobsheet_settings['contact_custom_fields'] : []; @endphp

{{$job_sheet->customer->business->name}}
@if(!empty($jobsheet_settings['show_location_in_label']) && ($job_sheet->customer->business->name != $job_sheet->businessLocation->name)) {!!$job_sheet->businessLocation->name!!}
@endif @if(!empty($jobsheet_settings['show_barcode_in_label']))
@endif @lang('repair::lang.job_sheet_no'): {{$job_sheet->job_sheet_no}}
@if(!empty($jobsheet_settings['show_brand_in_label'])) {{$job_sheet->brand?->name}} {{$job_sheet->deviceModel?->name}}
@endif @if(!empty($jobsheet_settings['show_password_in_label']) && !empty($job_sheet->security_pwd)) @lang('lang_v1.password'): {{$job_sheet->security_pwd}}
@endif @if(!empty($job_sheet->security_pattern)) @lang('repair::lang.security_pattern_code'): {{$job_sheet->security_pattern}}
@endif @if(!empty($jobsheet_settings['show_problem_in_label'])) @lang('repair::lang.problem'): @php $defects = json_decode($job_sheet->defects, true); @endphp @if(!empty($defects)) @foreach($defects as $product_defect) {{$product_defect['value']}} @if(!$loop->last) {{','}} @endif @endforeach @endif
@endif @if(!empty($jobsheet_settings['show_sales_person_in_label'])) @lang('repair::lang.sales_person'): {{$job_sheet->createdBy->user_full_name}}
@endif @if(!empty($jobsheet_settings['show_status_in_label'])) @lang('sale.status'): {{$job_sheet->status->name ?? ''}}
@endif @if(!empty($jobsheet_settings['show_due_date_in_label'])) @lang('lang_v1.due_date'): @if(!empty($job_sheet->delivery_date)) {{@format_datetime($job_sheet->delivery_date)}}
@endif
@endif @if(!empty($jobsheet_settings['show_technician_in_label'])) @lang('repair::lang.technician'): {{$job_sheet->technician->user_full_name ?? ''}}
@endif @if(!empty($jobsheet_settings['show_sr_no_in_label'])) @lang('repair::lang.imei_sr_no'): {{$job_sheet->serial_no ?? ''}}
@endif @if(!empty($jobsheet_settings['show_customer_name_in_label'])) @lang('contact.customer'): {{$job_sheet->customer->name}}
@endif @if(!empty($jobsheet_settings['show_customer_address_in_label'])) {!!implode(', ', $job_sheet->customer->contact_address_array) !!}
@endif @if(!empty($jobsheet_settings['show_customer_phone_in_label'])) {{$job_sheet->customer->mobile}}, @endif @if(!empty($jobsheet_settings['show_customer_alt_phone_in_label'])) {{$job_sheet->customer->alternate_number}} @endif @if(!empty($jobsheet_settings['show_customer_email_in_label'])) {{$job_sheet->customer->email}} @endif