

<!DOCTYPE>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Vyawahare Hospital</title>
    <style type="text/css">
    body {
        margin-left: 20px;
        margin-top: 5px;
        margin-right: 5px;
        margin-bottom: 0px;
    }
    </style>
    <style>
    .tblborder {
        border: 1px solid #ada9a9;
        border-collapse: collapse;
    }

    .alltextfont {
        font-family: Poppins;
        font-size: 11px;
        font-style: normal;
        line-height: normal;
        font-weight: normal;
        font-variant: normal;

        color: #4C4C4C;
    }

    .smalltextfont {
        font-family: Poppins;
        font-size: 9px;
        font-style: normal;
        line-height: normal;
        font-weight: normal;
        font-variant: normal;

        color: #000000;
    }

    .addrfont {
        font-family: "Poppins Light";
        font-size: 9pt;
        font-style: normal;
        line-height: normal;
        font-weight: normal;
        font-variant: normal;

        color: #000000;
    }

    .tophdfnt {
        font-family: "Poppins Medium";
        font-size: 14pt;
        font-style: normal;
        line-height: normal;
        font-weight: normal;
        font-variant: normal;

        color: #000000;
        letter-spacing: 0.3mm;
    }

    .thbrd {
        border: 1px solid #ada9a9;
        border-collapse: collapse;
    }

    .tdbrd {
        border: 1px solid #ada9a9;
        border-collapse: collapse;
        font-family: "Poppins Medium";
        font-size: 8pt;
        font-style: normal;
        line-height: normal;
        font-weight: normal;
        font-variant: normal;
        color: #424242;
        word-spacing: normal;
        letter-spacing: 0.2mm;
    }

    .txtfundus {

        border-collapse: collapse;
        font-family: "Poppins Medium";
        font-size: 8pt;
        font-style: normal;
        line-height: normal;
        font-weight: normal;
        font-variant: normal;
        color: #4C4C4C;
        word-spacing: normal;
        letter-spacing: 0.2mm;
    }

    .txtallvalues {
        border: 1px solid #ada9a9;
        border-collapse: collapse;
        font-family: "Poppins Light";
        font-size: 8pt;
        font-style: normal;
        line-height: normal;
        font-weight: normal;
        font-variant: normal;
        color: #424242;
        word-spacing: normal;

    }

    .txtdegree {

        border-collapse: collapse;
        font-family: "Poppins Light";
        font-size: 8pt;
        font-style: normal;
        line-height: normal;
        font-weight: normal;
        font-variant: normal;
        color: #424242;
        word-spacing: normal;

    }

    .txtallheading {
        font-family: "Poppins SemiBold";
        font-size: 9pt;
        font-style: normal;
        line-height: normal;
        font-weight: normal;
        font-variant: normal;

        color: #000000;

    }

    .txtdrname {
        font-family: "Poppins Light";
        font-size: 9pt;
        font-style: normal;
        line-height: normal;
        font-weight: normal;
        font-variant: normal;

        color: #000000;

    }

    .txtnabhlogo {
        font-family: "Poppins Medium";
        font-size: 7pt;
        font-style: normal;
        line-height: normal;
        font-weight: normal;
        font-variant: normal;
        letter-spacing: 0.2mm color: #000000;
        letter-spacing: 0.3mm;
    }

    .tdbrd1 {
        border: 1px solid #ada9a9;
        border-collapse: collapse;
        font-family: Poppins;
        font-size: 11px;
        font-style: normal;
        line-height: normal;
        font-weight: normal;
        font-variant: normal;

        color: #4C4C4C;
    }

    .style1 {
        border: 1px solid #ada9a9;
        border-collapse: collapse;
        font-family: Poppins;
        font-size: 11px;
        font-style: normal;
        line-height: normal;
        font-weight: normal;
        font-variant: normal;
        color: #4C4C4C;
        letter-spacing: 0.2mm;
    }

    .style3 {
        font-size: 10
    }

    .singleline {
        border-left-width: 1px;
        border-left-style: solid;
        border-left-color: #ada9a9;
    }

    @media  print {
        @page  {
            margin-top: 10px;
            margin-left: 50px;
            margin-right: 0px;
            margin-bottom: 0px;
        }

        @page  :footer {
            display: none
        }

        .noPrint {
            display: none;
        }

        @page  :header {
            display: none
        }
    }

    @media  print {
        a[href]:after {
            content: none !important;
        }
    }

    @media  screen {
        div.divFooter {
            display: none;
        }
    }

    @media  print {
        div.divFooter {
            position: fixed;
            bottom: 20;
        }
    }
    </style>
</head>
<script type="text/javascript">
window.print();
window.onafterprint = window.close;	
</script>

