<?php $sess_array = $this->session->userdata('uDetails'); ?>
<body class="hold-transition sidebar-mini sidebar-collapse">
<!-- Site wrapper -->
<div class="wrapper">
	<!-- Navbar -->
	<nav class="main-header navbar navbar-expand navbar-white navbar-light">
		<!-- Left navbar links -->
		<ul class="navbar-nav">
			<li class="nav-item">
				<a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
			</li>
			<!--                <li class="nav-item d-none d-sm-inline-block">
								<a href="../../index3.html" class="nav-link">Home</a>
							</li>
							<li class="nav-item d-none d-sm-inline-block">
								<a href="#" class="nav-link">Members List</a>
							</li>-->
		</ul>

		<!-- SEARCH FORM -->
		<form class="form-inline ml-3" hidden>
			<div class="input-group input-group-sm">
				<input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search">
				<div class="input-group-append">
					<button class="btn btn-navbar" type="submit">
						<i class="fas fa-search"></i>
					</button>
				</div>
			</div>
		</form>

		<!-- Right navbar links -->
		<ul class="navbar-nav ml-auto">
			<li class="nav-item dropdown">
				<a class="nav-link" data-toggle="dropdown" href="#" aria-expanded="false">
					<i class="fas fa-th-large"></i>
				</a>
				<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right" style="left: inherit; right: 0px;">
                        <span class="dropdown-item dropdown-header"><?php
							if (isset($sess_array)) {
								echo $sess_array['Name'];
							}
							?></span>
					<div class="dropdown-divider"></div>
					<!--                        <a href="#" class="dropdown-item">-->
					<!--                            <i class="fas fa-cogs mr-2"></i> Settings-->
					<!--                        </a>-->
					<div class="dropdown-divider"></div>
					<a href="<?php echo base_url("welcome/logout") ?>" class="dropdown-item dropdown-footer"><i class="fas fa-power-off"></i> Sign out</a>
				</div>
			</li>
		</ul>
	</nav>
	<!-- /.navbar -->

	<!-- Main Sidebar Container -->
	<aside class="main-sidebar sidebar-dark-primary elevation-4">
		<!--		 Brand Logo -->
		<a href="" class="brand-link">
			<img src="<?php echo base_url("assets/dist/img/w_logo.png") ?>"
				 alt="WorkAble"
				 class="brand-image img-circle elevation-3"
				 style="opacity: .8">
			<span class="brand-text font-weight-light">WORKable</span>
		</a>

		<!-- Sidebar -->
		<div class="sidebar">


			<!-- Sidebar Menu -->
			<nav class="mt-2">
				<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
					<!-- Add icons to the links using the .nav-icon class
							 with font-awesome or any other icon font library -->

					<?php if ($sess_array['type'] == "admin") { ?>
					<li class="nav-item">
						<a href="<?php echo base_url("welcome/dashboardRedirect") ?>" class="nav-link dashbord_class">
							<i class="nav-icon fas fa-tachometer-alt"></i>
							<p>Dashboard</p>
						</a>
					</li>
					<li class="nav-item">
						<a href="<?php echo base_url("Supervisor_Contoller") ?>" class="nav-link Supervisor_list_class">
							<i class="nav-icon fas fa-users"></i>
							<p>Supervisor</p>
						</a>
					</li>
					<li class="nav-item has-treeview">
						<a href="#" class="nav-link Report_class">
							<i class="nav-icon fas fa-th"></i>
							<p>Reports<i class="right fas fa-angle-left"></i>
							</p>
						</a>
						<ul class="nav nav-treeview">
							<li class="nav-item">
								<a href="<?php echo base_url("Report_Controller/organizationReport") ?>" class="nav-link Report3">
									<i class="far fa-circle nav-icon"></i>
									<p>Organization</p>
								</a>
							</li>
							<li class="nav-item">
								<a href="<?php echo base_url("/Report_Controller/ActivityReport") ?>" class="nav-link Report2">
									<i class="far fa-circle nav-icon"></i>
									<p>Activity</p>
								</a>
							</li>
							<li class="nav-item">
								<a href="<?php echo base_url("/Report_Controller/Report1") ?>" class="nav-link Report1">
									<i class="far fa-circle nav-icon"></i>
									<p>Employees</p>
								</a>
							</li>

							</li>


							<?php } else { ?>
								<li class="nav-item">
									<a href="<?php echo base_url("welcome/dashboardRedirect") ?>" class="nav-link dashbord_class">
										<i class="nav-icon fas fa-users"></i>
										<p>Add activities to employees</p>
									</a>
								</li>
								<li class="nav-item">
									<a href="<?php echo base_url("Supervisor_Contoller/addTime") ?>" class="nav-link time_class">
										<i class="nav-icon fas fa-user-clock"></i>
										<p>Add details to activities</p>
									</a>
								</li>
							<?php } ?>
						</ul>
			</nav>
			<!-- /.sidebar-menu -->
		</div>
		<!-- /.sidebar -->
	</aside>
