<?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.status=0");
$cntnotification=@mysqli_num_rows($sqlnotification);
}

$checkout=executework("select * from lms_cart_course where user_id='".$_SESSION['login_id']."' and status=0 and order_status='check_out'");
$cntcheckout=@mysqli_num_rows($checkout);
$rowcheckout=@mysqli_fetch_array($checkout);
?>

 <!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="assets/js/jquery-1.12.4.min.js"></script>
        <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 -->

 <div class="col-lg-12 col-md-12 col-sm-12">	
	<!-- START LOGO WITH CONTACT -->
	<section class="logo-contact">
		<div class="container">
			<div class="row">
				<div class="col-lg-7 col-md-6 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-5 col-md-6 col-sm-6 col-xs-12">
					<div class="top_social_profile">
						<ul>
                        	<li><a href="<?php if(empty($_SESSION['login_id'])){ ?> login.php <?php } ?>" class="top_f_facebook"><i class="ti-comment"></i> Chat</a></li> 
							<li><a href="<?php if(empty($_SESSION['login_id'])){ ?> login.php <?php } ?>" 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="login.php" 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>
    </div>
 
    
	<!-- 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-9 col-sm-8">
					<div class="header_right ">
						<nav id="main-menu" class="ms-auto">
							<ul>
							  <li><a class="nav-link" href="">Courses <span class="ti-angle-down"></span></a>                              	
                                      <!-- Column 1 -->
                                        <ul class="ul1">
                                        	<div class="row">
                                            	<div class="col-lg-4 col-md-4 col-sm-12 ">
                                                    <li><a class="nav-link mr-4" >  All Courses </a></li>
                                                     <strong> <hr class="w-75" style="background-color:black; height:4px"> </strong>
                                                    <li><a class="nav-link" href="">Graduate-Level Courses</a></li>
                                                    <li><a class="nav-link" href="">Fast Track Courses</a></li>
                                                    <li><a class="nav-link" href="">Course Bundles</a></li>
                                                    <li><a class="nav-link" href="">Certificates</a></li>
                                                    <li><a class="nav-link" href="">Advanced Degrees</a></li>
                                                     <li><a class="nav-link" href="">About Our Courses</a></li>
                                                </div>
                                                
                                                <div class="col-lg-4 col-md-4 col-sm-12 ">
                                                    <li><a class="nav-link" > Registration Info</a></li>
                                                     <strong> <hr class="w-75" style="background-color:black; height:4px"> </strong>
                                                    <li class="mb-2"><a class="nav-link" href="">Course Topics</a></li>
                                                    <li class="mb-2"><a class="nav-link" href="">Course Formats</a></li>
                                                    <li class="mb-2"><a class="nav-link" href="">Term Calendar</a></li>
                                                    <!--<li><a class="nav-link" href="">University Partners & Transcripts</a></li>
                                                     <li><a class="nav-link" href="">Course Pricing</a></li>
                                                    <li><a class="nav-link" href="">Pay-As-You-Learn</a></li>
                                                     <li><a class="nav-link" href="">Group Registrations</a></li>
                                                    <li><a class="nav-link" href="">Purchase Orders</a></li>-->
                                                </div>
                                              
                                                <div class="col-lg-4 col-md-4 col-sm-12 ">
                                                    <li><a class="nav-link">Discounts</a></li>
                                                     <strong> <hr class="w-75" style="background-color:black; height:4px"> </strong>
                                                    <li class="mb-2"><a class="nav-link" href="">Ways to Save</a></li>
                                                    <li class="mb-2"><a class="nav-link" href="">Group Savings</a></li>
                                                    <li class="mb-2"><a class="nav-link" href="">Bundle Savings</a></li>
                                                     <li class="mb-2"><a class="nav-link" href="">Refer & Earn</a></li>
                                                </div>
                                            </div>
                                        </ul>
							   </li>

								<li><a class="nav-link" href="#">State Requirements</a>
                                  <!-- Column 1 -->
                                        <ul class="ul1">
                                        	<div class="row">
                                            	<div class="col-lg-2 col-md-2 col-sm-12 ">
                                                    <li><a class="nav-link" >Alabama</a></li>
                                                    <li><a class="nav-link" href="">Alaska</a></li>
                                                    <li><a class="nav-link" href="">Arizona</a></li>
                                                    <li><a class="nav-link" href="">Arkansas</a></li>
                                                    <li><a class="nav-link" href="">California</a></li>
                                                    <li><a class="nav-link" href="">Colorado</a></li>
                                                    <li><a class="nav-link" href="">Connecticut</a></li>
                                                    <li><a class="nav-link" href="">Delaware</a></li>
                                                    <li><a class="nav-link" href="">District of Columbia</a></li>
                                                    <li><a class="nav-link" href="">Florida</a></li>
                                                </div>
                                              
                                                <div class="col-lg-2 col-md-4 col-sm-12 ">
                                                    <li><a class="nav-link" > Georgia</a></li>
                                                    <li><a class="nav-link" href="">Hawaii</a></li>
                                                    <li><a class="nav-link" href="">Idaho</a></li>
                                                    <li><a class="nav-link" href="">Illinois</a></li>
                                                    <li><a class="nav-link" href="">Indiana</a></li>
                                                     <li><a class="nav-link" href="">Iowa</a></li>
                                                    <li><a class="nav-link" href="">Kansas</a></li>
                                                     <li><a class="nav-link" href="">Kentucky</a></li>
                                                    <li><a class="nav-link" href="">Louisiana</a></li>
                                                    <li><a class="nav-link" href="">Maine</a></li>
                                                    <li><a class="nav-link" href="">Maryland</a></li>
                                                </div>
                                              
                                                <div class="col-lg-3 col-md-4 col-sm-12 ">
                                                    <li><a class="nav-link"> Massachusetts</a></li>
                                                    <li><a class="nav-link" href="">Michigan</a></li>
                                                    <li><a class="nav-link" href="">Minnesota</a></li>
                                                    <li><a class="nav-link" href="">Mississippi</a></li>
                                                     <li><a class="nav-link" href="">Missouri</a></li>
                                                     <li><a class="nav-link"> Montana</a></li>
                                                    <li><a class="nav-link" href="">Nebraska</a></li>
                                                    <li><a class="nav-link" href="">Nevada</a></li>
                                                    <li><a class="nav-link" href="">New Hampshire</a></li>
                                                     <li><a class="nav-link" href="">New Jersey</a></li> 
                                                      <li><a class="nav-link" href="">New Mexico</a></li>
                                                </div>
												 <div class="col-lg-3 col-md-4 col-sm-12 ">
                                                    <li><a class="nav-link"> New York</a></li>
                                                    <li><a class="nav-link" href="">New York City</a></li>
                                                    <li><a class="nav-link" href="">North Carolina</a></li>
                                                    <li><a class="nav-link" href="">North Dakota</a></li>
                                                     <li><a class="nav-link" href="">Ohio</a></li>
                                                     <li><a class="nav-link"> Oklahoma</a></li>
                                                    <li><a class="nav-link" href="">Oregon</a></li>
                                                    <li><a class="nav-link" href="">Pennsylvania</a></li>
                                                    <li><a class="nav-link" href="">Rhode Island</a></li>
                                                     <li><a class="nav-link" href="">South Carolina </a></li> 
                                                      <li><a class="nav-link" href="">South Dakota</a></li>
                                                </div>
                                                
                                                 <div class="col-lg-2 col-md-4 col-sm-12 ">
                                                    <li><a class="nav-link"> Tennessee </a></li>
                                                    <li><a class="nav-link" href="">Texas</a></li>
                                                    <li><a class="nav-link" href="">Utah</a></li>
                                                    <li><a class="nav-link" href="">Vermont</a></li>
                                                     <li><a class="nav-link" href="">Virginia</a></li>
                                                     <li><a class="nav-link"> Washington</a></li>
                                                    <li><a class="nav-link" href="">West Virginia</a></li>
                                                    <li><a class="nav-link" href="">Wisconsin</a></li>
                                                    <li><a class="nav-link" href="">Wyoming</a></li>
                                                </div>

                                                
                                            </div>
                                        </ul>
                                </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-3 col-sm-8">
					<div class="call_to_action">
						<a class="btn_one" href="login.php">Register / Login</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-2">
					<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="filter_courses.php">Available Courses</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-2">
					<div class="home_lc">
						<a href="<?php if($cntcheckout==0){ ?> cart.php <?php } else { ?> check_out.php <?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 } ?>
	
