	<ul class="notifications">
						<!--<li>
							<a href="#" class="dropdown-toggle notification-icon" data-toggle="dropdown">
								<i class="fas fa-tasks"></i>
								<span class="badge">3</span>
							</a>
			
							<div class="dropdown-menu notification-menu large">
								<div class="notification-title">
									<span class="float-right badge badge-default">3</span>
									Tasks
								</div>
			
								<div class="content">
									<ul>
										<li>
											<p class="clearfix mb-1">
												<span class="message float-left">Generating Sales Report</span>
												<span class="message float-right text-dark">60%</span>
											</p>
											<div class="progress progress-xs light">
												<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;"></div>
											</div>
										</li>
			
										<li>
											<p class="clearfix mb-1">
												<span class="message float-left">Importing Contacts</span>
												<span class="message float-right text-dark">98%</span>
											</p>
											<div class="progress progress-xs light">
												<div class="progress-bar" role="progressbar" aria-valuenow="98" aria-valuemin="0" aria-valuemax="100" style="width: 98%;"></div>
											</div>
										</li>
			
										<li>
											<p class="clearfix mb-1">
												<span class="message float-left">Uploading something big</span>
												<span class="message float-right text-dark">33%</span>
											</p>
											<div class="progress progress-xs light mb-1">
												<div class="progress-bar" role="progressbar" aria-valuenow="33" aria-valuemin="0" aria-valuemax="100" style="width: 33%;"></div>
											</div>
										</li>
									</ul>
								</div>
							</div>
						</li>-->
						<?php 
						$resulttask = $db2->query("SELECT COUNT(*) FROM `tasks` WHERE tasks.task_to='$userid' AND tasks.task_seen=0 ");
						$rowtask = $resulttask->fetch_row();
						$resulttask2 = $db2->query("SELECT COUNT(*) FROM `tasks` WHERE tasks.task_to='$userid' ");
						$rowtask2 = $resulttask2->fetch_row();
						?>
						<li>
							<a href="#" class="dropdown-toggle notification-icon" data-toggle="dropdown">
								<i class="fas fa-envelope"></i>
								<span class="badge"><?php echo $rowtask[0];?></span>
							</a>
			
							<div class="dropdown-menu notification-menu">
								<div class="notification-title">
									<span class="float-right badge badge-default"><?php echo $rowtask2[0];?></span>
									Messages
								</div>
			
								<div class="content">
									<ul>
									<?php $sqlcanvas2 = $db2-> query(
					"SELECT * FROM tasks WHERE tasks.task_to='$userid' AND tasks.task_seen='0'"
					) or die(mysql_error());
				while ($rowcanvas2 = mysqli_fetch_array($sqlcanvas2)){
				
					$fromuser=$rowcanvas2['task_from'];
					$sqlu2 = $db->query("SELECT * FROM users WHERE users.id='$fromuser' ") or die(mysql_error());
					$rowu2 = mysqli_fetch_array( $sqlu2 );
					$sst2=date("d/m/y", strtotime($rowcanvas2['task_start_date']));
					$eet2=date("d/m/y", strtotime($rowcanvas2['task_end_date']));
					?>
										<li>
											<a href="task.php?id=<?php echo $rowcanvas2['task_id'];?>" class="clearfix">
												
												<span class="title"><?php echo $rowu2['username'];?></span>
												<hr />
												<span class="message truncate">From <?php echo $sst2."@".$rowcanvas2['task_start_time']." </br>To ".$eet2."@".$rowcanvas2['task_end_time'];?></br> <?php echo $rowcanvas2['task_details'];?></span>
											</a>
										</li>
										<hr />
				</br>
										<?php }?>
									</ul>
			
									
			<div class="row">
				<div class="col-6">
				<div class="text-left">
										<a href="calendar.php" class="view-more">View Calendar</a>
										
									</div>
				</div>
				<div class="col-6">
				<div class="text-right">
									
									<a href="tasks.php" class="view-more">View List</a>
								</div>
				</div>	
			</div>
									
									
								</div>
							</div>
						</li>
						<!--<li>
							<a href="#" class="dropdown-toggle notification-icon" data-toggle="dropdown">
								<i class="fas fa-bell"></i>
								<span class="badge">3</span>
							</a>
			
							<div class="dropdown-menu notification-menu">
								<div class="notification-title">
									<span class="float-right badge badge-default">3</span>
									Alerts
								</div>
			
								<div class="content">
									<ul>
										<li>
											<a href="#" class="clearfix">
												<div class="image">
													<i class="fas fa-thumbs-down bg-danger text-light"></i>
												</div>
												<span class="title">Server is Down!</span>
												<span class="message">Just now</span>
											</a>
										</li>
										<li>
											<a href="#" class="clearfix">
												<div class="image">
													<i class="fas fa-lock bg-warning text-light"></i>
												</div>
												<span class="title">User Locked</span>
												<span class="message">15 minutes ago</span>
											</a>
										</li>
										<li>
											<a href="#" class="clearfix">
												<div class="image">
													<i class="fas fa-signal bg-success text-light"></i>
												</div>
												<span class="title">Connection Restaured</span>
												<span class="message">10/10/2017</span>
											</a>
										</li>
									</ul>
			
									<hr />
			
									<div class="text-right">
										<a href="#" class="view-more">View All</a>
									</div>
								</div>
							</div>
						</li>
					</ul>-->