<!DOCTYPE>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Siddhivinayak Netralaya</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;
    }

    .tblrightbtm {
        border-right-width: 1px;
        border-bottom-width: 1px;
        border-right-style: solid;
        border-bottom-style: solid;
        border-right-color: #CCCCCC;
        border-bottom-color: #CCCCCC;
    }

    .tblonlybtm {

        border-bottom-width: 1px;
        border-bottom-style: solid;
        border-right-color: #CCCCCC;
        border-bottom-color: #CCCCCC;
    }

    .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-collapse: collapse;
        font-family: "Poppins Medium";
        font-size: 8pt;
        font-style: normal;
        line-height: normal;
        font-weight: normal;
        font-variant: normal;
        color: #626262;
        word-spacing: normal;

    }

    .txtglasses {
        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: #626262;
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;
    }

    .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;
        }
    }
    .style7 {font-family: Poppins; font-size: 11px; font-style: normal; line-height: normal; font-weight: bold; font-variant: normal; color: #4C4C4C; }
    </style>
</head>
<script>
//window.print();
//window.onafterprint = window.close;
</script>
@php
use App\Http\Controllers\ConsultantController;
use App\Http\Controllers\OptoController;
@endphp
<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 align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="padding-bottom: 10px;padding-top:10px;">
                          <tr>
                            <td align="center" valign="middle" ><img src="{{url('headerlogo.jpg')}}"></td>
                          </tr>
                          <tr>
                            <td align="center" valign="middle" class="txtallheading" >Address : Sai Nagar, Saturna Road, Besides Dream Pride Park, Amravati.  Mob: 89996909936 </td>
                          </tr>
                          <tr>
                            <td align="center" valign="middle" class="txtallheading">Time : Mor - 12:00 AM to 4:00 PM. Eve - 6:00 PM to 9:00 PM (Sunday Closed) </td>
                          </tr>
                        </table></td>
                      </tr> 
                </table>            </td>
        </tr>
        <tr>
            <td align="center" valign="top" class="txtallheading"><strong>
                    OPD REPORT</strong> </td>
        </tr>
        <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="3" class="tblborder">
          <tr>
            <td width="13%" class="alltextfont"><strong>MRD NO : </strong></td>
            <td width="37%" class="alltextfont">{{$pt_data['items']['MrdNo']}}</td>
            <td width="32%" align="right" valign="top" class="alltextfont"><strong>DATE : </strong></td>
            <td width="18%" class="alltextfont">{{date("d/m/Y", strtotime(str_replace('-', '/',$opto_data['items']['VisitDate'])))}}</td>
          </tr>
          
          <tr>
            <td class="style7">NAME : </td>
            <td colspan="3" class="alltextfont">{{strtoupper(strtolower($pt_data['items']['PatientName']))}}</td>
          </tr>
        </table></td>
        </tr>
    </table>


    <table width="700" height="400" border="0" cellpadding="2" cellspacing="2" class="tblborder">
        <tr>
          <td height="400" align="left" valign="top">
            <table width="100%" border="0" cellspacing="0" cellpadding="5">
                      <tr>
                <td height="21" align="left" valign="top" class=" txtallheading">Diagnosis : </td>
                <td align="left" valign="top" class=" txtallheading alltextfont" style="font-family: 'Poppins';">
                    <span style="white-space: pre-wrap;">{{strtoupper(strtolower($consult_data['items']['Diagnosis']))}}</span>                </td>
            </tr>
                                                <tr class="tblrightbtm txtallheading">
              <td width="21%" align="left" valign="top" > Treatment :</td>
              <td height="53" align="left" valign="top" >
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
       
              @if($consult_treat_data['items']['TreatChk1'] == 1 || $consult_treat_data['items']['TreatChk2'] == 1 || $consult_treat_data['items']['TreatChk3'] == 1 || $consult_treat_data['items']['TreatChk4'] == 1 || $consult_treat_data['items']['TreatChk5'] == 1 || $consult_treat_data['items']['TreatChk6'] == 1 || $consult_treat_data['items']['TreatChk7'] == 1 || $consult_treat_data['items']['TreatChk8'] == 1 || $consult_treat_data['items']['TreatChk9'] == 1 || $consult_treat_data['items']['TreatChk10'] == 1)
                                Rx,
                                @endif
                    @if($consult_treat_data['items']['TreatChk1'] == 1)
                                            @if($consult_treat_data['items']['TreatFreq1'] == '8 TAP' || $consult_treat_data['items']['TreatFreq1'] == '6 TAP' ||
                                            $consult_treat_data['items']['TreatFreq1'] == '4 TAP' || $consult_treat_data['items']['TreatFreq1'] == '3 TAP' ||
                                            $consult_treat_data['items']['TreatFreq1'] == '2 TAP' || $consult_treat_data['items']['TreatFreq1'] == '1 TAP')
                                            <tr>
                                                <td align="left" valign="top" class="addrfont"><strong>{{strtoupper(strtolower($consult_treat_data['items']['TreatName1']))}}</strong></td>
                                            </tr>
                                            @php
                                            $TapValue = $consult_treat_data['items']['TreatFreq1'];
                                            $data1 = (new ConsultantController)->getTapValue($TapValue);
                                            @endphp
                                            @foreach($data1 as $result1)
                                            @php $treattapname1 = (new
                                            OptoController)->convertMarathi($consult_treat_data['items']['TreatType1'],$consult_treat_data['items']['TreatDose1'],
                                            $result1->Value,$consult_treat_data['items']['TreatDur1'],$consult_treat_data['items']['TreatEye1'],$consult_treat_data['items']['Language']); @endphp
                                            <tr>
            
                                                <td style="text-align:justify;font-family: Shivaji01;padding-left: 25px;" >
                                                    {{$treattapname1}}</td>
                                                @endforeach
                                            </tr>
                                            @else
                                            <tr>
            
                                                <td align="left" valign="top" class="addrfont"><strong>{{strtoupper(strtolower($consult_treat_data['items']['TreatName1']))}}</strong></td>
                                            </tr>
                                            <tr>
                                                <td style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                    {{$TreatName1}}</td>
                                            </tr>
                                            @endif
                                            <!-- <tr>
                                                <td align="left" valign="top">&nbsp;</td>
                                            </tr> -->
                                            @endif
            
                                            @if($consult_treat_data['items']['TreatChk2'] == 1)
                                            @if($consult_treat_data['items']['TreatFreq2'] == '8 TAP' || $consult_treat_data['items']['TreatFreq2'] == '6 TAP' ||
                                            $consult_treat_data['items']['TreatFreq2'] == '4 TAP' || $consult_treat_data['items']['TreatFreq2'] == '3 TAP' ||
                                            $consult_treat_data['items']['TreatFreq2'] == '2 TAP' || $consult_treat_data['items']['TreatFreq2'] == '1 TAP')
                                            <tr>
                                                <td align="left" valign="top" class="addrfont"><strong>{{strtoupper(strtolower($consult_treat_data['items']['TreatName2']))}} </strong></td>
                                            </tr>
                                            @php
                                            $TapValue2 = $consult_treat_data['items']['TreatFreq2'];
                                            $data2 = (new ConsultantController)->getTapValue($TapValue2);
                                            @endphp
                                            @foreach($data2 as $result2)
                                            @php $treattapname2 = (new
                                            OptoController)->convertMarathi($consult_treat_data['items']['TreatType2'],$consult_treat_data['items']['TreatDose2'],
                                            $result2->Value,$consult_treat_data['items']['TreatDur2'],$consult_treat_data['items']['TreatEye2'],$consult_treat_data['items']['Language']); @endphp
                                            <tr>
            
                                                <td style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                    {{$treattapname2}}</td>
                                                @endforeach
                                            </tr>
                                            @else
                                            <tr>
            
                                                <td align="left" valign="top" class="addrfont"><strong>{{strtoupper(strtolower($consult_treat_data['items']['TreatName2']))}} </strong></td>
                                            </tr>
                                            <tr>
                                                <td style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                    {{$TreatName2}}</td>
                                            </tr>
                                            @endif
                                            <!-- <tr>
                                                <td align="left" valign="top">&nbsp;</td>
                                            </tr> -->
                                            @endif
            
            
                                            @if($consult_treat_data['items']['TreatChk3'] == 1)
                                            @if($consult_treat_data['items']['TreatFreq3'] == '8 TAP' || $consult_treat_data['items']['TreatFreq3'] == '6 TAP' ||
                                            $consult_treat_data['items']['TreatFreq3'] == '4 TAP' || $consult_treat_data['items']['TreatFreq3'] == '3 TAP' ||
                                            $consult_treat_data['items']['TreatFreq3'] == '2 TAP' || $consult_treat_data['items']['TreatFreq3'] == '1 TAP')
                                            <tr>
                                                <td align="left" valign="top" class="addrfont"><strong>{{strtoupper(strtolower($consult_treat_data['items']['TreatName3']))}} </td>
                                            </tr>
                                            @php
                                            $TapValue3 = $consult_treat_data['items']['TreatFreq3'];
                                            $data3 = (new ConsultantController)->getTapValue($TapValue3);
                                            @endphp
                                            @foreach($data3 as $result3)
                                            @php $treattapname3 = (new
                                            OptoController)->convertMarathi($consult_treat_data['items']['TreatType3'],$consult_treat_data['items']['TreatDose3'],
                                            $result3->Value,$consult_treat_data['items']['TreatDur3'],$consult_treat_data['items']['TreatEye3'],$consult_treat_data['items']['Language']); @endphp
                                            <tr>
            
                                                <td style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                    {{$treattapname3}}</td>
                                                @endforeach
                                            </tr>
                                            @else
                                            <tr>
            
                                                <td align="left" valign="top" class="addrfont"><strong>{{strtoupper(strtolower($consult_treat_data['items']['TreatName3']))}} </td>
                                            </tr>
                                            <tr>
                                                <td style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                    {{$TreatName3}}</td>
                                            </tr>
                                            @endif
                                            <!-- <tr>
                                                <td align="left" valign="top">&nbsp;</td>
                                            </tr> -->
                                            @endif
            
                                            @if($consult_treat_data['items']['TreatChk4'] == 1)
                                            @if($consult_treat_data['items']['TreatFreq4'] == '8 TAP' || $consult_treat_data['items']['TreatFreq4'] == '6 TAP' ||
                                            $consult_treat_data['items']['TreatFreq4'] == '4 TAP' || $consult_treat_data['items']['TreatFreq4'] == '3 TAP' ||
                                            $consult_treat_data['items']['TreatFreq4'] == '2 TAP' || $consult_treat_data['items']['TreatFreq4'] == '1 TAP')
                                            <tr>
                                                <td align="left" valign="top" class="addrfont"><strong>{{strtoupper(strtolower($consult_treat_data['items']['TreatName4']))}}</strong> </td>
                                            </tr>
                                            @php
                                            $TapValue4 = $consult_treat_data['items']['TreatFreq4'];
                                            $data4 = (new ConsultantController)->getTapValue($TapValue4);
                                            @endphp
                                            @foreach($data4 as $result4)
                                            @php $treattapname4 = (new
                                            OptoController)->convertMarathi($consult_treat_data['items']['TreatType4'],$consult_treat_data['items']['TreatDose4'],
                                            $result4->Value,$consult_treat_data['items']['TreatDur4'],$consult_treat_data['items']['TreatEye4'],$consult_treat_data['items']['Language']); @endphp
                                            <tr>
            
                                                <td style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                    {{$treattapname4}}</td>
                                                @endforeach
                                            </tr>
                                            @else
                                            <tr>
            
                                                <td align="left" valign="top" class="addrfont"><strong>{{strtoupper(strtolower($consult_treat_data['items']['TreatName4']))}}</strong> </td>
                                            </tr>
                                            <tr>
                                                <td style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                    {{$TreatName4}}</td>
                                            </tr>
                                            @endif
                                            <!-- <tr>
                                                <td align="left" valign="top">&nbsp;</td>
                                            </tr> -->
                                            @endif
            
                                            @if($consult_treat_data['items']['TreatChk5'] == 1)
                                            @if($consult_treat_data['items']['TreatFreq5'] == '8 TAP' || $consult_treat_data['items']['TreatFreq5'] == '6 TAP' ||
                                            $consult_treat_data['items']['TreatFreq5'] == '4 TAP' || $consult_treat_data['items']['TreatFreq5'] == '3 TAP' ||
                                            $consult_treat_data['items']['TreatFreq5'] == '2 TAP' || $consult_treat_data['items']['TreatFreq5'] == '1 TAP')
                                            <tr>
                                                <td align="left" valign="top"><strong>{{strtoupper(strtolower($consult_treat_data['items']['TreatName5']))}}</strong></td>
                                            </tr>
                                            @php
                                            $TapValue5 = $consult_treat_data['items']['TreatFreq5'];
                                            $data5 = (new ConsultantController)->getTapValue($TapValue5);
                                            @endphp
                                            @foreach($data5 as $result5)
                                            @php $treattapname5 = (new
                                            OptoController)->convertMarathi($consult_treat_data['items']['TreatType5'],$consult_treat_data['items']['TreatDose5'],
                                            $result5->Value,$consult_treat_data['items']['TreatDur5'],$consult_treat_data['items']['TreatEye5'],$consult_treat_data['items']['Language']); @endphp
                                            <tr>
            
                                                <td style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                    {{$treattapname5}}</td>
                                                @endforeach
                                            </tr>
                                            @else
                                            <tr>
            
                                                <td align="left" valign="top" class="addrfont"><strong>{{strtoupper(strtolower($consult_treat_data['items']['TreatName5']))}}</strong> </td>
                                            </tr>
                                            <tr>
                                                <td style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                    {{$TreatName5}}</td>
                                            </tr>
                                            @endif
                                            <!-- <tr>
                                                <td align="left" valign="top">&nbsp;</td>
                                            </tr> -->
                                            @endif
            
                                            @if($consult_treat_data['items']['TreatChk6'] == 1)
                                            @if($consult_treat_data['items']['TreatFreq6'] == '8 TAP' || $consult_treat_data['items']['TreatFreq6'] == '6 TAP' ||
                                            $consult_treat_data['items']['TreatFreq6'] == '4 TAP' || $consult_treat_data['items']['TreatFreq6'] == '3 TAP' ||
                                            $consult_treat_data['items']['TreatFreq6'] == '2 TAP' || $consult_treat_data['items']['TreatFreq6'] == '1 TAP')
                                            <tr>
                                                <td align="left" valign="top" class="addrfont"><strong>{{strtoupper(strtolower($consult_treat_data['items']['TreatName6']))}}</strong> </td>
                                            </tr>
                                            @php
                                            $TapValue6 = $consult_treat_data['items']['TreatFreq6'];
                                            $data6 = (new ConsultantController)->getTapValue($TapValue6);
                                            @endphp
                                            @foreach($data6 as $result6)
                                            @php $treattapname6 = (new
                                            OptoController)->convertMarathi($consult_treat_data['items']['TreatType6'],$consult_treat_data['items']['TreatDose6'],
                                            $result6->Value,$consult_treat_data['items']['TreatDur6'],$consult_treat_data['items']['TreatEye6'],$consult_treat_data['items']['Language']); @endphp
                                            <tr>
            
                                                <td style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                    {{$treattapname6}}</td>
                                                @endforeach
                                            </tr>
                                            @else
                                            <tr>
            
                                                <td align="left" valign="top" class="addrfont"><strong>{{strtoupper(strtolower($consult_treat_data['items']['TreatName6']))}}</strong> </td>
                                            </tr>
                                            <tr>
                                                <td style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                    {{$TreatName6}}</td>
                                            </tr>
                                            @endif
                                            <!-- <tr>
                                                <td align="left" valign="top">&nbsp;</td>
                                            </tr> -->
                                            @endif
            
                                            @if($consult_treat_data['items']['TreatChk7'] == 1)
                                            @if($consult_treat_data['items']['TreatFreq7'] == '8 TAP' || $consult_treat_data['items']['TreatFreq7'] == '6 TAP' ||
                                            $consult_treat_data['items']['TreatFreq7'] == '4 TAP' || $consult_treat_data['items']['TreatFreq7'] == '3 TAP' ||
                                            $consult_treat_data['items']['TreatFreq7'] == '2 TAP' || $consult_treat_data['items']['TreatFreq7'] == '1 TAP')
                                            <tr>
                                                <td align="left" valign="top" class="addrfont"><strong>{{strtoupper(strtolower($consult_treat_data['items']['TreatName7']))}}</strong></td>
                                            </tr>
                                            @php
                                            $TapValue7 = $consult_treat_data['items']['TreatFreq7'];
                                            $data7 = (new ConsultantController)->getTapValue($TapValue7);
                                            @endphp
                                            @foreach($data7 as $result7)
                                            @php $treattapname7 = (new
                                            OptoController)->convertMarathi($consult_treat_data['items']['TreatType7'],$consult_treat_data['items']['TreatDose7'],
                                            $result7->Value,$consult_treat_data['items']['TreatDur7'],$consult_treat_data['items']['TreatEye7'],$consult_treat_data['items']['Language']); @endphp
                                            <tr>
            
                                                <td style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                    {{$treattapname7}}</td>
                                                @endforeach
                                            </tr>
                                            @else
                                            <tr>
            
                                                <td align="left" valign="top" class="addrfont"><strong>{{strtoupper(strtolower($consult_treat_data['items']['TreatName7']))}}</strong> </td>
                                            </tr>
                                            <tr>
                                                <td style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                    {{$TreatName7}}</td>
                                            </tr>
                                            @endif
                                            <!-- <tr>
                                                <td align="left" valign="top">&nbsp;</td>
                                            </tr> -->
                                            @endif
            
                                            @if($consult_treat_data['items']['TreatChk8'] == 1)
                                            @if($consult_treat_data['items']['TreatFreq8'] == '8 TAP' || $consult_treat_data['items']['TreatFreq8'] == '6 TAP' ||
                                            $consult_treat_data['items']['TreatFreq8'] == '4 TAP' || $consult_treat_data['items']['TreatFreq8'] == '3 TAP' ||
                                            $consult_treat_data['items']['TreatFreq8'] == '2 TAP' || $consult_treat_data['items']['TreatFreq8'] == '1 TAP')
                                            <tr>
                                                <td align="left" valign="top" class="addrfont"><strong>{{strtoupper(strtolower($consult_treat_data['items']['TreatName8']))}}</strong></td>
                                            </tr>
                                            @php
                                            $TapValue8 = $consult_treat_data['items']['TreatFreq8'];
                                            $data8 = (new ConsultantController)->getTapValue($TapValue8);
                                            @endphp
                                            @foreach($data8 as $result8)
                                            @php $treattapname8 = (new
                                            OptoController)->convertMarathi($consult_treat_data['items']['TreatType8'],$consult_treat_data['items']['TreatDose8'],
                                            $result8->Value,$consult_treat_data['items']['TreatDur8'],$consult_treat_data['items']['TreatEye8'],$consult_treat_data['items']['Language']); @endphp
                                            <tr>
            
                                                <td style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                    {{$treattapname8}}</td>
                                                @endforeach
                                            </tr>
                                            @else
                                            <tr>
            
                                                <td align="left" valign="top" class="addrfont"><strong>{{strtoupper(strtolower($consult_treat_data['items']['TreatName8']))}}</strong> </td>
                                            </tr>
                                            <tr>
                                                <td style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                    {{$TreatName8}}</td>
                                            </tr>
                                            @endif
                                            <!-- <tr>
                                                <td align="left" valign="top">&nbsp;</td>
                                            </tr> -->
                                            @endif
            
                                            @if($consult_treat_data['items']['TreatChk9'] == 1)
                                            @if($consult_treat_data['items']['TreatFreq9'] == '8 TAP' || $consult_treat_data['items']['TreatFreq9'] == '6 TAP' ||
                                            $consult_treat_data['items']['TreatFreq9'] == '4 TAP' || $consult_treat_data['items']['TreatFreq9'] == '3 TAP' ||
                                            $consult_treat_data['items']['TreatFreq9'] == '2 TAP' || $consult_treat_data['items']['TreatFreq9'] == '1 TAP')
                                            <tr>
                                                <td align="left" valign="top" class="addrfont"><strong>{{strtoupper(strtolower($consult_treat_data['items']['TreatName9']))}}</strong> </td>
                                            </tr>
                                            @php
                                            $TapValue9 = $consult_treat_data['items']['TreatFreq9'];
                                            $data9 = (new ConsultantController)->getTapValue($TapValue9);
                                            @endphp
                                            @foreach($data9 as $result9)
                                            @php $treattapname9 = (new
                                            OptoController)->convertMarathi($consult_treat_data['items']['TreatType9'],$consult_treat_data['items']['TreatDose9'],
                                            $result9->Value,$consult_treat_data['items']['TreatDur9'],$consult_treat_data['items']['TreatEye9'],$consult_treat_data['items']['Language']); @endphp
                                            <tr>
            
                                                <td style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                    {{$treattapname9}}</td>
                                                @endforeach
                                            </tr>
                                            @else
                                            <tr>
            
                                                <td align="left" valign="top" class="addrfont"><strong>{{strtoupper(strtolower($consult_treat_data['items']['TreatName9']))}}</strong> </td>
                                            </tr>
                                            <tr>
                                                <td style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                    {{$TreatName9}}</td>
                                            </tr>
                                            @endif
                                            <!-- <tr>
                                                <td align="left" valign="top">&nbsp;</td>
                                            </tr> -->
                                            @endif
            
                                            @if($consult_treat_data['items']['TreatChk10'] == 1)
                                            @if($consult_treat_data['items']['TreatFreq10'] == '8 TAP' || $consult_treat_data['items']['TreatFreq10'] == '6 TAP' ||
                                            $consult_treat_data['items']['TreatFreq10'] == '4 TAP' || $consult_treat_data['items']['TreatFreq10'] == '3 TAP' ||
                                            $consult_treat_data['items']['TreatFreq10'] == '2 TAP' || $consult_treat_data['items']['TreatFreq10'] == '1 TAP')
                                            <tr>
                                                <td align="left" valign="top" class="addrfont"><strong>{{strtoupper(strtolower($consult_treat_data['items']['TreatName10']))}}</strong> </td>
                                            </tr>
                                            @php
                                            $TapValue10 = $consult_treat_data['items']['TreatFreq10'];
                                            $data10 = (new ConsultantController)->getTapValue($TapValue10);
                                            @endphp
                                            @foreach($data10 as $result10)
                                            @php $treattapname10 = (new
                                            OptoController)->convertMarathi($consult_treat_data['items']['TreatType10'],$consult_treat_data['items']['TreatDose10'],
                                            $result10->Value,$consult_treat_data['items']['TreatDur10'],$consult_treat_data['items']['TreatEye10'],$consult_treat_data['items']['Language']); @endphp
                                            <tr>
            
                                                <td style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                    {{$treattapname10}}</td>
                                                @endforeach
                                            </tr>
                                            @else
                                            <tr>
            
                                                <td align="left" valign="top" class="addrfont"><strong>{{strtoupper(strtolower($consult_treat_data['items']['TreatName10']))}}</strong> </td>
                                            </tr>
                                            <tr>
                                                <td style="text-align:justify;font-family: Shivaji01;padding-left: 25px;">
                                                    {{$TreatName10}}</td>
                                            </tr>
                                            @endif
                                            <!-- <tr>
                                                <td align="left" valign="top">&nbsp;</td>
                                            </tr> -->
                                            @endif
                                <tr>
                                    <td align="left" valign="top">&nbsp;</td>
                                </tr>
                                                              <tr>
                                <td><span style="font-size: 9px;line-height: 10px;"><br>
                                </span></td>
</tr>
        </table>            </td>
            </tr>
                                                <tr class="tblrightbtm txtallheading">
                                                  <td align="left" valign="top" >Advice :</td>
                                                  <td height="53" align="left" valign="top"  style="font-family: 'Poppins';white-space: pre-wrap;">{{strtoupper($consult_data['items']['Advice'])}}</td>
                                                </tr>
          </table>
          <br></td>
        </tr>
</table>

    </td>
    </tr>


    </table>
    <br>
    <br>
  
   <table width="700" border="0" cellspacing="0" cellpadding="0">
     @if($opto_data['items']['PrintCrRef'] == 1)
            <tr>
                <td>
                    <table width="100%" border="0" cellspacing="2" cellpadding="2">
                        <tr>
                            <td width="50%" align="center" valign="top" class="txtallheading" style=><strong>Prescription of Eye
                                    Glasses</strong></td>
                        </tr>
                        <tr>
                          <td width="50%" align="center" valign="top" class="txtfundus"><table width="70%" border="0" cellspacing="0" cellpadding="3" class="tblborder">
                            <tr>
                              <td width="6%" align="center" valign="top" class="txtglasses">&nbsp;</td>
                              <td width="6%" align="center" valign="top" class="txtglasses">SPH</td>
                              <td width="12%" align="center" valign="top" class="txtglasses">CYL</td>
                              <td width="12%" align="center" valign="top" class="txtglasses">AXIS</td>
                              <!-- <td width="6%" align="center" valign="top" class="txtglasses">VISION</td> -->
                              <td width="6%" align="center" valign="top" class="txtglasses">ADD</td>
                              <td width="12%" align="center" valign="top" class="txtglasses">VISION</td>
                              <td width="12%" align="center" valign="top" class="txtglasses">NEAR</td>
                            </tr>
							<tr>
                              <td width="6%" align="center" valign="top" class="txtglasses">RE</td>
                              <td width="6%" align="center" valign="top" class="txtglasses">{{$opto_data['items']['SrSphRe']}}</td>
                              <td width="12%" align="center" valign="top" class="txtglasses">{{$opto_data['items']['SrCylRe']}}</td>
                              <td width="12%" align="center" valign="top" class="txtglasses">{{$opto_data['items']['SrAxisRe']}}</td>

                              <td width="6%" align="center" valign="top" class="txtglasses">{{$opto_data['items']['SrNearAddRe']}}</td>
                              
                              <td width="6%" align="center" valign="top" class="txtglasses">{{strtoupper($opto_data['items']['SrVaGlassRe'])}}</td> 
                              <!-- <td width="12%" align="center" valign="top" class="txtglasses">{{$opto_data['items']['PgNearAddLe']}}</td> -->
                              <td width="12%" align="center" valign="top" class="txtglasses">{{strtoupper($opto_data['items']['SrNvRe'])}}</td> 
                            </tr>
							<tr>
                              <td width="6%" align="center" valign="top" class="txtglasses">LE</td>
                              <td width="6%" align="center" valign="top" class="txtglasses">{{$opto_data['items']['SrSphLe']}}</td>
                              <td width="12%" align="center" valign="top" class="txtglasses">{{$opto_data['items']['SrCylLe']}}</td>
                              <td width="12%" align="center" valign="top" class="txtglasses">{{$opto_data['items']['SrAxisLe']}}</td>
  
                              <td width="6%" align="center" valign="top" class="txtglasses">{{$opto_data['items']['SrNearAddLe']}}</td>
                              
                              <td width="6%" align="center" valign="top" class="txtglasses">{{strtoupper($opto_data['items']['SrVaGlassLe'])}}</td> 
                              <!-- <td width="12%" align="center" valign="top" class="txtglasses">{{$opto_data['items']['PgNearAddLe']}}</td> -->
                             <td width="12%" align="center" valign="top" class="txtglasses">{{strtoupper($opto_data['items']['SrNvLe'])}}</td> 
                            </tr>
                           
                          </table></td>
                        </tr>
                    </table>
                </td>
            </tr>
            @endif
            <tr>
              <td align="left" valign="top">&nbsp;</td>
            </tr>
            
</table>
        

</body>

</html>