<body>
    
    <table width="700" border="0" cellspacing="1" cellpadding="1">
        <!-- <tr class="noPrint">
            <td style="float:right;"><button align="center" style="text-align:center;font-size: 18px;width: 100px;"
                    onclick="window.print();" class="noPrint">Print</button>            </td>
        </tr> -->
        <tr>
            <td align="left" valign="top">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tdbrd1">
                    <tr>
                        <td width="13%" rowspan="2" align="center" valign="middle" class="tdbrd1"><img
                                src="{{url('VLOGO2.jpg')}}" width="75" height="86" /></td>
                        <td colspan="2" align="left" valign="top" class="tdbrd1">
                            <table width="99%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="64%" class="tophdfnt">
                                        <div align="center">Vyawahare Netralaya &amp; Eye Bank, Amravati </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="addrfont">
                                        <div align="center">V.M.V Road, Rathi Nagar, Amravati | 0721-2664880 | Mob :
                                        9370109617 </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td width="17%" rowspan="2" align="center" valign="middle" class="tdbrd1">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="15%" align="center" valign="middle"><img
                                            src="{{url('nabhlogo2.png')}}" /></td>
                                </tr>
                                <tr>
                                    <td align="center" valign="top" class="txtnabhlogo">NABH &amp; ISO CERTIFIED </td>
                                </tr>
                                <tr>
                                    <td align="center" valign="top" class="txtnabhlogo">EYE HOSPITAL </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td width="36%" align="left" valign="top">
                            <table width="90%" border="0" cellspacing="1" cellpadding="1">
                                <tr>
                                    <td align="center" valign="middle" class="txtdrname"><strong>Dr. Neeta
                                            Vyawahare</strong></td>
                                </tr>
                                <tr>
                                    <td align="center" valign="top" class="txtdegree">MBBS, DO (Opthal) </td>
                                </tr>
                                <tr>
                                    <td align="center" valign="top" class="txtdegree">Regd. No. 070595</td>
                                </tr>
                            </table>
                        </td>
                        <td width="34%" align="center" valign="top">
                            <table width="80%" border="0" cellspacing="1" cellpadding="1">
                                <tr>
                                    <td align="center" valign="middle" class="txtdrname"><strong>Dr. Pravin
                                            Vyawahare</strong> </td>
                                </tr>
                                <tr>
                                    <td align="center" valign="top" class="txtdegree">MBBS, MS (Opthal)</td>
                                </tr>
                                <tr>
                                    <td align="center" valign="top" class="txtdegree"> Regd. No. 65374</td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" valign="top" class="txtallheading" style="height: 25px;
    padding-top: 3px;font-size: 12pt;"><strong>
                    Discharge Summary </strong> </td>
        </tr>
        <td align="left" valign="top">
            <table width="100%" border="0" cellpadding="4" cellspacing="0" class="tblborder">
                <tr style="border:1px; color:#333333">
                    <td width="21%" align="left" valign="middle" class="tdbrd">Name/Age/Gender</td>
                    <td width="39%" align="left" valign="middle" class="txtallheading" style="font-size: 10pt;">{{$data->PatientName}} /
                        {{$data->AgeGender}}  </td>
                    <td width="10%" align="left" valign="middle" class="tdbrd">MRD No</td>
                    <td width="10%" align="center" valign="middle" class="txtallheading" style="font-size: 10pt;">{{$data->MrdNo}}</td>
                    <td width="7%" align="center" valign="middle" class="tdbrd">Date</td>
                    <td width="13%" align="center" valign="middle" class="tdbrd">
                    {{date("d/m/Y", strtotime(str_replace('-', '/',$data->DischargeDate)))}}</td>
                </tr>
                <tr>
                    <td align="left" valign="middle" class="tdbrd">Address</td>
                    <td colspan="2" align="left" valign="middle" class="txtallvalues">{{strtoupper($data->Address)}}
                    </td>
                    <td colspan="2" align="center" valign="middle" class="tdbrd">Mobile </td>
                    <td align="center" valign="middle" class="txtallvalues">{{$data->Phone}}</td>
                </tr>
            </table>
        </td>
        </tr>

        <td align="left" valign="top">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td align="left" valign="top">
                        <table width="100%" border="0" cellspacing="0" cellpadding="4" class="tdbrd1">

                            <tr>
                                <td width="21%" align="left" valign="top" class="tdbrd">Date of Admission </td>
                                <td width="13%" align="center" valign="top" class="tdbrd">
                                    &nbsp;{{date("d/m/Y", strtotime(str_replace('-', '/',$data->AdmissionDate)))}}</td>
                                <td width="18%" align="center" valign="top" class="tdbrd">Date of Operation </td>
                                <td width="18%" align="center" valign="top" class="tdbrd">
                                    &nbsp;{{date("d/m/Y", strtotime(str_replace('-', '/',$data->OperationDate)))}}</td>
                                <td width="17%" align="center" valign="top" class="tdbrd">Date of Discharge </td>
                                <td width="13%" align="center" valign="top" class="tdbrd">
                                    &nbsp;{{date("d/m/Y", strtotime(str_replace('-', '/',$data->DischargeDate)))}}</td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
        </tr>

        <tr>
            <td align="left" valign="top" class="txtallheading">
                <div align="left">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="100%" class="txtallheading">
                                <table width="100%" border="0" cellspacing="0" cellpadding="2">
                                    <tr>
                                        <td width="21%" align="left" valign="top" class="txtallvalues" style="padding-top: 5px;height: 30px;">
                                            <strong>&nbsp;Diagnosis</strong></td>
                                        <td align="left" valign="top" class="txtallvalues"  style="font-size:9pt; color: #000;font-family: 'Poppins SemiBold';padding-top: 5px;height: 30px;">&nbsp;{{$data->Diagnosis}}
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td class="txtallheading">
                                <table width="100%" border="0" cellspacing="0" cellpadding="4" class="tdbrd1">
                                    <tr>
                                        <td width="21%" rowspan="2" align="left" valign="top" class="txtallvalues" style="padding-top: 15px;">
                                            <strong>Investigation</strong></td>
                                        <td width="17%" align="left" valign="top" class="txtallvalues"><strong>Blood
                                                Sugar </strong></td>
                                        <td width="20%" align="left" valign="top" class="txtallvalues">
                                        {{$data->txtbsfasting}} mg/dl</td>
                                        <td align="left" valign="top" class="txtallvalues"><strong>IOP </strong></td>
                                        <td align="left" valign="top" class="txtallvalues">&nbsp;{{$data->IopRe}}</td>
                                        <td width="13%" align="left" valign="top" class="txtallvalues">
                                            &nbsp;{{$data->IopLe}}</td>
                                    </tr>
                                    <tr>
                                        <td align="left" valign="top" class="txtallvalues"><strong>Blood Pressure
                                            </strong></td>
                                        <td align="left" valign="top" class="txtallvalues">{{$data->txtbp}}</td>
                                        <td width="15%" align="left" valign="top" class="txtallvalues"><strong>IOL Power
                                            </strong></td>
                                        <td width="14%" align="left" valign="top" class="txtallvalues">
                                            &nbsp;{{$data->IolPowerRe}}</td>
                                        <td align="left" valign="top" class="txtallvalues">&nbsp;{{$data->IolPowerLe}}
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td class="txtallheading">
                                <table width="100%" border="0" cellspacing="0" cellpadding="2">
                                    <tr>
                                        <td width="21%" align="left" valign="top" class="txtallvalues" style="padding-top: 5px;"><strong>&nbsp;Operation
                                                Notes </strong></td>
                                        <td align="left" valign="top" class="txtallvalues" style="font-size:9pt; color: #000;font-family: 'Poppins SemiBold'">{{$data->OperationNotes}}
