<!-- Sidebar -->
<div class="sidebar sidebar-style-1">			
	<div class="sidebar-wrapper scrollbar scrollbar-inner">
		<div class="sidebar-content">
			<div class="user">
				<div class="avatar-sm float-left mr-2">
					<span class="avatar-title rounded-circle bg-dark">
								AD
					</span>
				</div>
				<div class="info">
					<a data-toggle="collapse" href="#collapseExample" aria-expanded="true">
						<span>
						{{ ucfirst(Auth::user()->username) }} 
							<span class="user-level">Admin</span>
							<span class="caret"></span>
						
						</span>
					</a>
					<div class="clearfix"></div>

					<div class="collapse in" id="collapseExample">
						<ul class="nav">
						<li>
							<a href="{{ route('admin-user.edit',Auth::id())}}">
							<span class="link-collapse">My Profile</span>   
							</a>
						</li>

						<li>		
							<a href="{{ route('logout')}}">
								<span class="link-collapse">Logout</span>
							</a>
						</li>					
					</ul>
				</div>
			</div>
		</div>
			<ul class="nav nav-danger">
			    <li class="nav-item {{ (request()->is('customer')) ? 'active' : '' }}">
					<a href="{{ url('/home')}}" class="collapsed" aria-expanded="false">
						<i class="fas fa-home"></i>
						<p>Home</p>
					</a>
				</li>
				<li class="nav-item {{ (request()->is('admin')) ? 'active' : '' }}">
					<a href="{{ route('admin-dashboard')}}" class="collapsed" aria-expanded="false">
						<i class="fas fa-tachometer-alt"></i>
						<p>Dashboard</p>
					</a>
				</li>
				
				<li class="nav-item {{ (request()->is('admin-user*')) ? 'active' : '' }}">
					<a href="{{ route('admin-user.index')}}" class="collapsed" aria-expanded="false">
						<i class="fas fa-user-astronaut"></i>
						<p>Admin</p>
					</a>
				</li>
				<li class="nav-item {{ (request()->is('customers*')) || (request()->is('users*')) || (request()->is('groups*')) || (request()->is('clients*')) ? 'active' : '' }}">
					<a href="{{ route('customers.index')}}">
						<i class="fas fa-users"></i>
						<p>Customers</p>
					</a>
				</li>
				<li class="nav-item {{ (request()->is('payments*')) }}">
					<a href="{{ route('payments.index')}}">
						<i class="fas fa-coins"></i>
						<p>Payments</p>
					</a>
				</li>
				
				<li class="nav-item {{ (request()->is('wallet*')) ? 'active' : '' }}">
					<a href="{{ route('wallet.index')}}">
						<i class="fas fa-wallet"></i>
						<p>Wallets</p>
					</a>
				</li>

				<li class="nav-item {{ (request()->is('rates*')) ? 'active' : '' }}">
					<a href="{{ route('rates.index')}}">
						<i class="fas fa-sort-numeric-down"></i>
						<p>B2C Rates</p>
					</a>
				</li>
				<li class="nav-item {{ (request()->is('b2brates*')) ? 'active' : '' }}">
					<a href="{{ route('b2brates.index')}}">
						<i class="fas fa-sort-numeric-down"></i>
						<p>B2B Rates</p>
					</a>
				</li>
				<li class="nav-item {{ (request()->is('b2btariffs*')) ? 'active' : '' }}">
					<a href="{{ route('b2btariffs.index')}}">
						<i class="fas fa-sort-numeric-down"></i>
						<p>B2B Tariffs</p>
					</a>
				</li>
				
				<!-- <li class="mx-4 mt-2 text-white">
					<a href="#" class="btn bg-orange3 btn-block text-white"><span class="btn-label mr-2"> <i class="fa flaticon-settings"></i> </span>Settings</a> 
				</li> -->
			</ul>
		</div>
	</div>
</div>
<!-- End Sidebar -->