<!-- 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">
					{{ Str::limit(ucfirst(Auth::guard('web')->user()->cust_user_surname),1,' ')}}
					{{ Str::limit(ucfirst(Auth::guard('web')->user()->cust_user_othername),1,' ')}}
				</span>
				</div>
				<div class="info">
					<a data-toggle="collapse" href="#collapseExample" aria-expanded="true">
						<span>
						{{ ucfirst(Auth::user()->cust_user_surname) }}
							<span class="user-level">User</span>
							<span class="caret"></span>
						</span>
					</a>
					<div class="clearfix"></div>

					<div class="collapse in" id="collapseExample">
						<ul class="nav">
							<li>
								<a href="{{route('profile.userprofile', Auth::guard('web')->user()->cust_user_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-warning">
			    <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('user')) ? 'active' : '' }}">
					<a href="{{ route('user-dashboard')}}" class="collapsed">
						<i class="fas fa-tachometer-alt"></i>
						<p>Dashboard</p>
					</a>
				</li>
				<li class="nav-item {{ (request()->is('groups*')) ? 'active' : '' }}">
					<a href="{{ route('bmgroups.index', Auth::guard('web')->user()->customer_cust_id)}}">
						<i class="fas fa-layer-group"></i>
						<p>Groups</p>
					</a>
				</li>
				<li class="nav-item {{ (request()->is('clients*')) ? 'active' : '' }}">
					<a href="{{ route('clients.index',Auth::guard('web')->user()->customer_cust_id)}}">
						<i class="fas fa-user-friends"></i>
						<p>Contacts</p>
					</a>
				</li>
				<li class="nav-item  {{ (request()->is('client-groups')) ? 'active' : '' }}">
					<a href="{{ route('client-groups.index',Auth::guard('web')->user()->customer_cust_id)}}">
						<i class="far fa-object-group"></i>
						<p>Group Contacts</p>
					</a>
				</li>
				
				<li class="nav-item {{ (request()->is('payments*')) || (request()->is('scheduled*')) ? 'active' : '' }}">
				<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('history*')) ? 'active' : '' }}">
					<a href="{{ route('history.index',Auth::guard('web')->user()->cust_user_id)}}">
						<i class="fas fa-user-friends"></i>
						<p>History</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 -->