 <?php 
 ini_set('log_errors', 'On');
ini_set('error_log', '/path/to/custom/error.log');
error_reporting(E_ALL);
 include('./constant/connect.php');
  

 ?>

 
        <div class="left-sidebar">
            
            <div class="scroll-sidebar">
                
                <nav class="sidebar-nav">
                    <ul id="sidebarnav">
                        <li class="nav-devider"></li>
                        <li class="nav-label">Home</li>
                        <li> <a href="dashboard.php" aria-expanded="false"><i class="fa fa-tachometer"></i>Dashboard</a>
                        </li> 
                 
                        
                             <li> <a class="has-arrow" href="#" aria-expanded="false"><i class="fa fa-user"></i><span class="hide-menu">Client</span></a>
                            <ul aria-expanded="false" class="collapse">
                           
                                <li><a href="add_client.php">Add Client</a></li>
                           
                                <li><a href="client.php">Manage Client</a></li>
                            </ul>
                        </li>
                
                       <!--  <li> <a class="has-arrow" href="#" aria-expanded="false"><i class="fa fa-apple"></i><span class="hide-menu">Brand</span></a>
                            <ul aria-expanded="false" class="collapse">
                           
                                <li><a href="add-brand.php">Add Brand</a></li>
                           
                                <li><a href="brand.php">Manage Brand</a></li>
                                 <li><a href="importbrand.php">Import Brand</a></li>
                            </ul>
                        </li> -->
                    
                        <?php if(isset($_SESSION['userId']) && $_SESSION['userId']==1) { ?>
                        <li> <a class="has-arrow" href="#" aria-expanded="false"><i class="fa fa-list"></i><span class="hide-menu">Test Categories</span></a>
                            <ul aria-expanded="false" class="collapse">
                           
                                <li><a href="add-category.php">Add Test Category</a></li>
                           
                                <li><a href="categories.php"> Test Categories</a></li>
                            </ul>
                        </li>
                    <?php }?>
                    <?php if(isset($_SESSION['userId']) && $_SESSION['userId']==1) { ?>
                        <li> <a class="has-arrow" href="#" aria-expanded="false"><i class="fa fa-flask"></i><span class="hide-menu">Test</span></a>
                            <ul aria-expanded="false" class="collapse">
                           
                                <li><a href="add-test.php">Add Test</a></li>
                           
                                <li><a href="test.php">Manage Test</a></li>
                            </ul>
                        </li>
                    <?php }?>
                        <li> <a class="has-arrow" href="#" aria-expanded="false"><i class="fa fa-files-o"></i><span class="hide-menu">Invoices</span></a>
                            <ul aria-expanded="false" class="collapse">
                           
                                <li><a href="add-invoice.php">Add Invoice</a></li>
                           
                                <li><a href="invoice.php">Manage Invoices</a></li>
                            </ul>
                        </li>
                         
                        <?php if(isset($_SESSION['userId']) && $_SESSION['userId']==1) { ?>
    <li><a href="report.php"><i class="fa fa-print"></i>Reports</a></li>
<?php } ?>

<!-- APPOINTMENT MENU -->
<li>
    <a class="has-arrow" href="#">
        <i class="fa fa-calendar"></i>
        <span class="hide-menu">Appointment</span>
    </a>
    <ul class="collapse">
        <li><a href="appointment_request.php">Appointment Request</a></li>
        <li><a href="appointment_list.php">Appointment List</a></li>
    </ul>
</li>

<!-- COMPLAINT MENU -->
<?php if(isset($_SESSION['userId']) && $_SESSION['userId']==1) { ?>
<li>
    <a href="complaints.php">
        <i class="fa fa-warning"></i>
        <span class="hide-menu">Complaint</span>
    </a>
</li>
<?php } ?>
<li>
    <a class="has-arrow" href="#">
        <i class="fa fa-user-md"></i>
        <span class="hide-menu">Doctors</span>
    </a>
    <ul class="collapse">
        <li><a href="add_doctor.php">Add Doctor</a></li>
        <li><a href="manage_doctors.php">Manage Doctors</a></li>
    </ul>
</li>

<?php if(isset($_SESSION['userId']) && $_SESSION['userId']==1) { ?>
                         <li> <a class="has-arrow" href="#" aria-expanded="false"><i class="fa fa-cog"></i><span class="hide-menu">Setting</span></a>
                            <ul aria-expanded="false" class="collapse">
                               
                               <li><a href="manage_website.php">Appearance</a></li>
                           
                              <li><a href="email_config.php">Email </a></li>
                               
                            </ul>
                        </li> 
                  <?php }?>

                  <?php if(isset($_SESSION['userId']) && $_SESSION['userId']==1) { ?>
                         <li><a href="about.php" aria-expanded="false"><i class="fa fa-info-circle"></i><span class="hide-menu">Know More</span></a></li>
                        
<?php }?>

<?php if(isset($_SESSION['userId']) && $_SESSION['userId']==1) { ?>
                         <li><a href="https://nurhossan.netlify.app/" aria-expanded="false"><i class="fa fa-upload"></i><span class="hide-menu">Advance Version</span></a></li>
                        
<?php }?>



                  


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