<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title>{{ $serviceComplaint->id }}</title>
    <style type="text/css" media="all">
        .bg-lightgray {
            background-color: #a0a0a0;
        }

        .bg-white {
            background-color: #fff;
        }

        .h3 {
            font-weight: normal;
        }

        .h4 {
            font-weight: normal;
        }

        .border {

            margin: 0px 0;
            font-size: 1em;
            font-family: sans-serif;
            min-width: 400px;
            margin: 0;
            line-height: 0.9;
            color: #212529;
            text-align: left;
            font-family: sans-serif;
            font-size: 12px;
            border: 1px;

        }

        .notes {

            margin: 0px 0;
            font-size: 1em;
            font-family: sans-serif;
            min-width: 400px;
            margin: 0;
            line-height: 1;
            color: #212529;
            text-align: left;
            font-family: sans-serif;
            font-size: 12px;

        }

        .border thead tr {
            background-color: #009879;
            color: #ffffff;
            text-align: left;
        }

        .border th,
        .border td {
            text-align: left;
            border: 1px;
            border-color: #000;

        }

        .border tbody tr {
            border-bottom: 0px solid #000000;
        }

        .border tbody tr:nth-of-type(even) {
            background-color: #f3f3f3;
        }

        .border tbody tr:last-of-type {
            border-bottom: 2px solid #009879;
        }

        .table {
            text-align: left;
            border: 1px;
            border-color: #000;
        }

        .page-break {
            page-break-after: always;
        }

        body {
            margin: 0;
            line-height: 1;
            color: #212529;
            text-align: left;
            font-family: sans-serif;
            font-size: 12px;

        }
    </style>
</head>

