 <?php 
$user_id = $_SESSION['Admin']['id'];
$sql77 = "SELECT * FROM tbl_users WHERE id='$user_id'";
$row77 = getRecord($sql77);
 include_once 'top-header.php'; ?>

 <div class="sidenav bg-dark align-items-lg-center">
                <div id="layout-sidenav" class=" container layout-sidenav-horizontal sidenav-horizontal flex-grow-0 bg-dark">
                    <ul class="sidenav-inner">
                        <!-- Dashboards -->

 <!-- Layouts -->
                        <li class="sidenav-divider mb-1"></li>
                        <li class="sidenav-header small font-weight-semibold">UI Components</li>
                       

        
         <li class="sidenav-item">
<a href="dashboard.php" class="sidenav-link">
<!-- <i class="sidenav-icon feather icon-home"></i> -->
<div>Dashboard</div>
<?php if($Page=='Dashboard') {?>
<div class="pl-1 ml-auto">
<span class="badge badge-dot badge-primary"></span>
</div>
<?php } ?>
</a>
</li>

<li class="sidenav-item">
                        <a href="javascript:" class="sidenav-link sidenav-toggle">
                           <!--  <i class="sidenav-icon feather icon-activity"></i> -->
                            <div>MASTER</div>
                        </a>
                        <ul class="sidenav-menu">
                            <li class="sidenav-item"><a href="usermaster.php" class="sidenav-link">
                                <div>User Master</div>
                                <?php if($Page=='User-Master') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li>

                                <li class="sidenav-item"><a href="ref-letter-master.php" class="sidenav-link">
                                <div>Refferal Letter Master</div>
                                <?php if($Page=='Letter-Master') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li>
                                
                                <li class="sidenav-item"><a href="follow-date.php" class="sidenav-link">
                                <div>Holidays</div>
                                <?php if($Page=='Follow-Date') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li>

                                <li class="sidenav-item"><a href="drug-master.php" class="sidenav-link">
                                <div>Drug Master</div>
                                <?php if($Page=='Drug-Master') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li>

                                <li class="sidenav-item"><a href="frequency-master.php" class="sidenav-link">
                                <div>Frequency Master</div>
                                <?php if($Page=='Frequency-Master') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li>

                                <li class="sidenav-item"><a href="telugu-master.php" class="sidenav-link">
                                <div>Telugu Master</div>
                                <?php if($Page=='Telugu-Master') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li>

                               <!--  <li class="sidenav-item"><a href="bedmaster.php" class="sidenav-link">
                                    <div>Bed Master</div>
                                    <?php if($Page=='Bed-Master') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li> -->
                                
                            <!--<li class="sidenav-item"><a href="treatmentmaster.php" class="sidenav-link">
                                    <div>Disease Wise Treatment</div>
                                    <?php if($Page=='Disease-Treatment') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li>

                                 <li class="sidenav-item"><a href="packagemaster.php" class="sidenav-link">
                                    <div>Package Master</div>
                                    <?php if($Page=='Package-Master') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li>  

                               <li class="sidenav-item"><a href="addprocedure.php" class="sidenav-link">
                                    <div>Procedure Master</div>
                                    <?php if($Page=='Procedure-Master') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li> 

                                <li class="sidenav-item"><a href="surgery-notes-master.php" class="sidenav-link">
                                    <div>O.T. Notes Master</div>
                                    <?php if($Page=='Surgery-Notes-Master') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li> 

                                <li class="sidenav-item"><a href="addlens.php" class="sidenav-link">
                                    <div>Lens Master</div>
                                    <?php if($Page=='Lens-Master') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li>  -->
                            
                            
                        </ul>
                    </li>
       
                    <li class="sidenav-item ">
                        <a href="javascript:" class="sidenav-link sidenav-toggle">
                           <!--  <i class="sidenav-icon feather icon-activity"></i> -->
                            <div>OPD</div>
                        </a>
                        <ul class="sidenav-menu">
                           
                                <!-- <li class="sidenav-item"><a href="#" class="sidenav-link">
                                    <div>Appointment Booking</div>
                                </a></li> -->
                           
                            <!--<li class="sidenav-item"><a href="queuemanagement.php" class="sidenav-link">
                                    <div>OPD Queue Management</div>
                                     <?php if($Page=='Queue-Management') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li>-->
                                <li class="sidenav-item"><a href="patientdetailform.php" class="sidenav-link">
                                    <div>New Patient</div>
                                    <?php if($Page=='New-Patient') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li>

                                <!--<li class="sidenav-item"><a href="opd-appointment.php" class="sidenav-link">
                                    <div>OPD Appointment</div>
                                    <?php if($Page=='OPD-Appointment') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li>-->
                                
                            <!--  <li class="sidenav-item"><a href="opdreceipt.php" class="sidenav-link">
                                    <div>OPD Receipt</div>
                                    <?php if($Page=='OPD-Receipt') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li> -->

                                 <li class="sidenav-item"><a href="referral-letter.php" class="sidenav-link">
                                    <div>Referral Letter</div>
                                    <?php if($Page=='Referral-Letter') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li>

                            <!--<li class="sidenav-item"><a href="treatement-form.php" class="sidenav-link">
                                    <div>OPD Treatment</div>
                                    <?php if($Page=='OPD-Treatment') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li> -->
                            
                        </ul>
                    </li>
                    
                                                                                 

                   <li class="sidenav-item">
                        <a href="javascript:" class="sidenav-link sidenav-toggle" data-toggle="tooltip" title="">
                           <!--  <i class="sidenav-icon feather icon-book"></i> -->
                            <div>REPORT</div>
                        </a>
                        <ul class="sidenav-menu">
                           
                           <li class="sidenav-item"><a href="opd-patient-report.php" class="sidenav-link">
                                <div>OPD Patient Report</div>
                                    <?php if($Page=='OPD-Patient-Report') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li>
                                
                                <li class="sidenav-item"><a href="opd-patient-month-wise-report.php" class="sidenav-link">
                                <div>OPD Patient Month Wise Report</div>
                                    <?php if($Page=='OPD-Patient-Report') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li>
                                
                            <li class="sidenav-item"><a href="follow-patient-report.php" class="sidenav-link">
                                <div>Follow Patient Report</div>
                                    <?php if($Page=='Follow-Patient-Report') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li>     

                               <!--<li class="sidenav-item"><a href="opd-patient-report-consodilated.php" class="sidenav-link">
                                <div>OPD Patient Report (CONSODILATED)</div>
                                    <?php if($Page=='OPD-Patient-Report-Consodilated') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li>

                                <li class="sidenav-item"><a href="ipd-patient-report.php" class="sidenav-link">
                                    <div>IPD Patient Report</div>
                                    <?php if($Page=='IPD-Patient-Report') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li> 

                                <li class="sidenav-item"><a href="ipd-patient-report-consodilated.php" class="sidenav-link">
                                    <div>IPD Patient Report (CONSODILATED)</div>
                                    <?php if($Page=='IPD-Patient-Report-Consodilated') {?>
                                <div class="pl-1 ml-auto">
                                <span class="badge badge-dot badge-primary"></span>
                                </div>
                                <?php } ?>
                                </a></li> -->
                           
                        </ul>
                    </li>
                   
                  
                    
                    <li class="sidenav-item">
                        <a href="javascript:" class="sidenav-link sidenav-toggle">
                            <!-- <i class="sidenav-icon feather icon-shopping-cart"></i> -->
                            <div>UTILITY</div>
                        </a>
                        <ul class="sidenav-menu">
                            <li class="sidenav-item"><a href="backup.php" class="sidenav-link">
                                    <div>Data Backup</div>
                                </a></li>
                       
                        </ul>
                    </li>

                   <li class="sidenav-item <?php if($MainPage=='Account') {?> open active <?php } ?>">
<a href="javascript:" class="sidenav-link sidenav-toggle">
<!-- <i class="sidenav-icon feather icon-lock"></i> -->
<div>Account Settings</div>
</a>
<ul class="sidenav-menu">
<li class="sidenav-item ">
<a href="change-password.php" class="sidenav-link">
<div><i class="feather icon-unlock text-muted"></i> Change Password</div>
<?php if($Page=='Change-Password') {?>
<div class="pl-1 ml-auto">
<span class="badge badge-dot badge-primary"></span>
</div>
<?php } ?>
</a>
</li>
<li class="sidenav-item">
<a href="logout.php" class="sidenav-link">
<div><i class="feather icon-power text-danger"></i> Log Out</div>
</a>
</li>
</ul>
</li>
                       


                    </ul>
                </div>
            </div>