<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
	<div class="wrapper">
		<div class="main-header" style="border-bottom:1px solid orange">
			<!-- Logo Header -->
			<div class="logo-header" style="background-color: <?php echo e($settings->header_color); ?>">				
				<a href="/user/dashboard" class="text-white">
                   
               
                </a>
               
				<button class="navbar-toggler sidenav-toggler ml-auto" type="button" data-toggle="collapse" data-target="collapse" aria-expanded="false" aria-label="Toggle navigation">
					<span class="navbar-toggler-icon">
						<i class="icon-menu text-white"><span style="color:orange">MENU</span></i>
					</span>
				</button>
				<button class="topbar-toggler more text-white"><i class="icon-options-vertical text-white"></i></button>
				<div class="nav-toggle">
					<button class="btn btn-toggle toggle-sidebar" onclick="title_collapse()">
					    &emsp; <i class="icon-menu text-white"></i>
					</button>
				</div>
				<script type="text/javascript">
					function title_collapse()
					{
						$("#title_collapse").toggle();
					}
				</script>
			</div>
			<!-- End Logo Header -->

			<!-- Navbar Header -->
			<nav class="navbar navbar-header navbar-expand-lg" style="background-color: <?php echo e($settings->header_color); ?>">
				
				<div class="container-fluid">
					<div class="collapse" id="search-nav">
						<form class="navbar-left navbar-form nav-search mr-md-3">							
						</form>
					</div>
					<ul class="navbar-nav topbar-nav ml-md-auto align-items-center">
						<li class="nav-item dropdown hidden-caret">
							<a class="dropdown-toggle text-white" data-toggle="dropdown" href="#" aria-expanded="false">
								<i class="fa fa-flag"></i> 
								<?php if(Session::has('locale')): ?>
									<?php echo e(strtoupper(Session::get('locale'))); ?>

								<?php else: ?>
									<?php echo e(__('EN')); ?>

								<?php endif; ?>	
								&emsp;				
							</a>
							<ul class="dropdown-menu dropdown-adm animated fadeIn">
								<?php
                                    $activities = $lang;
                                ?>
                                <?php if(count($activities) > 0 ): ?>
                                    <?php $__currentLoopData = $activities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $activity): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <li>
											<a class="dropdown-item" href="<?php echo e(url('locale/'.$activity->lang_code)); ?>">
												<span class="fa fa-flag"></span> &nbsp;<?php echo e($activity->lang_name); ?>

											</a>
										</li>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php else: ?>
                                    
                                <?php endif; ?>																
																
							</ul>
						</li>
						<li class="nav-item dropdown hidden-caret">
							<a class=" dropdown-toggle" href="#" id="messageDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
								<?php                                  
	                                $msgs = App\msg::orderby('id', 'desc')->take(5)->get();
	                            ?>								
								<i class="fa fa-bell not_cont text-white">
									<?php $__currentLoopData = $msgs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $msg): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> 
                                        <?php 
                                            $rd = 0;
                                            $str = explode(';', $msg->readers);   
                                            $receiver = explode(';', $msg->users);                                         
                                            if( in_array($user->username, $receiver) || empty($msg->users) )
                                            {
                                            	if(!in_array($user->id, $str))
                                            	{
                                                	$rd = 1;
                                            	}
                                            }                                            
                                        ?>
                                        <?php if($rd == 1): ?>   
                                        	<i class="fa fa-circle new_not"></i>
                                        <?php endif; ?>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
									
								</i> <span class="text-white"> <?php echo e(__('messages.nots')); ?> </span><i class="fa fa-chevron-down text-white"></i>
								&emsp;	
							</a>
							<ul class="dropdown-menu messages-notif-box animated fadeIn" aria-labelledby="messageDropdown">	
								<li>
									<div class="message-notif-scroll scrollbar-outer">
										<div class="notif-center">											
                                            <?php $__currentLoopData = $msgs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $msg): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>                                            	
                                                <?php 
                                                    $rd = 0;
		                                            $str = explode(';', $msg->readers);   
		                                            $receiver = explode(';', $msg->users);                                         
		                                            if( in_array($user->username, $receiver) || empty($msg->users) )
		                                            {
		                                            	if(!in_array($user->id, $str))
		                                            	{
		                                                	$rd = 1;
		                                            	}
		                                            }                                                   
                                                ?>
                                                <?php if($rd == 1): ?> 
                                                	<a id="<?php echo e($msg->id); ?>" href="/notification/<?php echo e($msg->id); ?>" >
														<div class="notif-img"> 
															<i class="fa fa-bell fa-2x"></i>
														</div>
														<div class="notif-content " >
															<span class="subject"></span>
															<span class="block">
																<?php echo e($msg->subject); ?>

															</span>
															<span class="time"><?php echo e($msg->created_at); ?> ...</span> 
														</div>
													</a>
													<?php ($rd = 0); ?> 
                                                <?php endif; ?>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
											
										</div>										
									</div>
									<div class="dropdown-divider"></div>
									<div align="center">
										<a href="/notifications"> &nbsp; <?php echo e(__('messages.view_all')); ?></a>
										<br><br>
									</div>
								</li>
								
							</ul>
						</li>
						
						
						<li class="nav-item dropdown hidden-caret">
							<a class="dropdown-toggle profile-pic" data-toggle="dropdown" href="#" aria-expanded="false">
								<div class="avatar-sm">
									<?php if($user->img != ''): ?>
										<img src="/img/profile/<?php echo e($user->img); ?>" alt="..." class="avatar-img rounded-circle"style="border:2px solid orange;color:orange">
									<?php else: ?>
										<img src="/img/any.png" alt="image profile" class="avatar-img rounded-circle" style="border:2px solid orange;color:orange">
									<?php endif; ?>	
								</div>								
							</a>
							<ul class="dropdown-menu dropdown-user animated fadeIn">
								<div class="dropdown-user-scroll scrollbar-outer">
									<li>
										<div class="user-box">
											<div class="avatar-lg">
												<?php if($user->img != ''): ?>
													<img src="/img/profile/<?php echo e($user->img); ?>" alt="..." class="avatar-img rounded-circle" style="border: 2px solid orange;color:orange">
												<?php else: ?>
													<img src="/img/any.png" alt="image profile" class="avatar-img rounded" style="border:2px solid orange;color:orange">
												<?php endif; ?>	
											</div>
											<a href="/<?php echo e($user->username); ?>/profile">
												<div class="u-text">
													<h4> <?php echo e(__('messages.hi')); ?> <?php echo e($user->username); ?></h4><a href="/logout">
								<i style="color:orange"  class="fas fa-arrow-right"></i>LogOut</a>
													<p class="text-muted"><?php echo e($user->email); ?></p>
												</div>
											</a>
										</div>
									</li>
									<li>
										<div class="dropdown-divider"></div>										
										<a class="dropdown-item" href="/<?php echo e($user->username); ?>/dashboard"><span class="fa fa-desktop"></span> &nbsp; <?php echo e(__('messages.dasbrd')); ?></a>
										<a class="dropdown-item" href="/<?php echo e($user->username); ?>/wallet"><span class="fa fa-folder"></span>&nbsp; <?php echo e(__('messages.dpst')); ?></a>
										<a class="dropdown-item" href="/<?php echo e($user->username); ?>/send_money"><span class="fa fa-paper-plane"></span>&nbsp; <?php echo e(__('messages.trsfr_fnd')); ?></a>
										<a class="dropdown-item" href="/<?php echo e($user->username); ?>/investments"><span class="fa fa-wallet"></span>&nbsp; <?php echo e(__('messages.my_invstm')); ?> </a>
										<a class="dropdown-item" href="/<?php echo e($user->username); ?>/withdrawal"><span class="fa fa-download"></span>&nbsp; <?php echo e(__('messages.wthdrwl')); ?> </a>
										<a class="dropdown-item" href="/<?php echo e($user->username); ?>/downlines"><span class="fa fa-users"></span>&nbsp; <?php echo e(__('messages.dwnlns')); ?> </a>
										<a class="dropdown-item" href="<?php echo e(route('ticket.index')); ?>">
											<span class="fab fa-teamspeak"></span>&nbsp; <?php echo e(__('messages.cntct_sppt')); ?>

											<?php                                  
				                                $msgs = App\ticket::With('comments')->orderby('id', 'desc')->get();
				                                $rd = 0;
				                            ?>
											<?php $__currentLoopData = $msgs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $msg): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>                                     
			                                    <?php $__currentLoopData = $msg->comments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $comment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
			                                    	<?php if($comment->state == 1 && $comment->sender == 'support'): ?>
			                                    		<?php ($rd = 1); ?>
			                                    	<?php endif; ?>
			                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>                                   
			                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
			                                <?php if($rd == 1): ?>   
			                                	<i class="fa fa-circle new_not text-danger"></i>
			                                <?php endif; ?>
										</a>
										
										<div class="dropdown-divider"></div>
										<a class="dropdown-item" href="/logout"><span class="fa fa-arrow-right"></span> &nbsp; <?php echo e(__('messages.logout')); ?></a>

									</li>
								</div>
							</ul>
						</li>
					</ul>
				</div>
			</nav>
			<!-- End Navbar -->
		</div>

		<!-- Sidebar -->
		<div class="sidebar sidebar-style-2"style="background-color: <?php echo e($settings->header_color); ?>">			
			<div class="sidebar-wrapper scrollbar scrollbar-inner">
				<div class="sidebar-content">
					<div class="user">
						<div class="avatar-sm float-left mr-2">
							<?php if($user->img != ''): ?>
								<img src="/img/profile/<?php echo e($user->img); ?>" alt="..." class="avatar-img rounded-circle" style="border:2px solid orange;color:orange;border-radius:100%">
							<?php else: ?>
								<img src="/img/any.png" alt="image profile" class="avatar-img rounded" style="border:2px solid orange;border-radius:100%">
							<?php endif; ?>	
						</div>
						<div class="info">
							<a data-toggle="collapse" href="/<?php echo e($user->username); ?>/profile" aria-expanded="true">
								<span style="color:orange">
									<?php echo e(ucfirst($user->username)); ?>

									<span class="user-level"><?php echo e($user->email); ?></span>									
								</span>
							</a>
							<div class="clearfix"></div>							
						</div>
					</div>
					<ul class="nav nav-primary"style="background-color: <?php echo e($settings->header_color); ?>">
						
						<li class="nav-item">
							<a href="/<?php echo e($user->username); ?>/dashboard">
								<i style="color:orange"  class="fas fa-layer-group"></i>
								<p style="font-size:13pt"><?php echo e(__('messages.dasbrd')); ?> </p>								
							</a>							
						</li>
						<li class="nav-item">
							<a href="/<?php echo e($user->username); ?>/profile">
								<i style="color:orange"  class="fas fa-user"></i>
								<p style="font-size:13pt"><?php echo e(__('messages.my_prfl')); ?> </p>								
							</a>							
						</li>
						<li class="nav-item">
							<a  href="/<?php echo e($user->username); ?>/wallet">
								<i style="color:orange"  class="fas fa-wallet"></i>
								<p style="font-size:13pt"><?php echo e(__('messages.walt_dpst')); ?> </p>
							</a>							
						</li>
						<li class="nav-item">
							<a href="/<?php echo e($user->username); ?>/send_money">
								<i style="color:orange"  class="fas fa-paper-plane"></i>
								<p style="font-size:13pt"><?php echo e(__('messages.trsfr_fnd')); ?> </p>
							</a>
						</li>
						<li class="nav-item">
							<a href="/<?php echo e($user->username); ?>/investments">
								<i style="color:orange"  class="fas fa-folder"></i>
								<p style="font-size:13pt"><?php echo e(__('messages.my_invstm')); ?></p>
							</a>							
						</li>
						
						<li class="nav-item">
							<a href="/<?php echo e($user->username); ?>/withdrawal">
								<i style="color:orange"  class="fas fa-download"></i>
								<p style="font-size:13pt"> Withdrawal History</p>
							</a>
						</li>
							<li class="nav-item">
							<a href="/<?php echo e($user->username); ?>/profit">
								<i style="color:orange"  class="fas fa-download"></i>
								<p style="font-size:13pt">Active Trade</p>
							</a>
						</li>
							<li class="nav-item">
							<a href="/<?php echo e($user->username); ?>/takeprofit">
								<i style="color:orange"  class="fas fa-download"></i>
								<p style="font-size:13pt">Withdraw Profit</p>
							</a>
						</li>
									<li class="nav-item">
							<a href="/<?php echo e($user->username); ?>/withdrawals">
								<i style="color:orange"  class="fas fa-download"></i>
								<p style="font-size:13pt">Withdraw Balance</p>
							</a>
						</li>
						<li class="nav-item">
							<a href="/<?php echo e($user->username); ?>/downlines">
								<i style="color:orange"  class="fas fa-users"></i>
								<p style="font-size:13pt"> <?php echo e(__('messages.dwnlns')); ?> </p>
							</a>							
						</li>
						<li class="nav-item">
							<a href="<?php echo e(route('ticket.index')); ?>">
								<i class="fab fa-teamspeak" style="color:orange"></i>
								<p style="font-size:13pt"><?php echo e(__('messages.cntct_sppt')); ?> </p>
								<?php                                  
	                                $msgs = App\ticket::With('comments')->where('user_id', $user->id)->get();
	                                $rd = 0;
	                            ?>
								<?php $__currentLoopData = $msgs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $msg): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>                                     
                                    <?php $__currentLoopData = $msg->comments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $comment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    	<?php if($comment->state == 1 && $comment->sender == 'support'): ?>
                                    		<?php ($rd = 1); ?>
                                    	<?php endif; ?>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>                                   
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php if($rd == 1): ?>   
                                	<i class="fa fa-circle new_not text-danger"></i>
                                <?php endif; ?>	

							</a>							
						</li>

					

						
					</ul>
				</div>
			</div>
		</div>
		<!-- End Sidebar --><?php /**PATH /home/nippqupd/indicesmarketltd.com/core/resources/views/layouts/atlantis/header.blade.php ENDPATH**/ ?>