<body
    style="margin: 0;
            line-height: 1;
            color: #212529;
            text-align: left;
            font-family: sans-serif;
            font-size: 12px;">

    <div class="card">
        <div class="card-header">
            <table class="table table-bordered table-striped" width=100%>
                <tr>
                    <td width="25%"></td>
                    <td colspan="2">
                        <img width="100%"
                            src='data:image/png;base64, '>
                    </td>
                    <td align="right">
                        <img width="100%"
                            src='data:image/jpeg;base64, '>

                    </td>
                </tr>
                <tr>
                    <td width="25%"></td>
                    <td>
                        Plot no- 48, Queen Street,<br>
                        VGN Summerdale,PHASE-2,<br>Kovur, Chennai-600128
                    </td>
                    <td>E-Mail: serviceteam@fusionengg.in<br>
                        Service Help Line No: 91766 61387 / 91766 66883
                    </td>


                </tr>
            </table>

        </div>

        <table width=100% border="2px" border-color="black">
            <tr>
                <td><br>{{ trans('cruds.serviceComplaint.fields.service_report_number') }}: {{ $serviceComplaint->id }}
                </td>
                <td style="text-align: center;">
                    <h1> Field Service Report</h1>
                </td>
                <td colspan="3" style="text-align: right;">
                    {{ trans('cruds.serviceComplaint.fields.service_date') }}: {{ $serviceComplaint->service_date }}
                </td>
            </tr>
            <tr>
                <td colspan="5" style="vertical-align: top;"><b>Customer Name and Address</b>
                    <br><br>
                    {{ $serviceComplaint->client->company_name ?? '' }}
                    <br><br>
                    {{ $serviceComplaint->client->company_address ?? '' }}
                    <br><br>
                    {{ $serviceComplaint->client->company_email ?? '' }}
                    <br><br>

                </td>
            </tr>
            <tr>
                <td colspan="5">
                    <!--- Equipment Details -->
                    <table width="100%">
                        <tr>
                            <th>Equipment Details</th>
                            <td>{{ trans('cruds.serviceComplaint.fields.air_compressor') }}</td>
                            <td>{{ trans('cruds.serviceComplaint.fields.airdryer') }} </td>
                            <td>{{ trans('cruds.serviceComplaint.fields.filter') }} </td>
                            <td>{{ trans('cruds.serviceComplaint.fields.eco_drain') }} </td>
                            <td>{{ trans('cruds.serviceComplaint.fields.air_receiver') }} </td>
                        </tr>

                        <tr>
                            <th>Model</th>

                            <td>
                                @if (isset($serviceComplaint->asset) && $serviceComplaint->asset->air_compressor_id)
                                    <span class="serial-number"><span
                                            class="text-primary">{{ $serviceComplaint->asset->air_compressor->name ?? '' }}</span></span>
                                    <span class="part-number"><span
                                            class="text-success">{{ $serviceComplaint->asset->air_compressor->model ?? '' }}</span></span>
                                @elseif(isset($serviceComplaint->air_compressor_name))
                                    <span class="serial-number"><span
                                            class="text-primary">{{ $serviceComplaint->air_compressor_name }}</span></span>
                                @endif
                            </td>
                            <td>
                                @if (isset($serviceComplaint->dryer_asset) && isset($serviceComplaint->dryer_asset->airdryer))
                                    <span class="serial-number"><span
                                            class="text-primary">{{ $serviceComplaint->dryer_asset->airdryer->name ?? '' }}</span></span>
                                    <span class="part-number"><span
                                            class="text-success">{{ $serviceComplaint->dryer_asset->airdryer->model ?? '' }}</span></span>
                                @elseif(isset($serviceComplaint->air_dryer_name))
                                    <span class="serial-number"><span
                                            class="text-primary">{{ $serviceComplaint->air_dryer_name }}</span></span>
                                @endif
                            </td>
                            <td>
                                @if (isset($serviceComplaint->filter_asset) && isset($serviceComplaint->filter_asset->filter))
                                    <span class="serial-number"><span
                                            class="text-primary">{{ $serviceComplaint->filter_asset->filter->name ?? '' }}</span></span>
                                    <span class="part-number"><span
                                            class="text-success">{{ $serviceComplaint->filter_asset->filter->model ?? '' }}</span></span>
                                @elseif(isset($serviceComplaint->filter_name))
                                    <span class="serial-number"><span
                                            class="text-primary">{{ $serviceComplaint->filter_name }}</span></span>
                                @endif
                            </td>
                            <td>
                                @if (isset($serviceComplaint->ecodrain_asset) && isset($serviceComplaint->ecodrain_asset->eco_drain))
                                    <span class="serial-number"><span
                                            class="text-primary">{{ $serviceComplaint->ecodrain_asset->eco_drain->name ?? '' }}</span></span>
                                    <span class="part-number"><span
                                            class="text-success">{{ $serviceComplaint->ecodrain_asset->eco_drain->model ?? '' }}</span></span>
                                @elseif(isset($serviceComplaint->eco_drain_name))
                                    <span class="serial-number"><span
                                            class="text-primary">{{ $serviceComplaint->eco_drain_name }}</span></span>
                                @endif
                            </td>
                            <td>
                                @if (isset($serviceComplaint->receiver_asset) && isset($serviceComplaint->receiver_asset->air_receiver))
                                    <span class="serial-number"><span
                                            class="text-primary">{{ $serviceComplaint->receiver_asset->air_receiver->name ?? '' }}</span></span>
                                    <span class="part-number"><span
                                            class="text-success">{{ $serviceComplaint->receiver_asset->air_receiver->model ?? '' }}</span></span>
                                @elseif(isset($serviceComplaint->air_receiver_name))
                                    <span class="serial-number"><span
                                            class="text-primary">{{ $serviceComplaint->air_receiver_name }}</span></span>
                                @endif
                            </td>
                        </tr>

                        <tr>
                            <th>Part No</th>
                            <td>
                                @if (isset($serviceComplaint->asset) && $serviceComplaint->asset->air_compressor_part_no)
                                    <span class="part-number"><span
                                            class="text-success">{{ $serviceComplaint->asset->air_compressor_part_no }}</span></span>
                                @endif
                            </td>
                            <td>
                                @if (isset($serviceComplaint->dryer_asset) && $serviceComplaint->dryer_asset->air_dryer_part_no)
                                    <span class="part-number"><span
                                            class="text-success">{{ $serviceComplaint->dryer_asset->air_dryer_part_no }}</span></span>
                                @endif
                            </td>
                            <td>
                                @if (isset($serviceComplaint->filter_asset) && $serviceComplaint->filter_asset->filter_part_no)
                                    <span class="part-number"><span
                                            class="text-success">{{ $serviceComplaint->filter_asset->filter_part_no }}</span></span>
                                @endif
                            </td>
                            <td>
                                @if (isset($serviceComplaint->ecodrain_asset) && $serviceComplaint->ecodrain_asset->eco_drain_part_no)
                                    <span class="part-number"><span
                                            class="text-success">{{ $serviceComplaint->ecodrain_asset->eco_drain_part_no }}</span></span>
                                @endif
                            </td>
                            <td>
                                @if (isset($serviceComplaint->receiver_asset) && $serviceComplaint->receiver_asset->air_reciever_part_no)
                                    <span class="part-number"><span
                                            class="text-success">{{ $serviceComplaint->receiver_asset->air_reciever_part_no }}</span></span>
                                @endif
                            </td>
                        </tr>

                        <tr>
                            <th>Serial No</th>
                            <td>
                                @if (isset($serviceComplaint->asset) && $serviceComplaint->asset->air_compressor_serial_no)
                                    <span class="serial-number"><span
                                            class="text-primary">{{ $serviceComplaint->asset->air_compressor_serial_no }}</span></span>
                                @endif
                            </td>
                            <td>
                                @if (isset($serviceComplaint->dryer_asset) && $serviceComplaint->dryer_asset->airdryer_serial_no)
                                    <span class="serial-number"><span
                                            class="text-primary">{{ $serviceComplaint->dryer_asset->airdryer_serial_no }}</span></span>
                                @endif
                            </td>
                            <td>
                                @if (isset($serviceComplaint->filter_asset) && $serviceComplaint->filter_asset->filter_serial_no)
                                    <span class="serial-number"><span
                                            class="text-primary">{{ $serviceComplaint->filter_asset->filter_serial_no }}</span></span>
                                @endif
                            </td>
                            <td>
                                @if (isset($serviceComplaint->ecodrain_asset) && $serviceComplaint->ecodrain_asset->eco_drain_serial_no)
                                    <span class="serial-number"><span
                                            class="text-primary">{{ $serviceComplaint->ecodrain_asset->eco_drain_serial_no }}</span></span>
                                @endif
                            </td>
                            <td>
                                @if (isset($serviceComplaint->receiver_asset) && $serviceComplaint->receiver_asset->air_receiver_serial_no)
                                    <span class="serial-number"><span
                                            class="text-primary">{{ $serviceComplaint->receiver_asset->air_receiver_serial_no }}</span></span>
                                @endif
                            </td>
                        </tr>

                        <tr>
                            <th>Running Hrs.</th>
                            <td>
                                @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                                    @if ($value['checklist_name_id'] == 1141)
                                        {{ $value['checklist_value_text_1'] }}
                                    @endif
                                @endforeach
                            </td>
                            <td>
                                @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                                    @if ($value['checklist_name_id'] == 1142)
                                        {{ $value['checklist_value_text_1'] }}
                                    @endif
                                @endforeach
                            </td>
                            <td>
                                @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                                    @if ($value['checklist_name_id'] == 1143)
                                        {{ $value['checklist_value_text_1'] }}
                                    @endif
                                @endforeach
                            </td>
                            <td>
                                @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                                    @if ($value['checklist_name_id'] == 1144)
                                        {{ $value['checklist_value_text_1'] }}
                                    @endif
                                @endforeach
                            </td>
                            <td>
                                @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                                    @if ($value['checklist_name_id'] == 1145)
                                        {{ $value['checklist_value_text_3'] }}
                                    @endif
                                @endforeach
                            </td>
                        </tr>

                        <tr>
                            <th>Load Hrs.</th>
                            <td>
                                @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                                    @if ($value['checklist_name_id'] == 1141)
                                        {{ $value['checklist_value_text_2'] }}
                                    @endif
                                @endforeach
                            </td>
                            <td>
                                @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                                    @if ($value['checklist_name_id'] == 1142)
                                        {{ $value['checklist_value_text_2'] }}
                                    @endif
                                @endforeach
                            </td>
                            <td>
                                @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                                    @if ($value['checklist_name_id'] == 1143)
                                        {{ $value['checklist_value_text_2'] }}
                                    @endif
                                @endforeach
                            </td>
                            <td>
                                @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                                    @if ($value['checklist_name_id'] == 1144)
                                        {{ $value['checklist_value_text_2'] }}
                                    @endif
                                @endforeach
                            </td>
                            <td>
                                @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                                    @if ($value['checklist_name_id'] == 1145)
                                        {{ $value['checklist_value_text_2'] }}
                                    @endif
                                @endforeach
                            </td>
                        </tr>

                        <tr>
                            <th>Mfg Year</th>
                            <td>{{ $serviceComplaint->asset->air_compressor->mfg_year ?? '' }}</td>
                            <td>{{ $serviceComplaint->asset->airdryer->mfg_year ?? '' }}</td>
                            <td>{{ $serviceComplaint->asset->filter->mfg_year ?? '' }}</td>
                            <td>{{ $serviceComplaint->asset->eco_drain->mfg_year ?? '' }}</td>
                            <td>{{ $serviceComplaint->asset->air_receiver->mfg_year ?? '' }}</td>
                        </tr>

                        <tr>
                            <th>Motor Starts</th>
                            <td>
                                @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                                    @if ($value['checklist_name_id'] == 1146)
                                        {{ $value['checklist_value_text_1'] }}
                                    @endif
                                @endforeach
                            </td>
                            <td>
                                @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                                    @if ($value['checklist_name_id'] == 1146)
                                        {{ $value['checklist_value_text_2'] }}
                                    @endif
                                @endforeach
                            </td>
                            <td>

                            </td>
                            <td>

                            </td>
                            <td>
                                @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                                    @if ($value['checklist_name_id'] == 1146)
                                        {{ $value['Remarks'] }}
                                    @endif
                                @endforeach
                            </td>
                        </tr>

                        <tr>
                            <th>Load Value On</th>

                            <td>
                                @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                                    @if ($value['checklist_name_id'] == 1141)
                                        {{ $value['Remarks'] }}
                                    @endif
                                @endforeach
                            </td>
                            <td>
                                @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                                    @if ($value['checklist_name_id'] == 1142)
                                        {{ $value['Remarks'] }}
                                    @endif
                                @endforeach
                            </td>
                            <td>
                                @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                                    @if ($value['checklist_name_id'] == 1143)
                                        {{ $value['Remarks'] }}
                                    @endif
                                @endforeach
                            </td>
                            <td>
                                @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                                    @if ($value['checklist_name_id'] == 1144)
                                        {{ $value['Remarks'] }}
                                    @endif
                                @endforeach
                            </td>
                            <td>
                                @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                                    @if ($value['checklist_name_id'] == 1145)
                                        {{ $value['Remarks'] }}
                                    @endif
                                @endforeach
                            </td>
                        </tr>
                        <tr>
                            <th>Start Up Date</th>

                            <td>{{ $serviceComplaint->asset->commisioned_date ?? '' }}</td>
                            <td>{{ $serviceComplaint->asset->commisioned_date ?? '' }}</td>
                            <td>{{ $serviceComplaint->asset->commisioned_date ?? '' }}</td>
                            <td>{{ $serviceComplaint->asset->commisioned_date ?? '' }}</td>
                            <td>{{ $serviceComplaint->asset->commisioned_date ?? '' }}</td>
                        </tr>

                    </table>
                    <!--- Equipment Details -->
                </td>
            </tr>
            <tr>
                <td>
                    Visit: {{ $serviceComplaint->visit_type->name ?? '' }}




                </td>
                <td colspan="2"> Nature of the Problem: {{ Str::before($serviceComplaint->complaint, '#') }}</td>
            </tr>


        </table>



        <br><br>

        <!-- Checklist Include -->

        @includeIf('admin.serviceComplaints.relationships.complaintChecklistReportsPDF', [
            'checklistReports' => $serviceComplaint->complaintChecklistReports,
        ])

        <!-- Checklist Include -->
        <br>
        <!-- Bottom Tables Start -->
        <table class="table table-bordered table-striped" width=100% border="2px" border-color="black">
            <tr>
                <td>
                    <!-- Guidelines -->
                    Guidelines For Performance Improvement Work Remarks:
                    @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                        @if ($value['checklist_name_id'] == 1199)
                            {{ $value['checklist_value_text_1'] }} {{ $value['checklist_value_text_2'] }}
                            {{ $value['Remarks'] }}
                        @endif
                    @endforeach
                </td>
                <td>
                    <!-- Customer Remarks -->
                    Customer Remarks
                    @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                        @if ($value['checklist_name_id'] == 1200)
                            {{ $value['checklist_value_text_1'] }} {{ $value['checklist_value_text_2'] }}
                            {{ $value['Remarks'] }}
                        @endif
                    @endforeach
                </td>
            </tr>
        </table>

        <br><br>
        <table class="table table-bordered table-striped" width=100% border="2px" border-color="black">
            <tr>
                <td colspan="3">List of Spare Parts Consumed</td>
                <td colspan="2">List of Spare Required for Next Visit</td>
                <td>Required Date:
                    @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                        @if ($value['checklist_name_id'] == 1197)
                            {{ $value['checklist_value_text_1'] }}
                        @endif
                    @endforeach
                </td>
            </tr>
            <tr>
                <td>Consumed Parts Description</td>
                <td>Part No</td>
                <td>Qty</td>
                <td>Required Parts Description</td>
                <td>Part Number</td>
                <td>Qty </td>
            </tr>
            @php
                $consumedParts = [];
                $requiredParts = [];

                // Collect consumed parts data and split by comma
                foreach ($serviceComplaint->complaintChecklistReports as $key => $value) {
                    if ($value['checklist_name_id'] == 1195) {
                        $descriptions = explode(',', $value['checklist_value_text_1']);
                        $partNos = explode(',', $value['checklist_value_text_2']);
                        $quantities = explode(',', $value['Remarks']);

                        // Trim whitespace and create individual parts
                        for ($j = 0; $j < count($descriptions); $j++) {
                            $consumedParts[] = [
                                'description' => trim($descriptions[$j] ?? ''),
                                'part_no' => trim($partNos[$j] ?? ''),
                                'qty' => trim($quantities[$j] ?? ''),
                            ];
                        }
                    }
                }

                // Collect required parts data and split by comma
                foreach ($serviceComplaint->complaintChecklistReports as $key => $value) {
                    if ($value['checklist_name_id'] == 1196) {
                        $descriptions = explode(',', $value['checklist_value_text_1']);
                        $partNos = explode(',', $value['checklist_value_text_2']);
                        $quantities = explode(',', $value['Remarks']);

                        // Trim whitespace and create individual parts
                        for ($j = 0; $j < count($descriptions); $j++) {
                            $requiredParts[] = [
                                'description' => trim($descriptions[$j] ?? ''),
                                'part_no' => trim($partNos[$j] ?? ''),
                                'qty' => trim($quantities[$j] ?? ''),
                            ];
                        }
                    }
                }

                $maxRows = max(count($consumedParts), count($requiredParts));
            @endphp

            @for ($i = 0; $i < $maxRows; $i++)
                <tr>
                    <td>
                        {{ isset($consumedParts[$i]) ? $consumedParts[$i]['description'] : '' }}
                    </td>
                    <td>
                        {{ isset($consumedParts[$i]) ? $consumedParts[$i]['part_no'] : '' }}
                    </td>
                    <td>
                        {{ isset($consumedParts[$i]) ? $consumedParts[$i]['qty'] : '' }}
                    </td>
                    <td>
                        {{ isset($requiredParts[$i]) ? $requiredParts[$i]['description'] : '' }}
                    </td>
                    <td>
                        {{ isset($requiredParts[$i]) ? $requiredParts[$i]['part_no'] : '' }}
                    </td>
                    <td>
                        {{ isset($requiredParts[$i]) ? $requiredParts[$i]['qty'] : '' }}
                    </td>
                </tr>
            @endfor
        </table>

        <br><br>
        <table class="table table-bordered table-striped" width=100% border="2px" border-color="black">
            <tr>
                <td>Start of Work</td>
                <td>End of Work</td>
                <td>Travel Time</td>
                <td>Travel Km</td>
                <td>Date</td>
                <td>Technician Name</td>
                <td>Customer Contact Person</td>
            </tr>
            <tr>
                <td>
                    <!-- Consumed Parts Description -->
                    @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                        @if ($value['checklist_name_id'] == 1191)
                            {{ $value['checklist_value_text_1'] }}
                        @endif
                    @endforeach
                </td>
                <td>
                    <!-- Part No -->
                    @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                        @if ($value['checklist_name_id'] == 1192)
                            {{ $value['checklist_value_text_1'] }}
                        @endif
                    @endforeach
                </td>
                <td>
                    <!-- Qty -->

                    @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                        @if ($value['checklist_name_id'] == 1193)
                            {{ $value['checklist_value_text_1'] }}
                        @endif
                    @endforeach
                </td>
                <td>
                    @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                        @if ($value['checklist_name_id'] == 1194)
                            {{ $value['checklist_value_text_1'] }}
                        @endif
                    @endforeach
                </td>
                <td>

                    <!-- Date -->{{ $serviceComplaint->service_date }}

                </td>
                <td>
                    <!-- Technician Name  -->
                    {{ $serviceComplaint->enginner_assigned->name ?? '' }}
                </td>
                <td>
                    <!-- Customer Contact  -->
                    Contact Person: {{ $serviceComplaint->location->contact_first_name ?? '' }}

                    <br><br>
                    Mobile: {{ $serviceComplaint->location->contact_phone_1 ?? '' }}
                    <br><br>
                    Email: {{ $serviceComplaint->client->company_email ?? '' }}
                </td>
            </tr>
        </table>


        <br><br>
        <table class="table table-bordered table-striped" width=100% border="2px" border-color="black">
            <tr>
                <td>Next Action</td>
                <td>Comlpaint Status</td>

            </tr>
            <tr>
                <td>
                    <!-- Next Action -->
                    @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                        @if ($value['checklist_name_id'] == 1198)
                            {{ $value['checklist_value_text_1'] }}{{ $value['checklist_value_text_2'] }}{{ $value['Remarks'] }}
                        @endif
                    @endforeach
                </td>
                <td>
                    <!-- Comlpaint Status Name -->
                    {{ $serviceComplaint->status->name ?? '' }}
                </td>



            </tr>
        </table>

        <br><br>

        <!-- Signature Table -->

        <table class="table table-bordered table-striped" width=100% border="2px" border-color="black">
            <tr>
                <td>Work Done</td>
                <td>Work Accepted</td>
            </tr>
            <tr>
                <td>
                    <!-- Work Done -->
                    @if ($serviceComplaint->status->name == 'Yes')
                        Yes
                    @else
                        No
                    @endif
                    <br><br>
                    <img class="" src="{{ $user_sign[0] ?? '' }}" width="100" height="50" alt="photo">

                </td>
                <td>
                    @foreach ($serviceComplaint->complaintChecklistReports as $key => $value)
                        @if ($value['checklist_name_id'] == 1201)
                            <img class="" src="{{ $value['Remarks'] ?? '' }}" width="40" alt="photo">
                        @endif
                    @endforeach
                </td>
            </tr>
            <tr>
                <td>Technician Signature</td>
                <td>Customer Signature</td>
            </tr>
        </table>

        <!-- Signature Table -->

        <!-- Complaint Status Close -->

        <!-- Complaint Status Close -->



        <!-- Office User Only Table -->



        <table class="table table-bordered table-striped" width=100% border="2px" border-color="black">
            <tr>
                <td colspan="4">Office Use Only</td>
            </tr>
            <tr>
                <td>
                    <!-- Work Done -->
                    Report Verified:
                    @if ($serviceComplaint->status->name == 'Yes')
                        Yes
                    @else
                        No
                    @endif
                    <br><br>
                </td>
                <td colspan="3"><br><br>
                    Verified By: {{ $serviceComplaint->supervisor_assigned->name ?? '' }}
                </td>
            </tr>
        </table>




</body>

</html>
