<?php $p =  explode("/",$_SERVER['REQUEST_URI']);
	   $page = end($p);

 ?>
<div class="sidebar app-aside" id="sidebar">
				<div class="sidebar-container perfect-scrollbar">
					<div>
						<!-- start: SEARCH FORM -->
						<div class="search-form hidden-md hidden-lg">
							<a class="s-open" href="#"> <i class="ti-search"></i> </a>
							<form class="navbar-form" role="search">
								<a class="s-remove" href="#" target=".navbar-form"> <i class="ti-close"></i> </a>
								<div class="form-group">
									<input type="text" class="form-control" placeholder="Enter search text here...">
									<button class="btn search-button" type="submit">
										<i class="ti-search"></i>
									</button>
								</div>
							</form>
						</div>
						<!-- end: SEARCH FORM -->
						<!-- start: USER OPTIONS -->
						<div class="nav-user-wrapper">
							<div class="media">
								<div class="media-left">
									<a class="profile-card-photo" href="#"><img alt="" src="<?php echo e(Asset('assets/images/avatar-1.jpg')); ?>"></a>
								</div>
								<div class="media-body">
									<span class="media-heading text-white">Admin Panel</span>
									<div class="text-small text-white-transparent">
										Welcome
									</div>
								</div>
								
							</div>
						</div>
						<!-- end: USER OPTIONS -->
						<nav>
							<!-- start: MAIN NAVIGATION MENU -->
							<div class="navbar-title">
								<span>Main Navigation</span>
							</div>
							<ul class="main-navigation-menu">
								
								<li <?php if($page == "home" || $page == "setting"){ ?> class="active open" <?php } ?>>
									<a href="javascript:void(0)">
									<div class="item-content">
										<div class="item-media">
											<div class="lettericon" data-text="Dashboard" data-size="sm" data-char-count="2"></div>
										</div>
										<div class="item-inner">
											<span class="title"> Dashboard </span><i class="icon-arrow"></i>
										</div>
									</div> </a>
									<ul class="sub-menu">
										<li>
											<a href="<?php echo e(Asset('admin_panel/home')); ?>"><i class="fa fa-home"></i> <span class="title"> Home</span> </a>
										</li>
										
										<li>
											<a href="<?php echo e(Asset('admin_panel/setting')); ?>"><i class="fa fa-cog"></i> <span class="title"> Setting</span> </a>
										</li>
										
									</ul>
								</li>
								<li <?php if($page == "user"){ ?> class="active open" <?php } ?>>
									<a href="<?php echo e(Asset('admin_panel/user')); ?>">
									<div class="item-content">
										<div class="item-media">
											<div class="lettericon" data-text="U" data-size="sm" data-char-count="2"></div>
										</div>
										<div class="item-inner">
											<span class="title"> Registered Users </span>
										</div>
									</div> </a>
								</li>
								
								<li <?php if($page == "SendEmail"){ ?> class="active open" <?php } ?>>
									<a href="<?php echo e(Asset('admin_panel/SendEmail')); ?>">
									<div class="item-content">
										<div class="item-media">
											<div class="lettericon" data-text="E" data-size="sm" data-char-count="2"></div>
										</div>
										<div class="item-inner">
											<span class="title"> Send Email </span>
										</div>
									</div> </a>
								</li>
								
								<li <?php if($page == "logout"){ ?> class="active open" <?php } ?>>
									<a href="<?php echo e(Asset('admin_panel/logout')); ?>">
									<div class="item-content">
										<div class="item-media">
											<div class="lettericon" data-text="L" data-size="sm" data-char-count="2"></div>
										</div>
										<div class="item-inner">
											<span class="title"> Logout </span>
										</div>
									</div> </a>
								</li>
								
								
								
							</ul>
							<!-- end: CORE FEATURES -->
						</nav>
					</div>
				</div>
			</div>