<!-- 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">
								<?php echo e(Str::limit(ucfirst(Auth::user()->name),1,' ')); ?>

					</span>
				</div>
				<div class="info">
					<a data-toggle="collapse" href="#collapseExample" aria-expanded="true">
						<span>
						<?php echo e(ucfirst(Auth::user()->name)); ?> 
							<span class="user-level">Organization</span>
							<span class="caret"></span>
						<span class="user-level">Customer</span>
							<span class="caret"></span>
						</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="<?php echo e(route('ivr-request')); ?>">
							<span class="link-collapse">Request IVR</span>   
							</a>
						</li>
						<li>
							<a href="<?php echo e(route('survey-request')); ?>">
							<span class="link-collapse">Request Survey</span>   
							</a>
						</li>

						<li>		
							<a href="<?php echo e(route('logout')); ?>">
								<span class="link-collapse">Logout</span>
							</a>
						</li>					
					</ul>
				</div>
			</div>
		</div>
			<ul class="nav nav-danger">
			    <li class="nav-item <?php echo e((request()->is('customer')) ? 'active' : ''); ?>">
					<a href="<?php echo e(url('/home')); ?>" class="collapsed" aria-expanded="false">
						<i class="fas fa-home"></i>
						<p>Home</p>
					</a>
				</li>
				<li class="nav-item <?php echo e((request()->is('organization-dashboard')) ? 'active' : ''); ?>">
					<a href="<?php echo e(route('organization-dashboard')); ?>" class="collapsed" aria-expanded="false">
						<i class="fas fa-tachometer-alt"></i>
						<p>Dashboard</p>
					</a>
				</li>
				
				<li class="nav-item <?php echo e((request()->is('organization-users*')) ? 'active' : ''); ?>">
					<a href="<?php echo e(route('organization-users.index')); ?>" class="collapsed" aria-expanded="false">
						<i class="fas fa-user-astronaut"></i>
						<p>Users</p>
					</a>
				</li>

				
								
				<li class="nav-item <?php echo e((request()->is('departments*')) ? 'active' : ''); ?>">
					<a href="<?php echo e(route('departments.index')); ?>" class="collapsed" aria-expanded="false">
						<i class="fas fa-building"></i>
						<p>Departments</p>
					</a>
				</li>
				

		
				<li class="nav-item <?php echo e((request()->is('inboxtags*')) ? 'active' : ''); ?>">
					<a href="<?php echo e(route('inboxtags.index')); ?>" class="collapsed" aria-expanded="false">
						<i class="fas fa-user-astronaut"></i>
						<p>Inbox Tags</p>
					</a>
				</li>
				

				<li class="nav-item <?php echo e((request()->is('groups*')) ? 'active' : ''); ?>">
					<a href="<?php echo e(route('groups.index')); ?>" class="collapsed" aria-expanded="false">
						<i class="fas fa-user-friends"></i>
						<p>Group</p>
					</a>
				</li>
				<li class="nav-item <?php echo e((request()->is('contacts*')) ? 'active' : ''); ?>">
					<a href="<?php echo e(route('contacts.index')); ?>" class="collapsed" aria-expanded="false">
						<i class="fas fa-users"></i>
						<p>Contacts</p>
					</a>
				</li>
					
				<li class="nav-item <?php echo e((request()->is('countries*')) ? 'active' : ''); ?>">
					<a href="<?php echo e(route('countries.index')); ?>" class="collapsed" aria-expanded="false">
						<i class="fas fa-users"></i>
						<p>Countries</p>
					</a>
				</li>

				<li class="nav-item <?php echo e((request()->is('message*')) ? 'active' : ''); ?>">
					<a data-toggle="collapse" href="#composer">
						<i class="fa fa-comment"></i>
						<p>SMS Composer</p>
						<span class="caret"></span>
					</a>
					<div class="collapse" id="composer">
						<ul class="nav nav-collapse">
						    <li>
								<a href="<?php echo e(route('smscontactexceluploads.index')); ?>">
									
									<span class="sub-item">Send SMS</span>
								</a>
							</li>
							<li>
								<a href="<?php echo e(route('customsms.index')); ?>">
									
									<span class="sub-item">Custom SMS</span>
								</a>
							</li>
							<li>
								<a href="<?php echo e(route('smscomposer.index')); ?>">
									<span class="sub-item">Compose SMS</span>
								</a>
							</li>
						

							<li>
								<a href="<?php echo e(route('exceluploads.index')); ?>">
									
									<span class="sub-item">Excel Upload</span>
								</a>
							</li>
							
							<li>
								<a href="<?php echo e(route('schedule.index')); ?>">
									
									<span class="sub-item">Schedule</span>
								</a>
							</li>



                          
						

						</ul>
					</div>
				</li>
				
				<li class="nav-item <?php echo e((request()->is('tags*')) || (request()->is('untagged*')) ? 'active' : ''); ?>">
					<a data-toggle="collapse" href="#message">
						<i class="fa fa-comments"></i>
						<p>Smart Inbox</p>
						<span class="caret"></span>
					</a>
					<div class="collapse" id="message">
						<ul class="nav nav-collapse">
							<li>
								<a href="<?php echo e(route('tags.index')); ?>">
									<span class="sub-item">Tagged SMS</span>
								</a>
							</li>
							<li>
								<a href="<?php echo e(route('untagged')); ?>">
									<span class="sub-item">Untagged/Other</span>
								</a>
							</li>
						</ul>
					</div>
				</li>
				<!-- ivr -->
				
				<?php if(Auth::user()->userOrg->orgIvr): ?>
					<?php if(Auth::user()->userOrg->orgIvr['status'] == 1): ?>
					<li class="nav-item <?php echo e((request()->is('ivrs*')) ? 'active' : ''); ?>">
						<a href="<?php echo e(route('ivrs')); ?>">
							<i class="fa fa-microphone"></i>
							<p>IVR</p>
						</a>
					</li>
					<?php endif; ?>
				<?php endif; ?>
				<!-- /ivr -->
				<!-- survey -->
				<?php if(Auth::user()->userOrg): ?>
					<?php if(Auth::user()->userOrg->orgSurvey['status'] == 1): ?>
					<!--<li class="nav-item <?php echo e((request()->is('surveys')) ? 'active' : ''); ?>">
						<a data-toggle="collapse" href="#survey">
							<i class="fas fa-hands-helping"></i>
							<p>Survey</p>
							<span class="caret"></span>
						</a>
						<div class="collapse" id="survey">
						<ul class="nav nav-collapse">
						
					
						
							<li>
								<a href="<?php echo e(route('surveys')); ?>">
									<span class="sub-item">Survey</span>
								</a>
							</li>
							
							<li>
								<a href="<?php echo e(route('my-surveys')); ?>">
									<span class="sub-item">Reports</span>
								</a>
							</li>
						</ul>
					</div>
					</li> -->
					<?php endif; ?>
				<?php endif; ?>
				<!-- /survey -->
				<li class="nav-item <?php echo e((request()->is('transactions*')) || (request()->is('topup*')) ? 'active' : ''); ?>">
					<a data-toggle="collapse" href="#wallet">
						<i class="fas fa-wallet"></i>
						<p>Billing</p>
						<span class="caret"></span>
					</a>
					<div class="collapse" id="wallet">
						<ul class="nav nav-collapse">
							<li>
								<a href="<?php echo e(route('transactions')); ?>">
									<span class="sub-item">Transactions</span>
								</a>
							</li>
							<li>
								<a href="<?php echo e(route('topup')); ?>">
									<span class="sub-item">Topup</span>
								</a>
							</li>
						</ul>
					</div>
				</li>
				
						<li class="nav-item <?php echo e((request()->is('sentsms*')) ? 'active' : ''); ?>">
					<a href="<?php echo e(route('sentsms.index')); ?>" class="collapsed" aria-expanded="false">
						<i class="fas fa-users"></i>
						<p>Sent SMS</p>
					</a>
				</li>
					
				
				<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. <?php echo e(round($wallet[0],2)); ?> </a> 
				</li>
			</ul>
		</div>
	</div>
</div>
<!-- End Sidebar --><?php /**PATH D:\xampp\htdocs\Accounts\resources\views/fcviews/partials/org-side.blade.php ENDPATH**/ ?>