</td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        @if($data->StickerPrint == 1)
                        <tr>
                            <td class="txtallheading">
                                <table width="100%" border="0" cellspacing="0" cellpadding="2">
                                    <tr>
                                      
                                        <td align="left" valign="top" class="txtallvalues" style="height: 90px;" colspan="2">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        @endif
                        <tr>
                            <td class="txtallheading">
                                <table width="100%" border="0" cellspacing="0" cellpadding="2">
                                    <tr>
                                        <td width="21%" align="left" valign="top" class="txtallvalues"><strong>&nbsp;Slit Lamp
                                                Examination after surgery </strong></td>
                                        <td align="left" valign="top" class="txtallvalues">Eye quiet.<br> Patient is fit for discharge.<br>{{$data->SlitLamp}}
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        
                        <tr>
                            <td align="right" class="txtallheading">
                                <table width="100%" border="0" cellspacing="0" cellpadding="2">
                                    <tr>
                                        <td width="21%" align="left" valign="top" class="txtallvalues"><strong
                                                id="docs-internal-guid-c41e15d9-7fff-beb1-76fe-afe320e2605a">
                                                <div dir="ltr" align="left">
                                                    <table>
                                                        <colgroup>
                                                            <col width="125" />
                                                            <col width="570" />
                                                        </colgroup>
                                                        <tbody>
                                                            <tr>
                                                                <td class="alltextfont"><strong>Post Operative&nbsp;
                                                                        Treatment&nbsp;</strong></td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </strong></td>
                                        <td align="left" valign="top" class="txtallvalues">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0"
                                                style="padding-left: 10px;">
                                                <strong style="padding-left: 10px;">Rx,</strong>
                                                @if($data2[0]->TreatChk1 == 1)
                                                @if($data2[0]->TreatDate1 == '' || $data2[0]->TreatDate1 == null)
                                                @php $TreatDate1 = ""; @endphp
                                                @else
                                                @php $TreatDate1 = date("d/m/Y", strtotime(str_replace('-',
                                                '/',$data2[0]->TreatDate1))); @endphp
                                                @endif
                                                @if($data2[0]->TreatFreq1 == '8 TAP' || $data2[0]->TreatFreq1 == '6 TAP'
                                                ||
                                                $data2[0]->TreatFreq1 == '4 TAP' || $data2[0]->TreatFreq1 == '3 TAP' ||
                                                $data2[0]->TreatFreq1 == '2 TAP' || $data2[0]->TreatFreq1 == '1 TAP')
                                                <tr>
                                                    <td align="left" valign="top" class="addrfont">
                                                        <strong>{{$data2[0]->TreatName1}} </strong></td>
                                                </tr>
                                                @php
                                                $TapValue = $data2[0]->TreatFreq1;
                                                $data1 = (new ConsultantController)->getTapValue($TapValue);
                                                @endphp
                                                @foreach($data1 as $result1)
                                                @php $treattapname1 = (new
                                                OptoController)->convertMarathi($data2[0]->TreatType1,$data2[0]->TreatDose1,
                                                $result1->Value,$data2[0]->TreatDur1,$data2[0]->TreatEye1); @endphp
                                                <tr>

                                                    <td
                                                        style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                        {{$treattapname1}} &nbsp;&nbsp;&nbsp;<span style="font-family:Poppins Light;font-size:12px;">{{$TreatDate1}}</span></td>
                                                    @endforeach
                                                </tr>
                                                @else
                                                <tr>

                                                    <td align="left" valign="top" class="addrfont">
                                                        <strong>{{$data2[0]->TreatName1}} </strong></td>
                                                </tr>
                                                <tr>
                                                    <td
                                                        style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                        {{$TreatName1}}  &nbsp;&nbsp;&nbsp;<span style="font-family:Poppins Light;font-size:12px;">{{$TreatDate1}}</span></td>
                                                </tr>
                                                @endif
                                                <!-- <tr>
                                    <td align="left" valign="top">&nbsp;</td>
                                </tr> -->
                                                @endif

                                                @if($data2[0]->TreatChk2 == 1)
                                                @if($data2[0]->TreatDate2 == '' || $data2[0]->TreatDate2 == null)
                                                @php $TreatDate2 = ""; @endphp
                                                @else
                                                @php $TreatDate2 = date("d/m/Y", strtotime(str_replace('-',
                                                '/',$data2[0]->TreatDate2))); @endphp
                                                @endif
                                                @if($data2[0]->TreatFreq2 == '8 TAP' || $data2[0]->TreatFreq2 == '6 TAP'
                                                ||
                                                $data2[0]->TreatFreq2 == '4 TAP' || $data2[0]->TreatFreq2 == '3 TAP' ||
                                                $data2[0]->TreatFreq2 == '2 TAP' || $data2[0]->TreatFreq2 == '1 TAP')
                                                <tr>
                                                    <td align="left" valign="top" class="addrfont">
                                                        <strong>{{$data2[0]->TreatName2}} </strong></td>
                                                </tr>
                                                @php
                                                $TapValue2 = $data2[0]->TreatFreq2;
                                                $data2 = (new ConsultantController)->getTapValue($TapValue2);
                                                @endphp
                                                @foreach($data2 as $result2)
                                                @php $treattapname2 = (new
                                                OptoController)->convertMarathi($data2[0]->TreatType2,$data2[0]->TreatDose2,
                                                $result2->Value,$data2[0]->TreatDur2,$data2[0]->TreatEye2); @endphp
                                                <tr>

                                                    <td
                                                        style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                        {{$treattapname2}} &nbsp;&nbsp;&nbsp;<span style="font-family:Poppins Light;font-size:12px;">{{$TreatDate2}}</span></td>
                                                    @endforeach
                                                </tr>
                                                @else
                                                <tr>

                                                    <td align="left" valign="top" class="addrfont">
                                                        <strong>{{$data2[0]->TreatName2}} </strong></td>
                                                </tr>
                                                <tr>
                                                    <td
                                                        style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                        {{$TreatName2}} &nbsp;&nbsp;&nbsp;<span style="font-family:Poppins Light;font-size:12px;">{{$TreatDate2}}</span></td>
                                                </tr>
                                                @endif
                                                <!-- <tr>
                                    <td align="left" valign="top">&nbsp;</td>
                                </tr> -->
                                                @endif


                                                @if($data2[0]->TreatChk3 == 1)
                                                @if($data2[0]->TreatDate3 == '' || $data2[0]->TreatDate3 == null)
                                                @php $TreatDate3 = ""; @endphp
                                                @else
                                                @php $TreatDate3 = date("d/m/Y", strtotime(str_replace('-',
                                                '/',$data2[0]->TreatDate3))); @endphp
                                                @endif
                                                @if($data2[0]->TreatFreq3 == '8 TAP' || $data2[0]->TreatFreq3 == '6 TAP'
                                                ||
                                                $data2[0]->TreatFreq3 == '4 TAP' || $data2[0]->TreatFreq3 == '3 TAP' ||
                                                $data2[0]->TreatFreq3 == '2 TAP' || $data2[0]->TreatFreq3 == '1 TAP')
                                                <tr>
                                                    <td align="left" valign="top" class="addrfont">
                                                        <strong>{{$data2[0]->TreatName3}} </td>
                                                </tr>
                                                @php
                                                $TapValue3 = $data2[0]->TreatFreq3;
                                                $data3 = (new ConsultantController)->getTapValue($TapValue3);
                                                @endphp
                                                @foreach($data3 as $result3)
                                                @php $treattapname3 = (new
                                                OptoController)->convertMarathi($data2[0]->TreatType3,$data2[0]->TreatDose3,
                                                $result3->Value,$data2[0]->TreatDur3,$data2[0]->TreatEye3); @endphp
                                                <tr>

                                                    <td
                                                        style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                        {{$treattapname3}} &nbsp;&nbsp;&nbsp;<span style="font-family:Poppins Light;font-size:12px;">{{$TreatDate3}}</span></td>
                                                    @endforeach
                                                </tr>
                                                @else
                                                <tr>

                                                    <td align="left" valign="top" class="addrfont">
                                                        <strong>{{$data2[0]->TreatName3}} </td>
                                                </tr>
                                                <tr>
                                                    <td
                                                        style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                        {{$TreatName3}} &nbsp;&nbsp;&nbsp;<span style="font-family:Poppins Light;font-size:12px;">{{$TreatDate3}}</span></td>
                                                </tr>
                                                @endif
                                                <!-- <tr>
                                    <td align="left" valign="top">&nbsp;</td>
                                </tr> -->
                                                @endif

                                                @if($data2[0]->TreatChk4 == 1)
                                                @if($data2[0]->TreatDate4 == '' || $data2[0]->TreatDate4 == null)
                                                @php $TreatDate4 = ""; @endphp
                                                @else
                                                @php $TreatDate4 = date("d/m/Y", strtotime(str_replace('-',
                                                '/',$data2[0]->TreatDate4))); @endphp
                                                @endif
                                                @if($data2[0]->TreatFreq4 == '8 TAP' || $data2[0]->TreatFreq4 == '6 TAP'
                                                ||
                                                $data2[0]->TreatFreq4 == '4 TAP' || $data2[0]->TreatFreq4 == '3 TAP' ||
                                                $data2[0]->TreatFreq4 == '2 TAP' || $data2[0]->TreatFreq4 == '1 TAP')
                                                <tr>
                                                    <td align="left" valign="top" class="addrfont">
                                                        <strong>{{$data2[0]->TreatName4}} </strong> </td>
                                                </tr>
                                                @php
                                                $TapValue4 = $data2[0]->TreatFreq4;
                                                $data4 = (new ConsultantController)->getTapValue($TapValue4);
                                                @endphp
                                                @foreach($data4 as $result4)
                                                @php $treattapname4 = (new
                                                OptoController)->convertMarathi($data2[0]->TreatType4,$data2[0]->TreatDose4,
                                                $result4->Value,$data2[0]->TreatDur4,$data2[0]->TreatEye4); @endphp
                                                <tr>

                                                    <td
                                                        style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                        {{$treattapname4}} &nbsp;&nbsp;&nbsp;<span style="font-family:Poppins Light;font-size:12px;">{{$TreatDate4}}</span></td>
                                                    @endforeach
                                                </tr>
                                                @else
                                                <tr>

                                                    <td align="left" valign="top" class="addrfont">
                                                        <strong>{{$data2[0]->TreatName4}} </strong> </td>
                                                </tr>
                                                <tr>
                                                    <td
                                                        style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                        {{$TreatName4}} &nbsp;&nbsp;&nbsp;<span style="font-family:Poppins Light;font-size:12px;">{{$TreatDate4}}</span></td>
                                                </tr>
                                                @endif
                                                <!-- <tr>
                                    <td align="left" valign="top">&nbsp;</td>
                                </tr> -->
                                                @endif

                                                @if($data2[0]->TreatChk5 == 1)
                                                @if($data2[0]->TreatDate5 == '' || $data2[0]->TreatDate5 == null)
                                                @php $TreatDate5 = ""; @endphp
                                                @else
                                                @php $TreatDate5 = date("d/m/Y", strtotime(str_replace('-',
                                                '/',$data2[0]->TreatDate5))); @endphp
                                                @endif
                                                @if($data2[0]->TreatFreq5 == '8 TAP' || $data2[0]->TreatFreq5 == '6 TAP'
                                                ||
                                                $data2[0]->TreatFreq5 == '4 TAP' || $data2[0]->TreatFreq5 == '3 TAP' ||
                                                $data2[0]->TreatFreq5 == '2 TAP' || $data2[0]->TreatFreq5 == '1 TAP')
                                                <tr>
                                                    <td align="left" valign="top"><strong>{{$data2[0]->TreatName5}}
                                                        </strong></td>
                                                </tr>
                                                @php
                                                $TapValue5 = $data2[0]->TreatFreq5;
                                                $data5 = (new ConsultantController)->getTapValue($TapValue5);
                                                @endphp
                                                @foreach($data5 as $result5)
                                                @php $treattapname5 = (new
                                                OptoController)->convertMarathi($data2[0]->TreatType5,$data2[0]->TreatDose5,
                                                $result5->Value,$data2[0]->TreatDur5,$data2[0]->TreatEye5); @endphp
                                                <tr>

                                                    <td
                                                        style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                        {{$treattapname5}} &nbsp;&nbsp;&nbsp;<span style="font-family:Poppins Light;font-size:12px;">{{$TreatDate5}}</span></td>
                                                    @endforeach
                                                </tr>
                                                @else
                                                <tr>

                                                    <td align="left" valign="top" class="addrfont">
                                                        <strong>{{$data2[0]->TreatName5}} </strong> </td>
                                                </tr>
                                                <tr>
                                                    <td
                                                        style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                        {{$TreatName5}} &nbsp;&nbsp;&nbsp;<span style="font-family:Poppins Light;font-size:12px;">{{$TreatDate5}}</span></td>
                                                </tr>
                                                @endif
                                                <!-- <tr>
                                    <td align="left" valign="top">&nbsp;</td>
                                </tr> -->
                                                @endif

                                                @if($data2[0]->TreatChk6 == 1)
                                                @if($data2[0]->TreatDate6 == '' || $data2[0]->TreatDate6 == null)
                                                @php $TreatDate6 = ""; @endphp
                                                @else
                                                @php $TreatDate6 = date("d/m/Y", strtotime(str_replace('-',
                                                '/',$data2[0]->TreatDate6))); @endphp
                                                @endif
                                                @if($data2[0]->TreatFreq6 == '8 TAP' || $data2[0]->TreatFreq6 == '6 TAP'
                                                ||
                                                $data2[0]->TreatFreq6 == '4 TAP' || $data2[0]->TreatFreq6 == '3 TAP' ||
                                                $data2[0]->TreatFreq6 == '2 TAP' || $data2[0]->TreatFreq6 == '1 TAP')
                                                <tr>
                                                    <td align="left" valign="top" class="addrfont">
                                                        <strong>{{$data2[0]->TreatName6}} </strong> </td>
                                                </tr>
                                                @php
                                                $TapValue6 = $data2[0]->TreatFreq6;
                                                $data6 = (new ConsultantController)->getTapValue($TapValue6);
                                                @endphp
                                                @foreach($data6 as $result6)
                                                @php $treattapname6 = (new
                                                OptoController)->convertMarathi($data2[0]->TreatType6,$data2[0]->TreatDose6,
                                                $result6->Value,$data2[0]->TreatDur6,$data2[0]->TreatEye6); @endphp
                                                <tr>

                                                    <td
                                                        style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                        {{$treattapname6}} &nbsp;&nbsp;&nbsp;<span style="font-family:Poppins Light;font-size:12px;">{{$TreatDate6}}</span></td>
                                                    @endforeach
                                                </tr>
                                                @else
                                                <tr>

                                                    <td align="left" valign="top" class="addrfont">
                                                        <strong>{{$data2[0]->TreatName6}} </strong> </td>
                                                </tr>
                                                <tr>
                                                    <td
                                                        style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                        {{$TreatName6}} &nbsp;&nbsp;&nbsp;<span style="font-family:Poppins Light;font-size:12px;">{{$TreatDate6}}</span></td>
                                                </tr>
                                                @endif
                                                <!-- <tr>
                                    <td align="left" valign="top">&nbsp;</td>
                                </tr> -->
                                                @endif

                                                @if($data2[0]->TreatChk7 == 1)
                                                @if($data2[0]->TreatDate7 == '' || $data2[0]->TreatDate7 == null)
                                                @php $TreatDate7 = ""; @endphp
                                                @else
                                                @php $TreatDate7 = date("d/m/Y", strtotime(str_replace('-',
                                                '/',$data2[0]->TreatDate7))); @endphp
                                                @endif
                                                @if($data2[0]->TreatFreq7 == '8 TAP' || $data2[0]->TreatFreq7 == '6 TAP'
                                                ||
                                                $data2[0]->TreatFreq7 == '4 TAP' || $data2[0]->TreatFreq7 == '3 TAP' ||
                                                $data2[0]->TreatFreq7 == '2 TAP' || $data2[0]->TreatFreq7 == '1 TAP')
                                                <tr>
                                                    <td align="left" valign="top" class="addrfont">
                                                        <strong>{{$data2[0]->TreatName7}} </strong></td>
                                                </tr>
                                                @php
                                                $TapValue7 = $data2[0]->TreatFreq7;
                                                $data7 = (new ConsultantController)->getTapValue($TapValue7);
                                                @endphp
                                                @foreach($data7 as $result7)
                                                @php $treattapname7 = (new
                                                OptoController)->convertMarathi($data2[0]->TreatType7,$data2[0]->TreatDose7,
                                                $result7->Value,$data2[0]->TreatDur7,$data2[0]->TreatEye7); @endphp
                                                <tr>

                                                    <td
                                                        style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                        {{$treattapname7}} &nbsp;&nbsp;&nbsp;<span style="font-family:Poppins Light;font-size:12px;">{{$TreatDate7}}</span></td>
                                                    @endforeach
                                                </tr>
                                                @else
                                                <tr>

                                                    <td align="left" valign="top" class="addrfont">
                                                        <strong>{{$data2[0]->TreatName7}} </strong> </td>
                                                </tr>
                                                <tr>
                                                    <td
                                                        style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                        {{$TreatName7}} &nbsp;&nbsp;&nbsp;<span style="font-family:Poppins Light;font-size:12px;">{{$TreatDate7}}</span></td>
                                                </tr>
                                                @endif
                                                <!-- <tr>
                                    <td align="left" valign="top">&nbsp;</td>
                                </tr> -->
                                                @endif

                                                @if($data2[0]->TreatChk8 == 1)
                                                @if($data2[0]->TreatDate8 == '' || $data2[0]->TreatDate8 == null)
                                                @php $TreatDate8 = ""; @endphp
                                                @else
                                                @php $TreatDate8 = date("d/m/Y", strtotime(str_replace('-',
                                                '/',$data2[0]->TreatDate8))); @endphp
                                                @endif
                                                @if($data2[0]->TreatFreq8 == '8 TAP' || $data2[0]->TreatFreq8 == '6 TAP'
                                                ||
                                                $data2[0]->TreatFreq8 == '4 TAP' || $data2[0]->TreatFreq8 == '3 TAP' ||
                                                $data2[0]->TreatFreq8 == '2 TAP' || $data2[0]->TreatFreq8 == '1 TAP')
                                                <tr>
                                                    <td align="left" valign="top" class="addrfont">
                                                        <strong>{{$data2[0]->TreatName8}} </strong></td>
                                                </tr>
                                                @php
                                                $TapValue8 = $data2[0]->TreatFreq8;
                                                $data8 = (new ConsultantController)->getTapValue($TapValue8);
                                                @endphp
                                                @foreach($data8 as $result8)
                                                @php $treattapname8 = (new
                                                OptoController)->convertMarathi($data2[0]->TreatType8,$data2[0]->TreatDose8,
                                                $result8->Value,$data2[0]->TreatDur8,$data2[0]->TreatEye8); @endphp
                                                <tr>

                                                    <td
                                                        style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                        {{$treattapname8}} &nbsp;&nbsp;&nbsp;<span style="font-family:Poppins Light;font-size:12px;">{{$TreatDate8}}</span></td>
                                                    @endforeach
                                                </tr>
                                                @else
                                                <tr>

                                                    <td align="left" valign="top" class="addrfont">
                                                        <strong>{{$data2[0]->TreatName8}} </strong> </td>
                                                </tr>
                                                <tr>
                                                    <td
                                                        style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                        {{$TreatName8}} &nbsp;&nbsp;&nbsp;<span style="font-family:Poppins Light;font-size:12px;">{{$TreatDate8}}</span></td>
                                                </tr>
                                                @endif
                                                <!-- <tr>
                                    <td align="left" valign="top">&nbsp;</td>
                                </tr> -->
                                                @endif

                                                @if($data2[0]->TreatChk9 == 1)
                                                @if($data2[0]->TreatDate9 == '' || $data2[0]->TreatDate9 == null)
                                                @php $TreatDate9 = ""; @endphp
                                                @else
                                                @php $TreatDate9 = date("d/m/Y", strtotime(str_replace('-',
                                                '/',$data2[0]->TreatDate9))); @endphp
                                                @endif
                                                @if($data2[0]->TreatFreq9 == '8 TAP' || $data2[0]->TreatFreq9 == '6 TAP'
                                                ||
                                                $data2[0]->TreatFreq9 == '4 TAP' || $data2[0]->TreatFreq9 == '3 TAP' ||
                                                $data2[0]->TreatFreq9 == '2 TAP' || $data2[0]->TreatFreq9 == '1 TAP')
                                                <tr>
                                                    <td align="left" valign="top" class="addrfont">
                                                        <strong>{{$data2[0]->TreatName9}} </strong> </td>
                                                </tr>
                                                @php
                                                $TapValue9 = $data2[0]->TreatFreq9;
                                                $data9 = (new ConsultantController)->getTapValue($TapValue9);
                                                @endphp
                                                @foreach($data9 as $result9)
                                                @php $treattapname9 = (new
                                                OptoController)->convertMarathi($data2[0]->TreatType9,$data2[0]->TreatDose9,
                                                $result9->Value,$data2[0]->TreatDur9,$data2[0]->TreatEye9); @endphp
                                                <tr>

                                                    <td
                                                        style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                        {{$treattapname9}} &nbsp;&nbsp;&nbsp;<span style="font-family:Poppins Light;font-size:12px;">{{$TreatDate9}}</span></td>
                                                    @endforeach
                                                </tr>
                                                @else
                                                <tr>

                                                    <td align="left" valign="top" class="addrfont">
                                                        <strong>{{$data2[0]->TreatName9}} </strong> </td>
                                                </tr>
                                                <tr>
                                                    <td
                                                        style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                        {{$TreatName9}} &nbsp;&nbsp;&nbsp;<span style="font-family:Poppins Light;font-size:12px;">{{$TreatDate9}}</span></td>
                                                </tr>
                                                @endif
                                                <!-- <tr>
                                    <td align="left" valign="top">&nbsp;</td>
                                </tr> -->
                                                @endif

                                                @if($data2[0]->TreatChk10 == 1)
                                                @if($data2[0]->TreatDate10 == '' || $data2[0]->TreatDate10 == null)
                                                @php $TreatDate10 = ""; @endphp
                                                @else
                                                @php $TreatDate10 = date("d/m/Y", strtotime(str_replace('-',
                                                '/',$data2[0]->TreatDate10))); @endphp
                                                @endif
                                                @if($data2[0]->TreatFreq10 == '8 TAP' || $data2[0]->TreatFreq10 == '6
                                                TAP' ||
                                                $data2[0]->TreatFreq10 == '4 TAP' || $data2[0]->TreatFreq10 == '3 TAP'
                                                ||
                                                $data2[0]->TreatFreq10 == '2 TAP' || $data2[0]->TreatFreq10 == '1 TAP')
                                                <tr>
                                                    <td align="left" valign="top" class="addrfont">
                                                        <strong>{{$data2[0]->TreatName10}} </strong> </td>
                                                </tr>
                                                @php
                                                $TapValue10 = $data2[0]->TreatFreq10;
                                                $data10 = (new ConsultantController)->getTapValue($TapValue10);
                                                @endphp
                                                @foreach($data10 as $result10)
                                                @php $treattapname10 = (new
                                                OptoController)->convertMarathi($data2[0]->TreatType10,$data2[0]->TreatDose10,
                                                $result10->Value,$data2[0]->TreatDur10,$data2[0]->TreatEye10); @endphp
                                                <tr>

                                                    <td
                                                        style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                        {{$treattapname10}} &nbsp;&nbsp;&nbsp;<span style="font-family:Poppins Light;font-size:12px;">{{$TreatDate10}}</span></td>
                                                    @endforeach
                                                </tr>
                                                @else
                                                <tr>

                                                    <td align="left" valign="top" class="addrfont">
                                                        <strong>{{$data2[0]->TreatName10}} </strong> </td>
                                                </tr>
                                                <tr>
                                                    <td
                                                        style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                        {{$TreatName10}} &nbsp;&nbsp;&nbsp;<span style="font-family:Poppins Light;font-size:12px;">{{$TreatDate10}}</span></td>
                                                </tr>
                                                @endif
                                                <!-- <tr>
                                    <td align="left" valign="top">&nbsp;</td>
                                </tr> -->
                                                @endif
                                            </table>                                        </td>
                                    </tr>
                                    @if($data->txtremark!='')
                                    <tr>
                                      <td align="left" valign="top" class="txtallvalues">Special Instructions </td>
                                      <td align="left" valign="top" class="txtallvalues" style="font-family: 'Poppins semibold';
    font-size: 9pt;">&nbsp;{{$data->txtremark}}</td>
                                    </tr>
                                    @endif
                                    <tr>
                                      <td align="left" valign="top" class="txtallvalues">Instructions</td>
                                      <td align="left" valign="top" class="txtallvalues"><span class="smalltextfont" style="font-size:11px;">Continue Treatment of Physician / Neurologist / Others<br>
