<!-- 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">
						
					</span>
				</div>
				<div class="info">
					<a data-toggle="collapse" href="#collapseExample" aria-expanded="true">
						<span>
						@if(Auth::user())
						{{ ucfirst(Auth::user()->name) }} 
							<span class="user-level">User</span>
							<span class="caret"></span>
						@endif
						</span>
					</a>
					<div class="clearfix"></div>

					<div class="collapse in" id="collapseExample">
						<ul class="nav">
						<li>
							<a href="#">
							<span class="link-collapse">My Profile</span>   
							</a>
						</li>

						<li>		
							<a href="{{ route('logout') }}" onclick="event.preventDefault();
									document.getElementById('logout-form').submit();">
								<span class="link-collapse">
									{{ __('Logout') }}

								<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
									@csrf
								</form>
								</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>
				@if(Auth::user()->userOrg)
					@if(Auth::user()->userOrg->orgSurvey['status'] == 1)
					
							<li  class="nav-item">
								<a href="{{ route('mobisurvey.surveys')}}">
								    <i class="fas fa-hands-helping"></i>
									<p>Survey</p>
								</a>
							</li>
							
							<li  class="nav-item">
								<a href="{{ route('mobisurvey.my-surveys')}}">
								    <i class="fas fa-hands-helping"></i>
									<p>Reports</p>
								</a>
							</li>
						

							<li  class="nav-item">
								<a href="{{ route('mobisurvey.sumsung')}}">
								    <i class="fas fa-hands-helping"></i>
									<p>IME Survey</p>
								</a>
							</li>


					@endif
				@endif
				<li class="mx-4 mt-2 text-white">
					<a href="#" class="btn btn-warning btn-block text-white"><span class="btn-label mr-2"></span>Bal: Kes. {{ round($wallet[0],2) }}</a> 
				</li>
			</ul>
		</div>
	</div>
</div>
<!-- End Sidebar -->