<?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)) || ( in_array('3',$admin_access)) || ( in_array('65',$admin_access)) ){ ?> 
                    <li class="nav-item" data-item="user_setting">
                        <a class="nav-item-hold" href="#">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">User Setting</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    
                    
                    

                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('6',$admin_access)) || ( in_array('18',$admin_access)) || ( in_array('8',$admin_access)) || ( in_array('5',$admin_access)) || ( in_array('7',$admin_access)) ){ ?> 
                    <li class="nav-item" data-item="xcare_setting">
                        <a class="nav-item-hold" href="#">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Xcare</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>

                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                    <li class="nav-item" data-item="pay_clinic">
                        <a class="nav-item-hold" href="#">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Pay Clinic</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>


                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('7',$admin_access)) ){ ?>
                    <!-- <li class="nav-item" data-item="login_guarantor">
                        <a class="nav-item-hold" href="#">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Patient Sign-IN/Guarantor</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'){ ?> 
                    <li class="nav-item" data-item="coverage">
                        <a class="nav-item-hold" href="#">
                            <i class="nav-icon i-File-Clipboard-File--Text"></i>
                            <span class="nav-text">Coverage</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>

                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('72',$admin_access)) ){ ?> 
                    <!-- <li class="nav-item" data-item="overdue">
                        <a class="nav-item-hold" href="#">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Overdue</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('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">Stripe</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'  ){ ?>
                    <!-- <li class="nav-item" data-item="cliniclog">
                        <a class="nav-item-hold" href="#">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Clinic Log</span>
                        </a>
                        <div class="triangle"></div>
                    </li> -->
                    <?php } ?>
                    
                    
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('46',$admin_access)) ){ ?>
                    <li class="nav-item" data-item="messagecenter">
                        <a class="nav-item-hold" href="#">
                            <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('46',$admin_access)) ){ ?>
                    <li class="nav-item" data-item="marketingagency">
                        <a class="nav-item-hold" href="#">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Marketing Agency</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('46',$admin_access)) ){ ?>
                    <li class="nav-item" data-item="loyaltyprogram">
                        <a class="nav-item-hold" href="#">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Loyalty program</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>

                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('46',$admin_access)) ){ ?>
                    <li class="nav-item" data-item="leads">
                        <a class="nav-item-hold" href="#">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Leads</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>

                    <?php if($_SESSION['admin_access']=='Full' ){ ?>
                    <li class="nav-item" data-item="help_support">
                        <a class="nav-item-hold" href="#">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Help & Support</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('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('66',$admin_access)) || ( in_array('67',$admin_access)) || ( in_array('32',$admin_access)) ){ ?>
                    <li class="nav-item" data-item="logdata">
                        <a class="nav-item-hold" href="#">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Log</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">General Setting</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=='userPermissionList.php' || $filename=='userPermissionAdd.php'){ ?> open <?php } ?>" href="userPermissionList.php">
                            <i class="nav-icon i-Filter-2"></i>
                            <span class="nav-text">User Permissions</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    <?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('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('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 } ?>
                </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('14',$admin_access)) ){ ?>
                    <li class="nav-item ">
                        <a class="nav-item-hold <?php if($filename=='treatmentStatuslist.php'){ ?> open <?php } ?>" href="treatmentStatuslist.php">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Treatment Statuses</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=='treatmentPlanlist.php'){ ?> open <?php } ?>" href="treatmentPlanlist.php">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Treatment Plan</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=='reminderlist.php'){ ?> open <?php } ?>" href="reminderlist.php">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Reminders</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">Sikka API</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</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 Error</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    <li class="nav-item ">
                        <a class="nav-item-hold <?php if($filename=='writebackstatuslist.php'){ ?> open <?php } ?>" href="writebackstatuslist.php">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Writeback log</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                </ul>
                <ul class="childNav" data-parent="coverage">
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                    <li class="nav-item">
                        <a class="nav-item-hold  <?php if($filename=='insuranceCarrierlist.php' || $filename=='insuranceCarrieradd.php'){ ?> open <?php } ?>" href="insuranceCarrierlist.php" >
                            <i class="nav-icon i-Filter-2"></i>
                            <span class="nav-text">Insurance Carrier</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_cancelled.php?type=floating'){ ?> open <?php } ?>" href="all_app_data.php?type=floating">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Floating</span>
                        </a>
                        <div class="triangle"></div>
                    </li>

                    <li class="nav-item ">
                        <a class="nav-item-hold <?php if($filename=='appointment_cancelled.php?type=confirmed'){ ?> open <?php } ?>" href="all_app_data.php?type=confirmed">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Confirmed</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item ">
                        <a class="nav-item-hold" href="all_app_data.php?type=archived">
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Archived</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>

                    <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">Provider Schedule Request</span>
                        </a>
                        <div class="triangle"></div>
                    </li>

                    <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">Provider Reschedule Request</span>
                        </a>
                        <div class="triangle"></div>
                    </li>

                    <li class="nav-item <?php if($filename=='appointment_statusupdate.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="appointment_statusupdate.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Restricted: Xcare Status Update</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    
                </ul>

                <!-- <ul class="childNav" data-parent="clinics">
                   
                    
                    
                    <?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>
                    
                    

                </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('63',$admin_access)) ){ ?>
                    <li class="nav-item">
                        <a class="nav-item-hold  <?php if($filename=='subscription.php'){ ?> open <?php } ?>" href="subscription.php" >
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Subscriptions</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>

                <ul class="childNav" data-parent="logdata">
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('66',$admin_access))){ ?>
                    <li class="nav-item <?php if($filename=='appointmentloglistdata.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="appointmentloglistdata.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Appointment Log</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('67',$admin_access))){ ?>
                    <li class="nav-item <?php if($filename=='patientloglistdata.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="patientloglistdata.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Patient Profile log(SIKKA/clinic portal)</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">PMS Developer Log</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 } ?>

                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                    <li class="nav-item">
                        <a class="nav-item-hold <?php if($filename=='subscription_loglist.php'){ ?> active <?php } ?>" href="subscription_loglist.php">
                            <i class="nav-icon i-Type-Pass"></i>
                            <span class="nav-text">Stripe log</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=='patientloglist.php'){ ?> active <?php } ?>" href="patientloglist.php">
                            <i class="nav-icon i-Type-Pass"></i>
                            <span class="nav-text">Patient Activity log (Self Care)</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=='clinicloglist.php'){ ?> active <?php } ?>" href="clinicloglist.php">
                            <i class="nav-icon i-Type-Pass"></i>
                            <span class="nav-text">Clinic Activity Log (Clinic Portal)</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>


                    <?php if($_SESSION['admin_access']=='Full'  ){ ?>
                    <li class="nav-item <?php if($filename=='clinic_practice_loglist.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="clinic_practice_loglist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Clinic Practice Log</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    
                    <?php if($_SESSION['admin_access']=='Full'  ){ ?>
                    <li class="nav-item <?php if($filename=='clinic_provider_loglist.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="clinic_provider_loglist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Clinic Provider Log</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    
                    <?php if($_SESSION['admin_access']=='Full'  ){ ?>
                    <li class="nav-item <?php if($filename=='clinic_offers_loglist.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="clinic_offers_loglist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Clinic Offers Log</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>

                    <?php if($_SESSION['admin_access']=='Full'  ){ ?>
                    <li class="nav-item <?php if($filename=='clinic_messagecenter_loglist.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="clinic_messagecenter_loglist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Clinic Messagecenter Log</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">Sign-in Change Logs</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>

                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('72',$admin_access)) ){ ?> 
                    <li class="nav-item <?php if($filename=='overduelist.php'){ ?> open <?php } ?>">
                        <a class="nav-item-hold" href="overduelist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Overdue History</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    
                    <?php if($_SESSION['admin_access']=='Full' || ( in_array('72',$admin_access)) ){ ?> 
                    <li class="nav-item <?php if($filename=='currentoverduelist.php'){ ?> open <?php } ?>">
                        <a class="nav-item-hold" href="currentoverduelist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Current Overdue</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                
                </ul>

                <ul class="childNav" data-parent="messagecenter">
                    <?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">Adminstrative</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=='remindermessagecenterlist.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="remindermessagecenterlist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Reminder Notification</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=='digitaldocmessagecenterlist.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="digitaldocmessagecenterlist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Digitaldoc Notification</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=='marketingmessagecenterlist.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="marketingmessagecenterlist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Marketing Notification</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=='paymentmessagecenterlist.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="paymentmessagecenterlist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Payment Reminder Notification</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">Payment Adminstrative  Notification</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>

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

                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                    <li class="nav-item  <?php if($filename=='clinicmessagecenterlist.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="clinicmessagecenterlist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Clinic Notification</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>

                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                    <li class="nav-item  <?php if($filename=='faxmessagecenterlist.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="faxmessagecenterlist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Fax Notification</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=='errormessagecenterlist.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="errormessagecenterlist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Error Log</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">Email Template</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=='reminderstobesent.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="reminderstobesent.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Reminders To Be Sent</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=='manual_reminder_send.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="manual_reminder_send.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Manual Reminder</span>
                        </a>
                        <div class="triangle"></div>
                    </li> -->
                    <?php } ?>
                </ul>

                <!-- <ul class="childNav" data-parent="overdue">
                    
                </ul> -->
                <!-- <ul class="childNav" data-parent="login_guarantor">
                   
                </ul> -->

                <!-- <ul class="childNav" data-parent="cliniclog">
                   
                    
                </ul> -->

                <ul class="childNav" data-parent="user_setting">
                    <?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">Clinic 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">Dashboard Super User</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('54',$admin_access))){ ?>
                    <li class="nav-item <?php if($filename=='userPermission.php' || $filename=='userPermissionadd.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="userPermission.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">User Permission</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>

                </ul>

                <ul class="childNav" data-parent="xcare_setting">
                    <?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">Provider</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 } ?>

                                        <li class="nav-item <?php if($filename=='clinicMember.php' || $filename=='clinicmemberadd.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="clinicMember.php">
                            <i class="nav-icon i-Business-Mens"></i>
                            <span class="nav-text">Clinic Member</span>
                        </a>
                        <div class="triangle"></div>
                    </li>

                    <?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 Setting</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>

                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                    <li class="nav-item <?php if($filename=='clinicXcareRating.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="clinicXcareRating.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Clinic Rating</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 } ?>" data-item="patient_menu">
                        <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">Patient Sign-in/Guarantor</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>  
                    <li class="nav-item">
                        <a class="nav-item-hold  <?php if($filename=='merge_patient.php'){ ?> open <?php } ?>" href="merge_patient.php" >
                            <i class="nav-icon i-Environmental-3"></i>
                            <span class="nav-text">Patient Merge</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'){ ?>
                    <li class="nav-item <?php if($filename=='assignPointToClinic.php' || $filename=='assignPointToClinicList.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="assignPointToClinicList.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Assign Point To Clinic</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    <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 Invoice Entry</span>
                        </a>
                        <div class="triangle"></div>
                    </li>

                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                    <li class="nav-item <?php if($filename=='pointlist.php' || $filename=='pointadd.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="pointlist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Reward Points</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                    <li class="nav-item <?php if($filename=='pointcategorylist.php' || $filename=='pointcategoryadd.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="pointcategorylist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Point Category</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">Patient Otp</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'){ ?>
                    <li class="nav-item <?php if($filename=='importpatient.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="importpatient.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Import Customer</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                    <li class="nav-item <?php if($filename=='importpatientlist.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="importpatientlist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Customer List</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                    <li class="nav-item <?php if($filename=='activationKeylist.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="activationKeylist.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Activation Key List</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <?php } ?>
                    
                   
                </ul>

                <ul class="childNav" data-parent="pay_clinic">
                    <li class="nav-item <?php if($filename=='payClinicList.php' || $filename=='payClinicAdd.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="payClinicList.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Pay Clinic</span>
                        </a>
                        <div class="triangle"></div>
                    </li>

                    <li class="nav-item <?php if($filename=='payClinicLeadList.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="payClinicLeadList.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Pay Clinic Leads</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item <?php if($filename=='payClinicPointList.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="payClinicPointList.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Pay Clinic Points</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item <?php if($filename=='payClinicCardList.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="payClinicCardList.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Pay Clinic Cards</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                    <li class="nav-item <?php if($filename=='conciergeLeadList.php'){ ?> active <?php } ?>">
                        <a class="nav-item-hold" href="conciergeLeadList.php">
                            <i class="nav-icon i-Checked-User"></i>
                            <span class="nav-text">Concierge Leads</span>
                        </a>
                        <div class="triangle"></div>
                    </li>
                </ul>
              
                <ul class="childNav" data-parent="marketingagency">
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='agencylist.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="agencylist.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">Agency List</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='agencyadd.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="agencyadd.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">Add Agency</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='agencyuserlist.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="agencyuserlist.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">Agency User List</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='agencyuseradd.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="agencyuseradd.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">Add Agency User</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?>
                </ul>    
                <ul class="childNav" data-parent="loyaltyprogram">
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='pointcategorylist.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="pointcategorylist.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">Point Category List</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='pointlist.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="pointlist.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">Point Master</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='loyaltyclaimlist.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="loyaltyclaimlist.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">Loyalty Claim</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?>

                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='loyaltyActionlist.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="loyaltyActionlist.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">Loyalty Action</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?> 

                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='claimhistory.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="claimhistory.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">Claim History</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='clinicloyaltypointoverview.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="clinicloyaltypointoverview.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">Point Overview</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='approve_redeemed.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="approve_redeemed.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">Redeemed Approval</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='send_redeemed.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="send_redeemed.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">Send Gift Card</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='tango_orderlist.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="tango_orderlist.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">Tango Order List</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?>

                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='xcareActionOverview.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="xcareActionOverview.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">Action Overview</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?>

                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='PatientOverview.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="PatientOverview.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">Patient Overview</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?>

                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='clinicPointsTrans.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="clinicPointsTrans.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">Clinic Point Transactions</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?>
                </ul>
                <ul class="childNav" data-parent="leads">
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='leadList.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="leadList.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">New Leads</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='acquList.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="acquList.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">New Acquisition</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='callList.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="callList.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">Calls</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?>

                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='referByclinic.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="referByclinic.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">Referred By Clinic</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?> 
                </ul>

                <ul class="childNav" data-parent="help_support">
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='documentationlist.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="documentationlist.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">Documentation List</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?>
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='faqlist.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="faqlist.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">Faq List</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?> 
                    <?php if($_SESSION['admin_access']=='Full'){ ?>
                        <li class="nav-item  <?php if($filename=='contactsupportlist.php'){ ?> active <?php } ?>">
                            <a class="nav-item-hold" href="contactsupportlist.php">
                                <i class="nav-icon i-Checked-User"></i>
                                <span class="nav-text">Contact Support</span>
                            </a>
                            <div class="triangle"></div>
                        </li>
                    <?php } ?> 
                </ul>   
            </div>
            <div class="sidebar-overlay"></div>
        </div>