<?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">
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('1',$admin_access)) ){ ?> 
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('2',$admin_access)) ){ ?> 
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('3',$admin_access)) ){ ?> 
                    <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>
                    <?php } ?>

                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('65',$admin_access)) ){ ?> 
                    <li class="nav-item <?php if($filename=='superuserlist.php' || $filename=='superuseradd.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="superuserlist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Superuser</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('5',$admin_access)) ){ ?>
                    <li class="nav-item" data-item="clinics">
                        <a class="nav-item-hold" href="#">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Clinic</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('6',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('7',$admin_access)) ){ ?>
                    <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> -->
                            <span class="nav-text">Login/Guarantor</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('18',$admin_access)) ){ ?>
                    <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> -->
                            <span class="nav-text">Patients</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('8',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('9',$admin_access)) || ( in_array('10',$admin_access)) || ( in_array('11',$admin_access)) || ( in_array('12',$admin_access)) || ( in_array('13',$admin_access)) || ( in_array('14',$admin_access)) || ( in_array('15',$admin_access)) || ( in_array('16',$admin_access)) ){ ?> 
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('17',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('59',$admin_access))){ ?>
                    <li class="nav-item <?php if($filename=='templatelist.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="templatelist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Template</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('61',$admin_access)) || ( in_array('62',$admin_access)) || ( in_array('63',$admin_access)) ){ ?>
                    <li class="nav-item" data-item="subscription">
                        <a class="nav-item-hold" href="#">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Subscription</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    <!-- <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> -->
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('50',$admin_access)) ){ ?>
                    <li class="nav-item <?php if($filename=='offerlist.php' || $filename=='offeradd.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="offerlist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Offer</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('54',$admin_access))){ ?>
                    <li class="nav-item <?php if($filename=='rolelist.php' || $filename=='roleadd.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="rolelist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Role Master</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('46',$admin_access)) ){ ?>
                    <li class="nav-item <?php if($filename=='messagecenterlist.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="messagecenterlist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Message Center</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('51',$admin_access)) ){ ?>
                    <li class="nav-item <?php if($filename=='patientmessagecenterlist.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="patientmessagecenterlist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">PatientMessage Center</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('47',$admin_access)) ){ ?>
                    <li class="nav-item <?php if($filename=='schedulerequestlist.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="schedulerequestlist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Schedule Request</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('48',$admin_access))){ ?>
                    <li class="nav-item <?php if($filename=='reschedulerequestlist.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="reschedulerequestlist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Reschedule Request</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                    <li class="nav-item <?php if($filename=='patientotplist.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="patientotplist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">PatientOtp Verified</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('55',$admin_access))){ ?>
                    <li class="nav-item <?php if($filename=='modulelist.php' || $filename=='moduleadd.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="modulelist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Module</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('45',$admin_access))){ ?>
                    <li class="nav-item <?php if($filename=='loglistdata.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="loglistdata.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Log List</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>

                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('64',$admin_access))){ ?>
                    <li class="nav-item <?php if($filename=='referrallist.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="referrallist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Referral List</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>

                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('20',$admin_access)) || ( in_array('21',$admin_access)) || ( in_array('22',$admin_access)) || ( in_array('23',$admin_access)) || ( in_array('24',$admin_access)) || ( in_array('25',$admin_access)) || ( in_array('26',$admin_access)) || ( in_array('27',$admin_access)) || ( in_array('28',$admin_access)) || ( in_array('29',$admin_access)) || ( in_array('30',$admin_access)) || ( in_array('31',$admin_access)) || ( in_array('32',$admin_access)) || ( in_array('33',$admin_access)) || ( in_array('34',$admin_access)) || ( in_array('56',$admin_access)) || ( in_array('57',$admin_access)) || ( in_array('58',$admin_access)) ){ ?> 
                    <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>
                <?php } ?>
                </ul>
            </div>
            <div class="sidebar-left-secondary" data-perfect-scrollbar data-suppress-scroll-x="true">
                <ul class="childNav" data-parent="other">
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('20',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('21',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('22',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('23',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('24',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('25',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('26',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('27',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('28',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('29',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('19',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <!-- <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> -->
                    <?php //if($_SESSION['admin_access']=='Full' || ( in_array('30',$admin_access)) ){ ?>
                    <!-- <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> -->
                    <?php //} ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('31',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('32',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('33',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('34',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>

                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('56',$admin_access)) ){ ?>
                    <li class="nav-item">
                        <a class="nav-item-hold <?php if($filename=='countrylist.php'){ ?> active <?php } ?>" href="countrylist.php">
                            <i class="nav-icon i-Type-Pass"></i>
                            <span class="nav-text">Country</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>

                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('57',$admin_access)) ){ ?>
                    <li class="nav-item">
                        <a class="nav-item-hold <?php if($filename=='statelist.php'){ ?> active <?php } ?>" href="statelist.php">
                            <i class="nav-icon i-Type-Pass"></i>
                            <span class="nav-text">State</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>

                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('58',$admin_access)) ){ ?>
                    <li class="nav-item">
                        <a class="nav-item-hold <?php if($filename=='citylist.php'){ ?> active <?php } ?>" href="citylist.php">
                            <i class="nav-icon i-Type-Pass"></i>
                            <span class="nav-text">City</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>

                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                    <li class="nav-item">
                        <a class="nav-item-hold <?php if($filename=='adminloglist.php'){ ?> active <?php } ?>" href="adminloglist.php">
                            <i class="nav-icon i-Type-Pass"></i>
                            <span class="nav-text">Admin log</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                </ul>
                <ul class="childNav" data-parent="pms">
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('9',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('10',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('11',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('12',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('13',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('52',$admin_access)) ){ ?>
                    <li class="nav-item ">
                        <a class="nav-item-hold <?php if($filename=='pmsProcedureCodelist.php'){ ?> open <?php } ?>" href="pmsProcedureCodelist.php">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Procedure Codes</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('14',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('15',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('16',$admin_access)) ){ ?>
                    <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">Dummy PMS Data Entry</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('50',$admin_access)) ){ ?>
                    <li class="nav-item ">
                        <a class="nav-item-hold <?php if($filename=='pmsentryanalysis.php'){ ?> open <?php } ?>" href="pmsentryanalysis.php">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">PMS Entry Analysis</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                </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=guestappointment'){ ?> open <?php } ?>" href="all_app_data.php?type=guestappointment">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Guest appointment</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="clinics">
                   
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('5',$admin_access)) ){ ?>
                    <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>
                    <?php } ?>
                    
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                    <li class="nav-item <?php if($filename=='clinicpatientlist.php' ){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="clinicpatientlist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Clinic Patient</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                </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>

                <ul class="childNav" data-parent="subscription">
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('61',$admin_access)) ){ ?>
                    <li class="nav-item">
                        <a class="nav-item-hold  <?php if($filename=='productlist.php'){ ?> open <?php } ?>" href="productlist.php" >
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Product</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('62',$admin_access)) ){ ?>
                    <li class="nav-item">
                        <a class="nav-item-hold  <?php if($filename=='planlist.php'){ ?> open <?php } ?>" href="planlist.php" >
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Plan</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('63',$admin_access)) ){ ?>
                    <li class="nav-item">
                        <a class="nav-item-hold  <?php if($filename=='taxlist.php'){ ?> open <?php } ?>" href="taxlist.php" >
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Tax</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>

                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('30',$admin_access)) ){ ?>
                    <!-- <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> -->
                    <?php } ?>
                </ul>
            </div>
            <div class="sidebar-overlay"></div>
        </div>