<!-- 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()->cust_name),1,' ')); ?>

				</span>
				</div>
				<div class="info">
					<a data-toggle="collapse" href="#collapseExample" aria-expanded="true">
						<span>
						<?php echo e(ucfirst(Auth::user()->cust_name)); ?>

							<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="<?php echo e(route('profile.customerprofile',Auth::user()->bulk_cust_id)); ?>">
								<span class="link-collapse">My Profile</span>
								</a>
							</li>

							<li>
								<a href="<?php echo e(route('profile.customerprofile',Auth::user()->bulk_cust_id)); ?>">	
								<span class="link-collapse">Edit Profile</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-warning">
			    <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('customer')) ? 'active' : ''); ?>">
					<a href="<?php echo e(route('customer-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('users*')) ? 'active' : ''); ?>">
					<a href="<?php echo e(route('users.index',Auth::user()->bulk_cust_id)); ?>">
						<i class="fas fa-users"></i>
						<p>Users</p>
					</a>
				</li>
				<li class="nav-item <?php echo e((request()->is('groups*')) ? 'active' : ''); ?>">
					<a href="<?php echo e(route('bmgroups.index',Auth::user()->bulk_cust_id)); ?>">
						<i class="fas fa-layer-group"></i>
						<p>Groups</p>
					</a>
				</li>


				<li class="nav-item <?php echo e((request()->is('clients*')) ? 'active' : ''); ?>">
					<a href="<?php echo e(route('clients.index',Auth::user()->bulk_cust_id)); ?>">
						<i class="fas fa-user-friends"></i>
						<p>Contacts</p>
					</a>
				</li>
				<li class="nav-item  <?php echo e((request()->is('client-groups')) ? 'active' : ''); ?>">
					<a href="<?php echo e(route('client-groups.index')); ?>">
						<i class="far fa-object-group"></i>
						<p>Group Contacts</p>
					</a>
				</li>
				<li class="nav-item <?php echo e((request()->is('supervise*')) || (request()->is('scheduled*')) ? 'active' : ''); ?>">
				<a href="<?php echo e(route('supervise.index')); ?>">
						<i class="fas fa-coins"></i>
						<p>Supervise</p>
						<?php
						  $pending = App\Models\bmmodels\CustomerClientPayment::where('client_pay_tracking',0)->where('client_pay_status',0)->where('customer_cust_id',Auth::user()->bulk_cust_id)->get();
						  $count=count($pending );
						?>
						<?php if(count($pending )> 0): ?>
						<span class="badge badge-success"><?php echo e($count); ?></span>
						<?php endif; ?>
					</a>
				</li>
				<li class="nav-item <?php echo e((request()->is('payments*')) || (request()->is('scheduled*')) ? 'active' : ''); ?>">
				<a href="<?php echo e(route('payments.index')); ?>">
						<i class="fas fa-coins"></i>
						<p>Payments</p>
					</a>
				</li>
				<li class="nav-item <?php echo e((request()->is('business-numbers*')) || (request()->is('scheduled*')) ? 'active' : ''); ?>">
				<a href="<?php echo e(route('business-numbers',Auth::user()->bulk_cust_id)); ?>">
						<i class="fas fa-coins"></i>
						<p>Business Nos.</p>
					</a>
				</li>
				<li class="nav-item <?php echo e((request()->is('wallet*')) ? 'active' : ''); ?>">
					<a href="<?php echo e(route('wallet.index')); ?>">
						<i class="fas fa-wallet"></i>
						<p>Wallets</p>
					</a>
				</li>

				<li class="nav-item <?php echo e((request()->is('history*')) ? 'active' : ''); ?>">
					<a href="<?php echo e(route('history.index',Auth::user()->bulk_cust_id)); ?>">
						<i class="fas fa-user-friends"></i>
						<p>History</p>
					</a>
				</li>
				
				<li class="mx-4 mt-2 text-white <?php echo e((request()->is('setting*')) ? 'active' : ''); ?>">
					<a href="<?php echo e(route('settings.index')); ?>" class="btn btn-warning 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 -->
<?php /**PATH C:\xamppkkkkkkkkkkkkkkkkkkk\htdocs\Accounts\resources\views/bmviews/partials/customer-side.blade.php ENDPATH**/ ?>