<?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">Peter Clark</span>
									<div class="text-small text-white-transparent">
										UI Designer
									</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('home')); ?>"><i class="fa fa-home"></i> <span class="title"> Home</span> </a>
										</li>
										
										<li>
											<a href="<?php echo e(Asset('setting')); ?>"><i class="fa fa-cog"></i> <span class="title"> Setting</span> </a>
										</li>
										
									</ul>
								</li>
								<li <?php if($page == "client"){ ?> class="active open" <?php } ?>>
									<a href="<?php echo e(Asset('client')); ?>">
									<div class="item-content">
										<div class="item-media">
											<div class="lettericon" data-text="Client" data-size="sm" data-char-count="2"></div>
										</div>
										<div class="item-inner">
											<span class="title"> Clients </span>
										</div>
									</div> </a>
								</li>
								
							</ul>
							<!-- end: CORE FEATURES -->
						</nav>
					</div>
				</div>
			</div>