<?php $current_page= basename($_SERVER['PHP_SELF']); 




?>

<!-- Sidebar -->

<style>
	a{
		text-decoration: none!important;
	}
</style>

<div class="sidebar" id="sidebar">

	<div class="sidebar-inner slimscroll">

		<div id="sidebar-menu" class="sidebar-menu">

			<ul>

<!-- 				<li class="menu-title">

					<span>Menu</span>

				</li>
			-->

			<?php if($_SESSION['role'] == 1){?>


				<li class="<?php if($current_page=='profile.php' ){ echo 'active';} ?>">

					<a href="profile.php"><i class="menu-icon fa fa-bandcamp"></i> <span>Manage Profile </span></a>

				</li>

				<li class="<?php if($current_page=='manage_inspection_request.php' ){ echo 'active';} ?>">

					<a href="manage_inspection_request.php"><i class="menu-icon fa fa-bandcamp"></i> <span>Manage Inspection Request </span></a>

				</li>
                <li class="<?php if($current_page=='manage_inspection_request_history.php' ){ echo 'active';} ?>">

                    <a href="manage_inspection_request_history.php"><i class="menu-icon fa fa-bandcamp"></i> <span> Request History</span></a>

                </li>
           <!--     <li class="<?php if($current_page=='manage_inspection_type.php'){ echo 'active';} ?>">

                    <a href="manage_inspection_type.php"><i class="menu-icon fa fa-bandcamp"></i> <span>Manage Inspection Type</span></a>

                </li>


                <li class="<?php if($current_page=='manage_inspection.php' || $current_page=='add_inspection.php' || $current_page=='edit_inspection.php'){ echo 'active';} ?>">

                    <a href="manage_inspection.php"><i class="menu-icon fa fa-check-square-o"></i> <span>Manage Inspection</span></a>

                </li> -->



			<?php }else{?>



			<li class="<?php if($current_page=='dashboard.php'){ echo 'active';} ?>">

				<a href="dashboard.php"><i class="menu-icon fa fa-dashboard"></i> <span>Dashboard</span></a>

			</li>

			

				<!-- <li class="<?php if($current_page=='manage_user.php'|| $current_page=='view_user.php' || $current_page=='edit_user.php' ){ echo 'active';} ?>">

					<a href="manage_user.php"><i class="menu-icon fa fa-group"></i> <span>Manage Users</span></a>

				</li>  -->


				<li class="submenu">

					<a href="#"><i class=" menu-icon fa fa-user-circle"></i> <span>Manage Users</span> <span class="menu-arrow"></span></a>

					<ul style="display: none;">

						<li><a href="manage_user.php" class="<?php if($current_page=='manage_user.php' || $current_page=='view_user.php'  ||  $current_page=='add_subadmin.php' || $current_page == 'change_user_password.php'){ echo 'active';} ?>"><i class="fa fa-caret-left"></i>&nbsp; User list</a></li>

						
						<li><a href="deleted_users.php" class="<?php if($current_page=='deleted_users.php' || $current_page =='view_deleted_user.php' ){ echo 'active';} ?>"><i class="fa fa-caret-left"></i>&nbsp;Deleted users </a></li>

					</ul>

				</li>      
				

				

				

				<li class="<?php if($current_page=='manage_categories.php' || $current_page=='view_equipment_type.php'){ echo 'active';} ?>">

					<a href="manage_categories.php"><i class="menu-icon fa fa-bandcamp"></i> <span>Manage Equipment Type</span></a>

				</li>

				<li class="<?php if($current_page=='manage_equipment.php' || $current_page=='add_equipment.php' || $current_page=='edit_equipment.php'){ echo 'active';} ?>">

					<a href="manage_equipment.php"><i class="menu-icon fa fa-wrench"></i> <span>Manage Equipment </span></a>

				</li>

					<li class="<?php if($current_page=='manage_inspection_type.php'){ echo 'active';} ?>">

					<a href="manage_inspection_type.php"><i class="menu-icon fa fa-bandcamp"></i> <span>Manage Inspection Type</span></a>

				</li>


				<li class="<?php if($current_page=='manage_inspection.php' || $current_page=='add_inspection.php' || $current_page=='edit_inspection.php'){ echo 'active';} ?>">

					<a href="manage_inspection.php"><i class="menu-icon fa fa-check-square-o"></i> <span>Manage Inspection</span></a>

				</li>


			


				<!-- <li class="<?php //if($current_page=='manage_maintainance.php' || $current_page=='add_maintainance.php' || $current_page=='edit_maintainance.php'){ echo 'active';} ?>">

					<a href="manage_maintainance.php"><i class="menu-icon fa fa-cogs"></i> <span>Manage Maintainance</span></a>

				</li> -->



				

				

				


				



				


				

				


			<!-- 	<li class="submenu">

					<a href="#"><i class=" menu-icon fa fa-table"></i> <span>Tabular Reports</span> <span class="menu-arrow"></span></a>

					<ul style="display: none;">

						<li><a href="user_report.php" class="<?php if($current_page=='user_report.php'){ echo 'active';} ?>"><i class="fa fa-caret-left"></i>&nbsp; User Report</a></li>


						<li><a href="inspection_history_report.php" class="<?php if($current_page=='inspection_history_report.php'){ echo 'active';} ?>"><i class="fa fa-caret-left"></i>&nbsp; Inspection History Report</a></li>

						
						
						

						
						

						

					</ul>

				</li>



				<li class="submenu">

					<a href="#"><i class="menu-icon fa fa-area-chart"></i> <span>Analytical Reports </span> <span class="menu-arrow"></span></a>

					<ul style="display: none;">

						<li><a href="ana_user_report.php" class="<?php if($current_page=='ana_user_report.php'){ echo 'active';} ?>"> <i class="fa fa-caret-left"></i>&nbsp;User Analytical Report </a></li> 

						


						

						
						



					</ul>

				</li> -->

			<?php }?>

			
			

			


			</ul>

		</div>

	</div>

</div>

<!-- /Sidebar -->