Do &amp; Don&rsquo;t After surgery have been explained to the patient, relative and
                                    same has been printed on the file given to you<br>
                                  
In case of severe redness, pain or blurring of vision or any other emergency, Please
                                    contact the hospital on - 9370109617, 9552731024, 0721-2664880</span></td>
                                    </tr>
                                    <tr>
                                      <td align="left" valign="top" class="txtallvalues">&nbsp;</td>
                                      <td align="left" valign="top" class="txtallvalues txtallheading"><strong style="font-family: 'Poppins semibold';font-size: 10pt;">Please come for follow up at 09:00 AM on
                                      {{date("d M Y", strtotime(str_replace('-', '/',$data->FollowUpDate1)))}}.</strong></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>

                        <tr>
                          <td class="txtallheading">&nbsp;</td>
                        </tr>
                  </table>
                        
                  <div class="divFooter">
                        <table width="700" border="0" cellspacing="1" cellpadding="1">
                            <tr>
                                <td class="txtallheading">&nbsp;</td>
                            </tr>
                            <tr>
                                <td class="smalltextfont">&nbsp;</td>
                            </tr>
                            <tr>
                                <td class="txtallheading">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td width="38%" align="left" valign="top" class="alltextfont" style="font-size:10px;"><strong>OPD
                                                    Hours - Mon 10.30 AM - 08.00 PM </strong></td>
                                            <td width="38%" align="center" valign="top" class="alltextfont" style="font-size:10px;">
                                                <strong>Working Hours - Mon 8.00 AM - 08.00 PM </strong></td>
                                            <td width="22%" align="right" valign="top" class="alltextfont">
                                                <strong>Sunday Closed</strong></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            </table>
                            </div>
                   
                </div>
            </td>
        </tr>
    </table>



    <br>
</body>

</html>