<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Med X Eligibility</title>
        <style>
            * {
            margin: 0;
            text-indent: 0;
            }
            .eligibility-area, .eligibility-list-area thead tr th{
            margin-bottom: 15px;
            margin-right: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
            }
            .border-redius {
            border: 0 solid #1c3d6e; 
            background: #f5f7f7;
            padding: 20px 20px;
            margin: 0 10px;
            color: #1c3d6e;
            margin-top:20px;
            font-size:12px;
            }
            .border-redius h2 {
            font-size: 16px;
            margin-bottom: 4px;
            }
            .border-redius img {
            float: left;
            font-size: 28px;
            min-height: 53px;
            line-height: 53px;
            color: #1c3d6e;
            margin-right: 20px;
            }
            .plan-area-detail td {
            border: 0;
            }
            .plan-area-detail.message span {
            width: 100%;
            margin-bottom: 10px;
            padding-bottom: 10px;
            font-weight: 400;
            }
            .eligibility-title {
            font-size: 18px;
            color: #1c3d6e;
            margin-top: 20px;
            margin-bottom: 10px;
            margin-left: 10px;
            }
            .eligibility-list-area thead tr th {
            color: #1c3d6e;
            font-weight: 700;
            padding: 8px 10px;
            background: #34b6b340;
            border: 0;
            line-height: 1.2;
            font-size: 16px;
            }
            .eligibility-list-area,
            .eligibility-list-area thead tr th,
            .eligibility-list-area tr td strong,
            .eligibility-title,
            .other-list-tbl,
            .other-list-tbl tr th {
            font-family: "-apple-system,BlinkMacSystemFont," Segoe UI ",Roboto," Helvetica Neue ",Arial," Noto Sans ",sans-serif," Apple Color Emoji "," Segoe UI Emoji "," Segoe UI Symbol "," Noto Color Emoji "";
            }
            .eligibility-list table,
            .eligibility-list-area table {
            border: 1px solid #e8ebeb;
            }
            .eligibility-list-area table tr td {
            border-bottom: 1px solid #e8ebeb;
            font-size: 12px;
            padding: 5px 10px;
            }
            .group-th .bg-none {
            background: 0 0;
            }
            .group-th .bg-th {
            background: #f5f7f7;
            }
            table thead tr .border-right {
            border-right: 1px solid #e8ebeb;
            }
            table tr.border-bottom-none td {
            border-bottom: 0;
            }
            table tr.border-top-none td {
            border-top: 0;
            padding-top: 0;
            }
            .refresh {
            align-content: space-around;
            border: 1px solid #34b6b3;
            width: 40px;
            text-align: center;
            border-radius: 5px;
            height: 36px;
            }
            .eligibility-list-area thead tr th {
            color: #1c3d6e;
            font-weight: bold;
            padding: 8px 10px;
            background: #34b6b340;
            border: 0px;
            line-height: 1.2;
            font-size: 12px;
            }
            .eligibility-list-area tr td {
            border-bottom: 1px solid #e8ebeb;
            font-size: 12px;
            padding: 5px 10px;
            color: #646363;
            }
            .eligibility-list-area th,
            .other-list-tbl tr th {
            color: #646363;
            font-weight: bold;
            padding: 8px 10px;
            border: 0;
            line-height: 1.2;
            text-align:left;
            }
            .eligibility-list-area table th {
            font-size: 14px;
            background: #34b6b340;
            text-align: left;
            }
            .eligibility-list-area tr td strong {
            font-weight: 700 !important;
            font-size: 12px;
            color: #646363;
            }
            .other-list-tbl {
            border: 1px solid #e8ebeb;
            margin-left: 10px;
            padding-right: 10px;
            }
            .other-list-tbl tr th {
            font-size: 16px;
            }
            .plan-area {
            padding: 0px;
            margin: 10px 0;
            border: 1px solid #e8ebeb;
            background:#f5f7f7;
            font-size: 14px;
            }
            .plan-area h2 {
            font-size: 18px;
            color: #1c3d6e;
            width: 100%;
            padding: 8px 10px;
            background: #34b6b340;
            }
            .plan-area span {
            /*font-size: 16px;*/
            color: #646363;
            font-weight: 500;
            }
            .plan-area p {
            margin-bottom: 8px;
            }
        </style>
    </head>
    <body>
        <div class="content" styale=" width: 100%;    overflow-x: auto;    white-space: nowrap;">
            @if(!empty($response['subscriber']))
            @php
            $subscriberData = $response['subscriber'];
            @endphp
            <table class="eligibility-area w-100" style="border-spacing: 0;  border-collapse: collapse; width:100%; white-space:nowrap;" cellspacing="0" cellpadding="1">
                <tr>
                    <td>
                        <div class="border-redius">
                            <!--<img height="50px" width="50px" src="{{ $images['how_to_reg_icon'] }}" alt="i">-->
                            <h2>{{$response['status'] ?? '-'}}</h2>
                            <span>Coverage Status</span>
                        </div>
                    </td>
                    <td>
                        <div class="border-redius">
                            <!--<img height="50px" width="50px" src="{{ $images['medical_services_icon'] }}" alt="i">-->
                            <h2>{{ $subscriberData['plan']['subscriberId'] }}</h2>
                            <span>Subscriber ID</span>
                        </div>
                    </td>
                    <td>
                        <div class="border-redius">
                            <!--<img height="50px" width="50px" src="{{ $images['confirmation_number_icon'] }}" alt="i">-->
                            <h2>{{ $subscriberData['plan']['groupNumber'] }}</h2>
                            <span>Group Number</span>
                        </div>
                    </td>
                    <td>
                        <div class="border-redius">
                            <!--<img height="50px" width="50px" src="{{ $images['date_range_icon'] }}" alt="i">-->
                            <h2>{{ $subscriberData['plan']['effectiveDateFrom'] }}</h2>
                            <span>Effective Date From</span>
                        </div>
                    </td>
                </tr>
            </table>
            @endif
            @if(!empty($response['subscriber']) && !empty($response['patient']))
            <table class="eligibility-list-area w-100" style="border-spacing: 0; border-collapse:collapse;" cellspacing="0" cellpadding="10" >
                <tr>
                    @if(!empty($response['subscriber']))
                    <td style="padding-right:15px; border:0;">
                        <table class="table w-100 p-0" style="border-spacing: 0;  border-collapse: collapse;">
                            <thead>
                                <tr class="plan-area-detail">
                                    <th scope="col" class="border-0" colspan="2" align="left">Plan Detail</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr class="plan-area-detail">
                                    <td scope="col" >Member Name</td>
                                    <td scope="col" align="right"><strong>{{ $response['subscriber']['firstName'] }} {{ $response['subscriber']['lastName'] }}</strong></td>
                                </tr>
                                <tr>
                                    <td scope="col" >Member Address</td>
                                    <td scope="col" align="right" ><strong>{{ implode(', ', array_filter($response['subscriber']['address'] ?? [])) }}</strong></td>
                                </tr>
                                <tr>
                                    <td >Date Of Birth</td>
                                    <td align="right"><strong>{{ $response['subscriber']['dateOfBirth'] }}</strong></td>
                                </tr>
                                <tr>
                                    <td >Group Name</td>
                                    <td align="right"><strong>{{ $response['subscriber']['plan']['groupName'] }}</strong></td>
                                </tr>
                                <tr>
                                    <td >Plan Name</td>
                                    <td align="right"><strong>{{ $response['subscriber']['plan']['planName'] }}</strong></td>
                                </tr>
                                <tr>
                                    <td >Plan Number</td>
                                    <td align="right"><strong>{{ $response['subscriber']['plan']['planNumber'] }}</strong></td>
                                </tr>
                                <tr>
                                    <td >Coverage Indicator</td>
                                    <td align="right"><strong>{{ $response['subscriber']['plan']['coverageIndicator'] }}</strong></td>
                                </tr>
                                <tr>
                                    <td >Service Type</td>
                                    <td align="right"><strong>{{ implode(', ', array_filter($response['planBenefits']['serviceTypes'] ?? [])) }}</strong></td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                    @endif
                    <td style="vertical-align: top; border:0;">
                        @if(!empty($response['patient']))
                        <table class="table w-100 p-0 " style="border-spacing: 0;  border-collapse: collapse;">
                            <thead>
                                <tr class="plan-area-detail">
                                    <th scope="col" class="border-0" colspan="2" align="left">Patient Detail</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td scope="col" >Full Name</td>
                                    <td scope="col" align="right"><strong>{{ $response['patient']['firstName'] }} {{ $response['patient']['lastName'] }}</strong></td>
                                </tr>
                                <tr>
                                    <td scope="col" >Address</td>
                                    <td scope="col"align="right" ><strong>{{ implode(', ', array_filter($response['patient']['address'] ?? [])) }}</strong></td>
                                </tr>
                                <tr>
                                    <td >Date Of Birth</td>
                                    <td align="right"><strong>{{ $response['patient']['dateOfBirth'] }}</strong></td>
                                </tr>
                                <tr>
                                    <td >Relationship</td>
                                    <td align="right"><strong>{{ $response['patient']['relationship'] }}</strong></td>
                                </tr>
                            </tbody>
                        </table>
                        @endif
                        @if(!empty($response['payer']))
                        <table class="table w-100 p-0 " style="border-spacing: 0; margin-top: 20px; border-collapse: collapse; width:100%; white-space:nowrap;">
                            <thead>
                                <tr class="plan-area-detail">
                                    <th scope="col" class="border-0" colspan="2" align="left">Payer Detail</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td >Payer Id</td>
                                    <td align="right"><strong>{{ $response['payer']['id'] }}</strong></td>
                                </tr>
                                <tr>
                                    <td >Payer Name</td>
                                    <td align="right"><strong>{{ $response['payer']['name'] }}</strong></td>
                                </tr>
                            </tbody>
                        </table>
                        @endif
                    </td>
                </tr>
            </table>
            @endif
            @if(isset($response['limitationAndMaximum']) && !empty($response['limitationAndMaximum']))
            @php
            $groupedData = [];
            foreach ($response['limitationAndMaximum'] as $entry) {
            if (!isset($entry['amount'])) {
            continue;
            }
            $network = $entry['network'];
            $planCoverage = $entry['planCoverageDescription'];
            $message = $entry['message'];
            if (!isset($groupedData[$network])) {
            $groupedData[$network] = [];
            }
            if (!isset($groupedData[$network][$planCoverage])) {
            $groupedData[$network][$planCoverage] = [
            'Benefit Maximum' => '',
            'Benefit Remaining' => '',
            'Network' => $network
            ];
            }
            if ($message === "Benefit Maximum") {
            $groupedData[$network][$planCoverage]['Benefit Maximum'] = isset($entry['amount']) ? '$' . round($entry['amount']) : '-';
            } elseif ($message === "Benefit Remaining") {
            $groupedData[$network][$planCoverage]['Benefit Remaining'] = isset($entry['amount']) ? '$' . round($entry['amount']) : '-';
            }
            }
            @endphp
            <h2 class="eligibility-title" >Benefit Max & Remaining</h2>
            <table class="eligibility-list-area other-list-tbl  table " style="border:1px solid #e8ebeb; border-spacing: 0;  border-collapse: collapse; width:99%; white-space:nowrap;" cellpadding="10">
                <thead>
                    <tr style="color: #1c3d6e; margin:0px; font-weight: 500; padding: 8px 10px;background: #34b6b340; border: 0px; line-height: 1.2; font-size: 16px;">
                        <th scope="col">Plan Coverage Description</th>
                        <th scope="col">Network</th>
                        <th scope="col">Benefit Maximum</th>
                        <th scope="col">Benefit Remaining</th>
                    </tr>
                </thead>
                <tbody>
                    @if (!empty($groupedData))
                    @foreach ($groupedData as $network => $plans)
                    @foreach ($plans as $planCoverage => $values)
                    <tr>
                        <td>{{ htmlspecialchars($planCoverage) }}</td>
                        <td>{{ htmlspecialchars($values['Network']) }}</td>
                        <td>{{ htmlspecialchars($values['Benefit Maximum']) }}</td>
                        <td>{{ htmlspecialchars($values['Benefit Remaining']) }}</td>
                    </tr>
                    @endforeach
                    @endforeach
                    @else
                    <tr>
                        <td colspan="4" class="text-center">No data available</td>
                    </tr>
                    @endif
                </tbody>
            </table>
            @endif
            @if(isset($response['deductible']) && !empty($response['deductible']))
            @php
            $groupedData = [];
            foreach ($response['deductible'] as $item) {
            if (!isset($item['network'], $item['insuranceType'], $item['planCoverageDescription'], $item['coverageLevel'])) {
            continue;
            }
            $key = $item['network'] . "|" . $item['insuranceType'] . "|" . $item['planCoverageDescription'];
            if (!isset($groupedData[$key])) {
            $groupedData[$key] = [
            'network' => $item['network'],
            'insuranceType' => $item['insuranceType'],
            'planCoverageDescription' => $item['planCoverageDescription'],
            'Individual' => ['amount' => "-", 'remaining' => "-"],
            'Family' => ['amount' => "-", 'remaining' => "-"]
            ];
            }
            if (isset($item['planPeriod']) && $item['planPeriod'] === "Remaining") {
            $groupedData[$key][$item['coverageLevel']]['remaining'] = isset($item['amount']) ? round($item['amount']) : 0;
            } else {
            $groupedData[$key][$item['coverageLevel']]['amount'] = isset($item['amount']) ? round($item['amount']) : 0;
            }
            }
            @endphp
            <h2 class="eligibility-title">Deductible</h2>
            <table class="eligibility-list-area other-list-tbl table " style="border:1px solid #e8ebeb; border-spacing: 0;  border-collapse: collapse; width:99%; " cellpadding="10">
                <thead>
                    <tr class="group-th" style="border-top:1px solid #e8ebeb;">
                        <th scope="col" colspan="3" class="bg-none border-right"></th>
                        <th scope="col" class="text-center border-right" style="background:#f5f7f7;" colspan="2">Individual</th>
                        <th scope="col" class="text-center" style="background:#f5f7f7;" colspan="2">Family</th>
                    </tr>
                    <tr style="color: #1c3d6e;  padding: 8px 10px;background: #34b6b340; border: 0px; line-height: 1.2; font-size: 16px;">
                        <th scope="col">Network</th>
                        <th scope="col">Insurance Type</th>
                        <th scope="col">Plan Coverage</th>
                        <th scope="col" class="text-center">Amount</th>
                        <th scope="col" class="text-center">Remaining</th>
                        <th scope="col" class="text-center">Amount</th>
                        <th scope="col" class="text-center">Remaining</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach($groupedData as $deduct)
                    <tr>
                        <td scope="col" style="padding: .75rem;    vertical-align: top;    border-top: 1px solid #dee2e6;">{{ $deduct['network'] }}</td>
                        <td scope="col" style="padding: .75rem;    vertical-align: top;    border-top: 1px solid #dee2e6;">{{ $deduct['insuranceType'] }}</td>
                        <td scope="col" style="padding: .75rem;    vertical-align: top;    border-top: 1px solid #dee2e6;">{{ $deduct['planCoverageDescription'] ?? '-' }}</td>
                        <td scope="col" class="text-center" style="padding: .75rem;    vertical-align: top;    border-top: 1px solid #dee2e6;">${{ $deduct['Individual']['amount'] }}</td>
                        <td scope="col" class="text-center" style="border-right:1px solid #e8ebeb; padding: .75rem;    vertical-align: top;    border-top: 1px solid #dee2e6;">${{ $deduct['Individual']['remaining'] }}</td>
                        <td scope="col" class="text-center" style="padding: .75rem;    vertical-align: top;    border-top: 1px solid #dee2e6;">${{ $deduct['Family']['amount'] }}</td>
                        <td scope="col" class="text-center" style="padding: .75rem;    vertical-align: top;    border-top: 1px solid #dee2e6;">${{ $deduct['Family']['remaining'] }}</td>
                    </tr>
                    @endforeach
                </tbody>
            </table>
            @endif
            @if(isset($response['coInsurance']) && !empty($response['coInsurance']))
            <h2 class="eligibility-title">Co-Insurance</h2>
            <table class="eligibility-list-area other-list-tbl table w-100 p-0" style="border:1px solid #e8ebeb; border-spacing: 0;  border-collapse: collapse; width:99%;" cellpadding="10">
                <thead>
                    <tr style="color: #1c3d6e; padding: 8px 10px;background: #34b6b340; border: 0px; line-height: 1.2; font-size: 16px;">
                        <th scope="col">Insurance Type</th>
                        <th scope="col">Network</th>
                        <th scope="col">Plan Coverage Description</th>
                        <th scope="col">Percent</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach($response['coInsurance'] as $coinsure)
                    <tr>
                        <td scope="col" style="padding: .75rem;    vertical-align: top;    border-top: 1px solid #dee2e6;">{{ $coinsure['insuranceType'] ?? '-' }}</td>
                        <td scope="col" style="padding: .75rem;    vertical-align: top;    border-top: 1px solid #dee2e6;">{{ $coinsure['network'] ?? '-' }}</td>
                        <td scope="col" style="padding: .75rem;    vertical-align: top;    border-top: 1px solid #dee2e6;">{{ $coinsure['planCoverageDescription'] ?? '-' }}</td>
                        <td scope="col" style="padding: .75rem;    vertical-align: top;    border-top: 1px solid #dee2e6;">{{ $coinsure['percent'] }}%</td>
                    </tr>
                    @endforeach
                </tbody>
            </table>
            @endif
            @if(isset($response['limitationAndMaximum']) && !empty($response['limitationAndMaximum']))
            @php 
            $limitations = array_filter($response['limitationAndMaximum'], function ($maximum) {
            return !isset($maximum['amount']);
            });
            @endphp
            <h2 class="eligibility-title" >Maximums</h2>
            <table class="eligibility-list-area other-list-tbl w-100 table " style="border:1px solid #e8ebeb; border-spacing: 0;  border-collapse: collapse; width:99%;" cellpadding="10">
                <thead>
                    <tr style="color: #1c3d6e; margin:0px; padding: 8px 10px;background: #34b6b340; border: 0px; line-height: 1.2; font-size: 16px;">
                        <th scope="col">Code</th>
                        <th scope="col">Network</th>
                        <th scope="col">Insurance Type</th>
                        <th scope="col">Limitation</th>
                        <th scope="col">Service Dates</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach($limitations as $maximum)
                    @php
                    $border = '';
                    if($maximum['message']){ $border = 'border-bottom:none'; }
                    @endphp
                    <tr style="{{$border}}">
                        <td scope="col" style="padding: .75rem;    vertical-align: top;    border-top: 1px solid #dee2e6;">{{ $maximum['code'] ?? '-' }}</td>
                        <td scope="col" style="padding: .75rem;    vertical-align: top;    border-top: 1px solid #dee2e6;">{{ $maximum['network'] ?? '-' }}</td>
                        <td scope="col" style="padding: .75rem;    vertical-align: top;    border-top: 1px solid #dee2e6;">{{ $maximum['insuranceType'] ?? '-' }}</td>
                        <td>{{!empty($maximum['limitation']) && is_array($maximum['limitation']) ? implode('<br>', $maximum['limitation']) : '-' }}</td>
                        <td>{{!empty($maximum['serviceDates']) && is_array($maximum['serviceDates']) ? implode('<br>', $maximum['serviceDates']) : '-'}}</td>
                    </tr>
                    @if($maximum['message'])
                    <tr style="border-top:none">
                        <td scope="col" colspan="5"><b>Message: </b>{{$maximum['message']}}</td>
                    </tr>
                    ;
                    @endif
                    @endforeach
                </tbody>
            </table>
            @endif
            @if(isset($response['notCovered']) && !empty($response['notCovered']))
            <h2 class="eligibility-title" >Not Covered</h2>
            <table class="eligibility-list-area other-list-tbl w-100 table " id="NotCovered" style="border:1px solid #e8ebeb; border-spacing: 0;  border-collapse: collapse; width:99%;" cellpadding="10">
                <thead>
                    <tr>
                        <th scope="col">Code</th>
                        <th scope="col">Insurance Type</th>
                        <th scope="col">Network</th>
                        <th scope="col">Message</th>
                        <th scope="col">Service Dates</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach($response['notCovered'] as $notCovered)
                    <tr>
                        <td scope="col">{{ $notCovered['code'] ?? '-' }}</td>
                        <td scope="col">{{ $notCovered['insuranceType'] ?? '-' }}</td>
                        <td scope="col">{{ $notCovered['network'] ?? '-' }}</td>
                        <td scope="col">{{ $notCovered['message'] ?? '-' }}</td>
                        <td scope="col">
                            @if(isset($notCovered['serviceDates']) && is_array($notCovered['serviceDates']))
                            {!! implode('<br>', $notCovered['serviceDates']) !!}
                            @else
                            -
                            @endif
                        </td>
                    </tr>
                    @endforeach
                </tbody>
            </table>
            @endif
            @if(isset($response['otherBenefit']) && !empty($response['otherBenefit']))
            <h2 class="eligibility-title" >Other Benefit</h2>
            <table class="eligibility-list-area other-list-tbl w-100 table " id="OtherBenefit" style="border:1px solid #e8ebeb; border-spacing: 0;  border-collapse: collapse; width:99%;" cellpadding="10">
                <thead>
                    <tr>
                        <th scope="col">Code</th>
                        <th scope="col">Insurance Type</th>
                        <th scope="col">Plan Coverage Description</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach($response['otherBenefit'] as $otherBenefit)
                    <tr>
                        <td scope="col">{{ $otherBenefit['code'] ?? '-' }}</td>
                        <td scope="col">{{ $otherBenefit['insuranceType'] ?? '-' }}</td>
                        <td scope="col">{{ $otherBenefit['planCoverageDescription'] ?? '-' }}</td>
                    </tr>
                    @endforeach
                </tbody>
            </table>
            @endif
            @if(isset($parseResponse) && is_array($parseResponse) && count($parseResponse) > 0)
            <h2 class="eligibility-title">Next Eligible Dates</h2>
            <table class="eligibility-list-area other-list-tbl table w-100 p-0" style="border:1px solid #e8ebeb; border-spacing: 0;  border-collapse: collapse; width:99%;" cellpadding="10" id="CDTCodesTable">
                <thead>
                    <tr style="color: #1c3d6e;  font-weight: 500; padding: 8px 10px;background: #34b6b340; border: 0px; line-height: 1.2; font-size: 16px;">
                        <th scope="col">Code</th>
                        <th scope="col">Last Service Date</th>
                        <th scope="col">Next Eligible Service Date</th>
                        <th scope="col">Authorization Required</th>
                        <th scope="col">Quick Notes</th>
                        <th scope="col">Coverage %</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach($parseResponse as $parse)
                    <tr>
                        <td scope="col" style="padding: .75rem;    vertical-align: top;    border-top: 1px solid #dee2e6;">{{ $parse['Code'] ?? '-' }}</td>
                        <td scope="col" style="padding: .75rem;    vertical-align: top;    border-top: 1px solid #dee2e6;">{{ $parse['Lastservicedate'] }}</td>
                        <td scope="col" style="padding: .75rem;    vertical-align: top;    border-top: 1px solid #dee2e6;">{{ $parse['Nexteligibleservicedate'] }}</td>
                        <td scope="col" style="padding: .75rem;    vertical-align: top;    border-top: 1px solid #dee2e6;">{{ $parse['Authorizationrequired'] }}</td>
                        <td scope="col" style="padding: .75rem;    vertical-align: top;    border-top: 1px solid #dee2e6;">{{ $parse['Quicknotes'] ?? '-' }}</td>
                        <td scope="col" style="padding: .75rem;    vertical-align: top;    border-top: 1px solid #dee2e6;">{{ $parse['Coverage%'] }}</td>
                    </tr>
                    @endforeach
                </tbody>
            </table>
            @else
                <h2 class="eligibility-title">Next Eligible Dates</h2>
                <p style='padding-left:10px;font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";'>Insurance did not provide this information.</p>
            @endif
        </div>
        <div class="footer" style="padding:15px;">
            <p>Generated on {{ now()->format('d-m-Y H:i:s') }}</p>
        </div>
    </body>
</html>