<fieldset>
    <legend>Templates</legend>
    <div class="table-responsive" style="overflow-x:auto;">
        <table id="report-table" class="table table-bordered table-striped mb-0">
            <thead>
                <tr>
                    <th colspan="6" align="left" valign="top">
                        <div class="form-group">
                           
                            <input  onchange="getRecords(this.value)" type="text" list="templates" value="<?php echo e($consult_treat_data['items']['Treatment']); ?>"  style="height:35px;" name="Treatment" id="Treatment" class="form-control" placeholder="Search Treatment">
                            
                           <datalist id="templates">
                                                   <?php $__currentLoopData = $treatmentlist; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $result): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <option value="<?php echo $result['Treatment']; ?>">
                                                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                                </datalist>

                            </div>
                            

                       

                        
                    </th>
                    <th colspan="1" align="left" valign="top">
                    <button class="btn btn-secondary" type="button" onclick="clearAll()">C</button>
                        <button class="btn btn-secondary" type="button" data-toggle="modal"
                            data-target="#modal-report656" id="add-drugs" onclick="addNewDrug()">+</button>
                    </th>
                </tr>
                <tr>
                    <th width="20" align="center" valign="top">&nbsp;&nbsp;&nbsp;#&nbsp;&nbsp;&nbsp;</th>
                    <th width="50"> Type </th>
                    <th width="150"> Name </th>
                    <th width="50">Dose</th>
                    <th width="50">Freq.</th>
                    <th width="70">Duration</th>
                    <th width="20">Eye </th>
                </tr>
            </thead>
            <tbody id="showTreatments">
                <tr>
                    <td align="center" valign="top"><input class="form-check-input" type="checkbox" value="1"
                            id="TreatChk1" name="TreatChk1" <?php if($consult_treat_data['items']['TreatChk1'] == '1') {?> checked <?php } ?>
                            style="height:35px;" onclick="treatcheck('TreatChk1',0,1)">
                    </td>
                    <td>
                        <select class="form-control" name="TreatType1" id="TreatType1" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
        foreach($json_data['JsonData']['TreatType'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatType1'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <input class="form-control" type="text" name="TreatName1" list="Treat_Name1" id="TreatName1"
                            value="<?php echo e($consult_treat_data['items']['TreatName1']); ?>" style="height:35px;" 
                            oninput="get_drug_name(1)" onClick="this.select();">
                            <div id="DrugLists1">
                            </div>
                     
                    </td>
                    <td>
                        <select class="form-control" name="TreatDose1" id="TreatDose1" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatDose'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatDose1'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatFreq1" id="TreatFreq1" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatFreq'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatFreq1'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatDur1" id="TreatDur1" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatDur'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatDur1'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatEye1" id="TreatEye1" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatEye'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatEye1'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                </tr>

                <tr>
                    <td align="center" valign="top"><input class="form-check-input" type="checkbox" value="1"
                            id="TreatChk2" name="TreatChk2" <?php if($consult_treat_data['items']['TreatChk2'] == '1') {?> checked <?php } ?>
                            style="height:35px;" onclick="treatcheck('TreatChk2',0,2)">
                    </td>
                    <td>
                        <select class="form-control" name="TreatType2" id="TreatType2" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
        foreach($json_data['JsonData']['TreatType'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatType2'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <input class="form-control" type="text" name="TreatName2" list="Treat_Name1" id="TreatName2"
                            value="<?php echo e($consult_treat_data['items']['TreatName2']); ?>" style="height:35px;" 
                            oninput="get_drug_name(2)" onClick="this.select();">
                            <div id="DrugLists2">
                            </div>

                    </td>
                    <td>
                        <select class="form-control" name="TreatDose2" id="TreatDose2" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatDose'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatDose2'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatFreq2" id="TreatFreq2" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatFreq'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatFreq2'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatDur2" id="TreatDur2" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatDur'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatDur2'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatEye2" id="TreatEye2" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatEye'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatEye2'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>
                    </td>
                </tr>

                <tr>
                    <td align="center" valign="top"><input class="form-check-input" type="checkbox" value="1"
                            id="TreatChk3" name="TreatChk3" <?php if($consult_treat_data['items']['TreatChk3'] == '1') {?> checked <?php } ?>
                            style="height:35px;" onclick="treatcheck('TreatChk3',0,3)">
                    </td>
                    <td>
                        <select class="form-control" name="TreatType3" id="TreatType3" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
        foreach($json_data['JsonData']['TreatType'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatType3'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <input class="form-control" type="text" name="TreatName3" list="Treat_Name1" id="TreatName3"
                            value="<?php echo e($consult_treat_data['items']['TreatName3']); ?>" style="height:35px;" 
                            oninput="get_drug_name(3)" onClick="this.select();">
                            <div id="DrugLists3">
                            </div>

                    </td>
                    <td>
                        <select class="form-control" name="TreatDose3" id="TreatDose3" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatDose'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatDose3'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatFreq3" id="TreatFreq3" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatFreq'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatFreq3'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatDur3" id="TreatDur3" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatDur'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatDur3'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatEye3" id="TreatEye3" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatEye'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatEye3'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>
                    </td>
                </tr>


                <tr>
                    <td align="center" valign="top"><input class="form-check-input" type="checkbox" value="1"
                            id="TreatChk4" name="TreatChk4" <?php if($consult_treat_data['items']['TreatChk4'] == '1') {?> checked <?php } ?>
                            style="height:35px;" onclick="treatcheck('TreatChk4',0,4)">
                    </td>
                    <td>
                        <select class="form-control" name="TreatType4" id="TreatType4" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
        foreach($json_data['JsonData']['TreatType'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatType4'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <input class="form-control" type="text" name="TreatName4" list="Treat_Name1" id="TreatName4"
                            value="<?php echo e($consult_treat_data['items']['TreatName4']); ?>" style="height:35px;" 
                            oninput="get_drug_name(4)" onClick="this.select();">
                            <div id="DrugLists4">
                            </div>

                    </td>
                    <td>
                        <select class="form-control" name="TreatDose4" id="TreatDose4" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatDose'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatDose4'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatFreq4" id="TreatFreq4" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatFreq'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatFreq4'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatDur4" id="TreatDur4" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatDur'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatDur4'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatEye4" id="TreatEye4" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatEye'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatEye4'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>
                    </td>
                </tr>

                <tr>
                    <td align="center" valign="top"><input class="form-check-input" type="checkbox" value="1"
                            id="TreatChk5" name="TreatChk5" <?php if($consult_treat_data['items']['TreatChk5'] == '1') {?> checked <?php } ?>
                            style="height:35px;" onclick="treatcheck('TreatChk5',0,5)">
                    </td>
                    <td>
                        <select class="form-control" name="TreatType5" id="TreatType5" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
        foreach($json_data['JsonData']['TreatType'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatType5'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <input class="form-control" type="text" name="TreatName5" list="Treat_Name1" id="TreatName5"
                            value="<?php echo e($consult_treat_data['items']['TreatName5']); ?>" style="height:35px;" 
                            oninput="get_drug_name(5)" onClick="this.select();">
                            <div id="DrugLists5">
                            </div>

                    </td>
                    <td>
                        <select class="form-control" name="TreatDose5" id="TreatDose5" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatDose'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatDose5'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatFreq5" id="TreatFreq5" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatFreq'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatFreq5'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatDur5" id="TreatDur5" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatDur'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatDur5'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatEye5" id="TreatEye5" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatEye'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatEye5'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>
                    </td>
                </tr>

                <tr>
                    <td align="center" valign="top"><input class="form-check-input" type="checkbox" value="1"
                            id="TreatChk6" name="TreatChk6" <?php if($consult_treat_data['items']['TreatChk6'] == '1') {?> checked <?php } ?>
                            style="height:35px;" onclick="treatcheck('TreatChk6',0,6)">
                    </td>
                    <td>
                        <select class="form-control" name="TreatType6" id="TreatType6" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
        foreach($json_data['JsonData']['TreatType'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatType6'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <input class="form-control" type="text" name="TreatName6" list="Treat_Name1" id="TreatName6"
                            value="<?php echo e($consult_treat_data['items']['TreatName6']); ?>" style="height:35px;" 
                            oninput="get_drug_name(6)" onClick="this.select();">
                            <div id="DrugLists6">
                            </div>

                    </td>
                    <td>
                        <select class="form-control" name="TreatDose6" id="TreatDose6" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatDose'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatDose6'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatFreq6" id="TreatFreq6" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatFreq'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatFreq6'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatDur6" id="TreatDur6" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatDur'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatDur6'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatEye6" id="TreatEye6" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatEye'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatEye6'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>
                    </td>
                </tr>

                <tr>
                    <td align="center" valign="top"><input class="form-check-input" type="checkbox" value="1"
                            id="TreatChk7" name="TreatChk7" <?php if($consult_treat_data['items']['TreatChk7'] == '1') {?> checked <?php } ?>
                            style="height:35px;" onclick="treatcheck('TreatChk7',0,7)">
                    </td>
                    <td>
                        <select class="form-control" name="TreatType7" id="TreatType7" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
        foreach($json_data['JsonData']['TreatType'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatType7'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <input class="form-control" type="text" name="TreatName7" list="Treat_Name1" id="TreatName7"
                            value="<?php echo e($consult_treat_data['items']['TreatName7']); ?>" style="height:35px;" 
                            oninput="get_drug_name(7)" onClick="this.select();">
                            <div id="DrugLists7">
                            </div>

                    </td>
                    <td>
                        <select class="form-control" name="TreatDose7" id="TreatDose7" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatDose'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatDose7'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatFreq7" id="TreatFreq7" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatFreq'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatFreq7'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatDur7" id="TreatDur7" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatDur'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatDur7'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatEye7" id="TreatEye7" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatEye'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatEye7'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>
                    </td>
                </tr>

                <tr>
                    <td align="center" valign="top"><input class="form-check-input" type="checkbox" value="1"
                            id="TreatChk8" name="TreatChk8" <?php if($consult_treat_data['items']['TreatChk8'] == '1') {?> checked <?php } ?>
                            style="height:35px;" onclick="treatcheck('TreatChk8',0,8)">
                    </td>
                    <td>
                        <select class="form-control" name="TreatType8" id="TreatType8" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
        foreach($json_data['JsonData']['TreatType'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatType8'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <input class="form-control" type="text" name="TreatName8" list="Treat_Name1" id="TreatName8"
                            value="<?php echo e($consult_treat_data['items']['TreatName8']); ?>" style="height:35px;" 
                            oninput="get_drug_name(8)" onClick="this.select();">
                            <div id="DrugLists8">
                            </div>

                    </td>
                    <td>
                        <select class="form-control" name="TreatDose8" id="TreatDose8" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatDose'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatDose8'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatFreq8" id="TreatFreq8" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatFreq'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatFreq8'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatDur8" id="TreatDur8" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatDur'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatDur8'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatEye8" id="TreatEye8" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatEye'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatEye8'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>
                    </td>
                </tr>

               <!-- <tr>
                    <td align="center" valign="top"><input class="form-check-input" type="checkbox" value="1"
                            id="TreatChk9" name="TreatChk9" <?php if($consult_treat_data['items']['TreatChk9'] == '1') {?> checked <?php } ?>
                            style="height:35px;" onclick="treatcheck('TreatChk9')">
                    </td>
                    <td>
                        <select class="form-control" name="TreatType9" id="TreatType9" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
        foreach($json_data['JsonData']['TreatType'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatType9'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <input class="form-control" type="text" name="TreatName9" list="Treat_Name1" id="TreatName9"
                            value="<?php echo e($consult_treat_data['items']['TreatName9']); ?>" style="height:35px;" 
                            oninput="get_drug_name(9)" onClick="this.select();">
                            <div id="DrugLists9">
                            </div>

                    </td>
                    <td>
                        <select class="form-control" name="TreatDose9" id="TreatDose9" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatDose'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatDose9'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatFreq9" id="TreatFreq9" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatFreq'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatFreq9'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatDur9" id="TreatDur9" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatDur'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatDur9'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatEye9" id="TreatEye9" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatEye'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatEye9'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>
                    </td>
                </tr>

                <tr>
                    <td align="center" valign="top"><input class="form-check-input" type="checkbox" value="1"
                            id="TreatChk10" name="TreatChk10" <?php if($consult_treat_data['items']['TreatChk10'] == '1') {?> checked
                            <?php } ?> style="height:35px;" onclick="treatcheck('TreatChk10')">
                    </td>
                    <td>
                        <select class="form-control" name="TreatType10" id="TreatType10" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
        foreach($json_data['JsonData']['TreatType'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatType10'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <input class="form-control" type="text" name="TreatName10" list="Treat_Name1" id="TreatName10"
                            value="<?php echo e($consult_treat_data['items']['TreatName10']); ?>" style="height:35px;" 
                            oninput="get_drug_name(10)" onClick="this.select();">
                            <div id="DrugLists10">
                            </div>

                    </td>
                    <td>
                        <select class="form-control" name="TreatDose10" id="TreatDose10" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatDose'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatDose10'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatFreq10" id="TreatFreq10" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatFreq'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatFreq10'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatDur10" id="TreatDur10" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatDur'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatDur10'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>

                    </td>
                    <td>
                        <select class="form-control" name="TreatEye10" id="TreatEye10" style="height:35px;">

                            <option value="" selected>...</option>
                            <?php
foreach($json_data['JsonData']['TreatEye'] as $result) {?>
                            <option value="<?php echo $result['Values']; ?>"
                                <?php if($consult_treat_data['items']['TreatEye10'] == $result['Values']){?> selected <?php } ?>>
                                <?php echo e($result['Values']); ?></option>
                            <?php } ?>
                        </select>
                    </td>
                </tr>-->


            </tbody>
        </table>
    </div>
</fieldset><?php /**PATH /home/gssnagpu/public_html/hospsoft.in/siddhivinaynetra/resources/views/opd/incedittreatments.blade.php ENDPATH**/ ?>