<?php 
include_once("include/functions.php");

if(!empty($_SESSION['login_id']))
{
	$sqlnotification=executework("select *,(lms_cart_list.id) AS main_id from lms_cart_list,lms_instructor_courses,lms_cart_course where lms_instructor_courses.id=lms_cart_list.purchage_course_id and lms_cart_course.cart_id=lms_cart_list.cart_id and lms_cart_course.user_type='Student' and lms_cart_list.parent_id='".$_SESSION['login_id']."' and lms_cart_course.order_status NOT IN('completed','cancelled')");
$cntnotification=@mysqli_num_rows($sqlnotification);
}
?>
 <!DOCTYPE html>
  <html lang="en">
	<head>
		<!-- Meta -->
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1"> 
		<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
		<meta name="description" content="Penn - Education HTML Template">
		<meta name="keywords" content="theme_ocean, college, course, e-learning, education, high school, kids, learning, online, online courses, school, student, teacher, tutor, university">
		<meta name="author" content="theme_ocean">
		<!-- SITE TITLE -->
		<title>Robotics Academy</title>			
		<!-- Latest Bootstrap min CSS -->
		<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">		
		<!-- Google Font -->
		<link href="https://fonts.googleapis.com/css2?family=Mulish:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
		<!-- Font Awesome CSS -->
		<link rel="stylesheet" href="assets/fonts/font-awesome.min.css">
		<link rel="stylesheet" href="assets/fonts/themify-icons.css">
		<!--- owl carousel Css-->
		<link rel="stylesheet" href="assets/owlcarousel/css/owl.carousel.css">
		<link rel="stylesheet" href="assets/owlcarousel/css/owl.theme.css">				
		<!--slicknav Css-->
        <link rel="stylesheet" href="assets/css/slicknav.css">		
		<!-- MAGNIFIC CSS -->
		<link rel="stylesheet" href="assets/css/magnific-popup.css">	
		<!-- animate CSS -->
		<link rel="stylesheet" href="assets/css/animate.css">			
		<!-- Style CSS -->					
		<link rel="stylesheet" href="assets/css/style.css" />
        <!-- Add in <head> -->
        <link href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600&display=swap" rel="stylesheet">
        
        <link rel="stylesheet" href="assets/css/niceselect.css" />	
		<link rel="stylesheet" href="assets/css/shop.css" />	
        
        <script src="include/validation.js"></script>
        <script src="include/ajax_functions.js"></script>
      
					
		
</head>
<body>
	
	<!-- START PRELOADER -->
    <div id="loader-wrapper">
        <div id="loader"></div>
        <div class="loader-section section-left"></div>
        <div class="loader-section section-right"></div>
    </div>
	<!-- END PRELOADER -->
	
	<!-- START LOGO WITH CONTACT -->
	<section class="logo-contact">
		<div class="container">
			<div class="row">
				<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">
					<div class="single-top-contact">
						<i class="fa fa-envelope"></i>
						<h4><a href="mailto:example@gmail.com">example@mail.com</a></h4>
					</div>
				</div><!--- END COL -->	
				<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">
					<div class="single-top-contact">	&nbsp;						
						<!--<i class="fa fa-envelope"></i>
						<h4><a href="mailto:example@gmail.com">example@mail.com</a></h4>-->	
					</div>
				</div><!--- END COL -->	
				<div class="col-lg-1 col-md-2 col-sm-6 col-xs-12">
					<div class="single-top-contact"> &nbsp;
						<!--<i class="fa fa-user-o"></i>
						<h4> <span> login </span> <span></span> </h4>--> 
					</div>
				</div><!--- END COL -->	
				<div class="col-lg-5 col-md-6 col-sm-6 col-xs-12">
					<div class="top_social_profile">
						<ul>
                        	<li><a href="#" class="top_f_facebook"><i class="ti-comment"></i> Chat</a></li> 
							<li><a href="#" class="top_f_facebook"><i class="ti-search"></i> Search</a></li>
                             <?php if(empty($_SESSION['login_id'])){ ?>
							<li><a href="login.php" class="top_f_facebook"><i class="ti-user"></i> Login</a></li>
                            
							<li><a href="#" class="top_f_facebook"><i class="ti-shopping-cart-full"></i></a></li>  
                            <?php } ?>                          
						</ul>
                        
					</div>
				</div><!--- END COL -->						
                
               
                
			</div><!--- END ROW -->
		</div><!--- END CONTAINER -->
	</section>
	<!-- END LOGO WITH CONTACT -->
	<?php if(empty($_SESSION['login_id'])){ ?>
	<!-- START NAVBAR -->  
	<div id="navigation" class="navbar-light bg-faded site-navigation">
		<div class="container">
			<div class="row">
				<div class="col-lg-2 col-md-3 col-sm-4">
					<div class="site-logo">
						<a href="index.php"><img src="assets/images/all-img/logo.jpg" alt=""></a>	
                    </div>
				</div><!--- END Col -->
				
				<div class="col-lg-8 col-md-7 col-sm-6 ">
					<div class="header_right ">
						<nav id="main-menu" class="ms-auto">
							<ul>
							  <li><a class="nav-link" href="#">Courses</a></li>
								<li><a class="nav-link" href="#">State Requirements</a></li>
								<li><a class="nav-link" href="#">Group Savings </a></li>
							    <li><a class="nav-link" href="#">Video Library & Coaching</a></li>  
                                <li><a class="nav-link" href="#">Resources</a></li>
							</ul>
						</nav>
						<div id="mobile_menu"></div>
					</div>
				</div><!--- END Col -->
				<div class="col-lg-2 col-md-2 col-sm-2">
					<div class="call_to_action">
						<a class="btn_one" href="filter_courses.php">Shop Courses</a>					
                    </div><!--- END SOCIAL PROFILE -->					
				</div><!--- END Col -->
			</div><!--- END ROW -->
		</div><!--- END CONTAINER -->
	</div> 	  
	<!-- END NAVBAR -->
    
    <?php } else { ?>
	
    <div id="navigation" class="navbar-light bg-faded site-navigation">
		<div class="container">
			<div class="row">
				<div class="col-lg-2 col-md-3 col-sm-4">
					<div class="site-logo">
						<a href="dashboard.php"><img src="assets/images/all-img/logo.jpg" alt=""></a>          			        				
					</div>
				</div><!--- END Col -->
				
				<div class="col-lg-6 col-md-9 col-sm-8 ">
					<div class="header_right ">
						<nav id="main-menu" class="ms-auto">
							<ul>
							    <li><a class="nav-link" href="index.php">Home</a></li>
                                <li><a class="nav-link" href="dashboard.php">Dashboard</a></li>
								<li><a class="nav-link" href="course.php">Available Courses</a> </li>
                                <li><a class="nav-link" href="view_courses.php">My Courses</a> </li>
								
							    <li><a class="nav-link" href="contact_us.php">Contact</a></li>
							</ul>
						</nav>
						<div id="mobile_menu"></div>
					</div>
				</div><!--- END Col -->
				<div class="col-lg-4 col-md-3 col-sm-8">
					<div class="home_lc">
						<a href="cart.php" class="hlc">
						  <i class="ti-shopping-cart-full"></i>
						  <span class="gactive"><?php echo $cntnotification; ?></span>
					   </a>
					</div>
					<div class="call_to_action">
						<a class="btn_one" href="change_password.php">Change Password</a>
						<a class="btn_two" href="logout.php">Logout</a>
					</div><!--- END SOCIAL PROFILE -->					
				</div><!--- END Col -->
			</div><!--- END ROW -->
		</div><!--- END CONTAINER -->
	</div> 	 
    
    <?php } ?>