<?php 

if($_SESSION['admin_access']!='Full'){
    $admin_access = explode(',',$_SESSION['admin_access']);
}else{
    $admin_access = array();
}

$fname=basename($_SERVER['SCRIPT_FILENAME']);

?>
       <div class="side-content-wrap">
            <div class="sidebar-left open" data-perfect-scrollbar data-suppress-scroll-x="true">
               <div class="branding_dv">
                <img src="assets/images/logo.svg" alt="">
               </div>
                <ul class="navigation-left">
                    <li class="nav-item <?php if($filename=='index.php'){ echo "class='active'"; } ?>" >
                        <a class="nav-item-hold" href="index.php">
                            <i class="nav-icon i-Bar-Chart"></i>
                            <span class="nav-text">Dashboard</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item <?php if($filename=='adminlist.php' || $filename=='adminadd.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="adminlist.php">
                            <i class="nav-icon i-Talk-Man"></i>
                            <span class="nav-text">Administrator</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item <?php if($filename=='userlist.php' || $filename=='useradd.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="userlist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Users</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item <?php if($filename=='cliniclist.php' || $filename=='clinicadd.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="cliniclist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Clinic</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item <?php if($filename=='doctorlist.php' || $filename=='doctoradd.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="doctorlist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Doctors</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item <?php if($filename=='patientlist.php' || $filename=='patientadd.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="patientlist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Patients</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item" data-item="appointment">
                        <a class="nav-item-hold" href="#">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Appointments</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item" data-item="pms">
                        <a class="nav-item-hold" href="#">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">PMS</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item" data-item="billing">
                        <a class="nav-item-hold" href="#">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Billing</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item <?php if($filename=='dependantlist.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="dependantlist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Dependant</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item <?php if($filename=='cliamlist.php' || $filename=='cliamadd.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="cliamlist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Claim</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item <?php if($filename=='reviewlist.php' || $filename=='reviewadd.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="reviewlist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Review</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item"  data-item="other">
                        <a class="nav-item-hold" href="#">
                            <i class="nav-icon i-Statistic"></i>
                            <span class="nav-text">Others</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                </ul>
            </div>
            <div class="sidebar-left-secondary" data-perfect-scrollbar data-suppress-scroll-x="true">
                <ul class="childNav" data-parent="other">
                    <li class="nav-item">
                        <a class="nav-item-hold  <?php if($filename=='domainlist.php' || $filename=='domainadd.php'){ ?> open <?php } ?>" href="domainlist.php" >
                            <i class="nav-icon i-Filter-2"></i>
                            <span class="nav-text">Domain</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item">
                        <a class="nav-item-hold  <?php if($filename=='specialitylist.php' || $filename=='specialityadd.php'){ ?> open <?php } ?>" href="specialitylist.php" >
                            <i class="nav-icon i-Filter-2"></i>
                            <span class="nav-text">Speciality</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item ">
                        <a class="nav-item-hold <?php if($filename=='servicelist.php' || $filename=='serviceadd.php'){ ?> open <?php } ?>" href="servicelist.php">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Services</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item">
                        <a class="nav-item-hold <?php if($filename=='featurelist.php' || $filename=='featureadd.php'){ ?> open <?php } ?>" href="featurelist.php">
                            <i class="nav-icon i-Delicious"></i>
                            <span class="nav-text">Features</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item">
                        <a class="nav-item-hold <?php if($filename=='hygienelist.php' || $filename=='hygieneadd.php'){ ?> open <?php } ?>" href="hygienelist.php">
                            <i class="nav-icon i-Delicious"></i>
                            <span class="nav-text">Hygiene Features</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item">
                        <a class="nav-item-hold <?php if($filename=='appointment_typelist.php' || $filename=='appointment_typeadd.php'){ ?> open <?php } ?>" href="appointment_typelist.php">
                            <i class="nav-icon i-Type-Pass"></i>
                            <span class="nav-text">Appointment Type</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item">
                        <a class="nav-item-hold <?php if($filename=='questionlist.php' || $filename=='questionadd.php'){ ?> active <?php } ?>" href="questionlist.php">
                            <i class="nav-icon i-Type-Pass"></i>
                            <span class="nav-text">Questions</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item">
                        <a class="nav-item-hold <?php if($filename=='languagelist.php' || $filename=='languageadd.php'){ ?> active <?php } ?>" href="languagelist.php">
                            <i class="nav-icon i-Type-Pass"></i>
                            <span class="nav-text">Languages</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item">
                        <a class="nav-item-hold <?php if($filename=='insurancelist.php' || $filename=='insuranceadd.php'){ ?> active <?php } ?>" href="insurancelist.php">
                            <i class="nav-icon i-Type-Pass"></i>
                            <span class="nav-text">Insurances</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item">
                        <a class="nav-item-hold <?php if($filename=='giftcardlist.php' || $filename=='giftcardadd.php'){ ?> active <?php } ?>" href="giftcardlist.php">
                            <i class="nav-icon i-Type-Pass"></i>
                            <span class="nav-text">Giftcards</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <!-- <li class="nav-item">
                        <a class="nav-item-hold <?php if($filename=='importpatient.php'){ ?> active <?php } ?>" href="importpatient.php">
                            <i class="nav-icon i-Type-Pass"></i>
                            <span class="nav-text">Import Patient</span>
                        </a>
                        <div class="triangle"></div>
                    </li> -->
                    <li class="nav-item">
                        <a class="nav-item-hold <?php if($filename=='couponlist.php'){ ?> active <?php } ?>" href="couponlist.php">
                            <i class="nav-icon i-Type-Pass"></i>
                            <span class="nav-text">Coupons</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item">
                        <a class="nav-item-hold <?php if($filename=='inquirylist.php'){ ?> active <?php } ?>" href="inquirylist.php">
                            <i class="nav-icon i-Type-Pass"></i>
                            <span class="nav-text">Inquiry</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item">
                        <a class="nav-item-hold <?php if($filename=='loglist.php'){ ?> active <?php } ?>" href="loglist.php">
                            <i class="nav-icon i-Type-Pass"></i>
                            <span class="nav-text">Log</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item">
                        <a class="nav-item-hold <?php if($filename=='encryptionlist.php'){ ?> active <?php } ?>" href="encryptionlist.php">
                            <i class="nav-icon i-Type-Pass"></i>
                            <span class="nav-text">Encryption</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item">
                        <a class="nav-item-hold <?php if($filename=='patientloginchanges.php'){ ?> active <?php } ?>" href="patientloginchanges.php">
                            <i class="nav-icon i-Type-Pass"></i>
                            <span class="nav-text">patient login chnages</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                </ul>
                <ul class="childNav" data-parent="pms">
                    <li class="nav-item">
                        <a class="nav-item-hold  <?php if($filename=='practicelist.php'){ ?> open <?php } ?>" href="practicelist.php" >
                            <i class="nav-icon i-Filter-2"></i>
                            <span class="nav-text">Practices</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item ">
                        <a class="nav-item-hold <?php if($filename=='pmsPatientlist.php'){ ?> open <?php } ?>" href="pmsPatientlist.php">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Patients</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item ">
                        <a class="nav-item-hold <?php if($filename=='guarantorlist.php'){ ?> open <?php } ?>" href="guarantorlist.php">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Guarantors</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item ">
                        <a class="nav-item-hold <?php if($filename=='pmsAppointmentlist.php'){ ?> open <?php } ?>" href="pmsAppointmentlist.php">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Appointments</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item ">
                        <a class="nav-item-hold <?php if($filename=='pmsProviderlist.php'){ ?> open <?php } ?>" href="pmsProviderlist.php">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Providers</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item ">
                        <a class="nav-item-hold <?php if($filename=='pmsAppointmentStatuslist.php'){ ?> open <?php } ?>" href="pmsAppointmentStatuslist.php">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Appointment Statuses</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item ">
                        <a class="nav-item-hold <?php if($filename=='search_data_pms.php'){ ?> open <?php } ?>" href="search_data_pms.php">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">SearchData</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item ">
                        <a class="nav-item-hold <?php if($filename=='manual_entry.php'){ ?> open <?php } ?>" href="manual_entry.php">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Manual Entry</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                </ul>
                <ul class="childNav" data-parent="appointment">
                    <!-- <li class="nav-item">
                        <a class="nav-item-hold  <?php if($filename=='appointment_requested.php'){ ?> open <?php } ?>" href="appointment_requested.php" >
                            <i class="nav-icon i-Filter-2"></i>
                            <span class="nav-text">Requested</span>
                        </a>
                        <div class="triangle"></div>
                    </li> -->
                    <li class="nav-item">
                        <a class="nav-item-hold  <?php if($filename=='all_app_data.php?type=requested'){ ?> open <?php } ?>" href="all_app_data.php?type=requested" >
                            <i class="nav-icon i-Filter-2"></i>
                            <span class="nav-text">Requested</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <!-- <li class="nav-item ">
                        <a class="nav-item-hold <?php if($filename=='appointment_scheduled.php'){ ?> open <?php } ?>" href="appointment_scheduled.php">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Scheduled</span>
                        </a>
                        <div class="triangle"></div>
                    </li> -->

                    <li class="nav-item ">
                        <a class="nav-item-hold <?php if($filename=='all_app_data.php?type=scheduled'){ ?> open <?php } ?>" href="all_app_data.php?type=scheduled">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Scheduled</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <!-- <li class="nav-item ">
                        <a class="nav-item-hold <?php if($filename=='appointment_completed.php'){ ?> open <?php } ?>" href="appointment_completed.php">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Completed</span>
                        </a>
                        <div class="triangle"></div>
                    </li> -->

                    <li class="nav-item ">
                        <a class="nav-item-hold <?php if($filename=='appointment_completed.php?type=completed'){ ?> open <?php } ?>" href="all_app_data.php?type=completed">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Completed</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <!-- <li class="nav-item ">
                        <a class="nav-item-hold <?php if($filename=='appointment_cancelled.php'){ ?> open <?php } ?>" href="appointment_cancelled.php">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Cancelled</span>
                        </a>
                        <div class="triangle"></div>
                    </li> -->
                    <li class="nav-item ">
                        <a class="nav-item-hold <?php if($filename=='appointment_cancelled.php?type=cancelled'){ ?> open <?php } ?>" href="all_app_data.php?type=cancelled">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Cancelled</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    
                    <li class="nav-item ">
                        <a class="nav-item-hold <?php if($filename=='appointment_all.php?type=all_data'){ ?> open <?php } ?>" href="all_app_data.php?type=all_data">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">All Data</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                </ul>
                <ul class="childNav" data-parent="billing">
                    <li class="nav-item">
                        <a class="nav-item-hold  <?php if($filename=='billablelist.php'){ ?> open <?php } ?>" href="billablelist.php" >
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Billable Entry</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    
                    <li class="nav-item">
                        <a class="nav-item-hold  <?php if($filename=='patientbillablelist.php'){ ?> open <?php } ?>" href="patientbillablelist.php" >
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Patient Billable Entry</span>
                        </a>
                        <div class="triangle"></div>
                    </li>

                </ul>
            </div>
            <div class="sidebar-overlay"></div>
        </div>