{{ $complain->company->company_address ?? '' }}
{{ $complain->company->area->area_name ?? '' }},
{{ $complain->company->city->city_name ?? '' }},
{{ $complain->company->state->state_name ?? '' }},
{{ $complain->company->country->country_name ?? '' }},
{{ $complain->company->company_pincode ?? '' }}
@if ( $complain->company->company_gstin)
GST No: {{ $complain->company->company_gstin ?? '' }},
@endif
Email: {{ $complain->company->company_email ?? '' }}
Phone No: {{ $complain->company->company_phone_no_1 ?? '' }}, {{ $complain->company->company_phone_no_2 ?? '' }}
To,
{{ $complain->customerAddress->customer_address ?? '' }},
{{ $complain->customerAddress->area->area_name ?? '' }},
{{ $complain->customerAddress->city->city_name ?? '' }},
{{ $complain->customerAddress->state->state_name ?? '' }},
{{ $complain->customerAddress->customer_pincode ?? '' }},
{{ $complain->customerAddress->country->country_name ?? '' }}
@if ($complain->customer->customer_phone_no_1)
Phone No: {{ $complain->customerAddress->customer_address_phone_no ?? $complain->customer->customer_phone_no_1 }}
@endif
@if ($complain->customer->customer_gstin)
GST No: {{ $complain->customer->customer_gstin ?? '' }}
@endif
| Complain No | {{ $complain->complain_prefix }}/{{ $complain->complain_financial_year }}/{{ $complain->complain_number }} |
| Complain Register Date | {{ \Carbon\Carbon::parse($complain->complain_date)->format('d/m/Y') ?? '' }} |
| Complain Reported By | {{$complain->complain_reported_by}} |
| Technician Name | {{$complain->technician->employee_first_name}} {{$complain->technician->employee_last_name}} |
| Machine No | AMC Status | {{--Product Category | --}}Product Brand | AC Type | {{--AC Indoor Type | AC Location Area | --}}Model No | Serial No | Complain Type | Complain Remarks |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $complainItem->serviceItems->serviceMachines->machine_no ?? '' }} | @endif {{-- AMC Status Column --}} @if ($isSameAmc && $index === 0)
{{ $firstAmc['amc_status'] }} ({{ $firstAmc['amc_type'] }}) Start Date: {{ $firstAmc['start'] }} End Date: {{ $firstAmc['end'] }} |
@elseif (!$isSameAmc)
@php
$amcItem = $filteredItems->firstWhere('service_id', $complainItem->service_id);
@endphp
@if ($amcItem)
{{ $amcItem->amc_status }} ({{ $amcItem->serviceItems->service->amc_type ?? '' }}) Start Date: {{ \Carbon\Carbon::parse($amcItem->serviceItems->service->amc_start_date)->format('d/m/Y') ?? '' }} End Date: {{ \Carbon\Carbon::parse($amcItem->serviceItems->service->amc_end_date)->format('d/m/Y') ?? '' }} @endif |
@endif
{{ $complainItem->serviceItems->product_brand->product_brand_name ?? '' }} | {{ $complainItem->serviceItems->service_item_type }} | {{ $complainItem->serviceItems->model_no }} | {{ $complainItem->serviceItems->serial_no }} | @if ($index === 0){{ $complainItem->complain_type }} | {{ $complainItem->remarks }} | @endif
| Machine No | Technical Parameter | Before | After | Part Name | Requirement | Action | Breakdown Remarks |
|---|---|---|---|---|---|---|---|
| {{ $breakdown->complainItems->machine->machine_no }} | @endif {{-- Technical Parameter --}}{{ $parameters[$i][0] ?? '' }} | {{ $parameters[$i][1] ?? '' }} | {{ $parameters[$i][2] ?? '' }} | {{-- Parts & Material --}}{{ $parts[$i][0] ?? '' }} | {{ $parts[$i][1] ?? '' }} | {{ $parts[$i][2] ?? '' }} | @if ($i === 0){{ $breakdown->remarks }} | @endif