@extends('layouts.master') @section('title') Complain Detail @endsection @section('page-title') Complain Detail @endsection @section('body')
@endsection @section('content')
{{ optional($complain->company)->company_address }}, {{ optional(optional($complain->company)->area)->area_name }}, {{ optional(optional($complain->company)->city)->city_name }}, {{ optional(optional($complain->company)->state)->state_name }}, {{ optional(optional($complain->company)->country)->country_name }}, {{ optional($complain->company)->company_pincode }}
GST No: {{ optional($complain->company)->company_gstin }}, Email: {{ optional($complain->company)->company_email }}, Phone No: {{ $complain->company->company_phone_no_1 ?? '' }}, {{ $complain->company->company_phone_no_2 ?? '' }}
{{ $complain->customerAddress->customer_address }},
{{ $complain->customerAddress->customer_pincode }},
{{ $complain->customerAddress->area->area_name }},
{{ $complain->customerAddress->city->city_name }},
{{ $complain->customerAddress->state->state_name }},
{{ $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}} |
| Assigned Technician | {{$complain->technician->employee_first_name}} {{$complain->technician->employee_last_name}} |
| Completion Date | {{ \Carbon\Carbon::parse($complain->complain_completion_date)->format('d-m-Y') }} |
| Completion Remarks | {{$complain->complain_completion_remarks}} |
| Machine No | AMC Status | Product Brand | AC Type | Model No | Serial No | Complain Type | Complain Remarks | |
|---|---|---|---|---|---|---|---|---|
| {{ $complainItem->serviceItems->serviceMachines->machine_no ?? '' }} | @endif {{-- AMC Status --}} @if ($isSameAmc && $index === 0)
{{ $firstAmc['amc_status'] }} ({{ $firstAmc['amc_type'] }}) Start Date: {{ $firstAmc['start'] }} End Date: {{ $firstAmc['end'] }} |
@elseif (!$isSameAmc)
{{ $complainItem->amc_status }} ({{ $complainItem->serviceItems->service->amc_type ?? '' }}) Start Date: {{ \Carbon\Carbon::parse($complainItem->serviceItems->service->amc_start_date)->format('d/m/Y') ?? '' }} End Date: {{ \Carbon\Carbon::parse($complainItem->serviceItems->service->amc_end_date)->format('d/m/Y') ?? '' }} |
@endif
{{-- Other columns --}}
{{ $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
| Technician | Date | Note |
|---|---|---|
| {{ $followUp->technician->employee_first_name }} {{ $followUp->technician->employee_last_name }} | {{\Carbon\Carbon::parse($followUp->follow_up_date)->format('d-m-Y')}} | {{ $followUp->follow_up_note }} |
Customer Name ____________________
Customer Sign ____________________
Customer Remarks ____________________
In Time ____________________
Out Time ____________________