<?php
include("../db_connect.php");
$c = mysqli_query($db,"select count(id) as count from feedback where is_read = 0");
$count = mysqli_fetch_assoc($c);


?>

<style>
	.badge{
		background-color:#f44336;
	}
</style>
<nav class="main-menu">
		<ul>
			<li>
				<a href="dashboard.php">
					<i class="fa fa-home nav_icon"></i>
					<span class="nav-text">
					Dashboard
					</span>
				</a>
			</li>
			
			<li>
				<a href="resources.php">
					<i class="fa fa-home nav_icon"></i>
					<span class="nav-text">
					 Other Resources
					</span>
				</a>
			</li>
			<li>
				<a href="suicide.php">
					<i class="fa fa-home nav_icon"></i>
					<span class="nav-text">
					 Suicide Data
					</span>
				</a>
			</li>
			<li>
				<a href="feedback.php">
					<i class="fa fa-home nav_icon"></i>
					<span class="nav-text">
					 Feedbacks <?php if($count['count'] != 0){?><span class="badge">
					<?php echo $count['count']; ?>
					 </span>
					<?php } ?>
					</span>
				</a>
			</li>
		
			
		
		</ul>
		<ul class="logout">
			<li>
			<a href="login.html">
			<i class="icon-off nav-icon"></i>
			<span class="nav-text">
			Logout
			</span>
			</a>
			</li>
		</ul>
	</nav>
	<link rel="stylesheet" type="text/css" href="css/table-style.css" />
<link rel="stylesheet" type="text/css" href="css/basictable.css" />
<script type="text/javascript" src="js/jquery.basictable.min.js"></script>
<link href="css/font-awesome.css" rel="stylesheet"> 
<link rel="stylesheet" href="css/font.css" type="text/css"/>
<script src="js/validator.min.js"></script>
