<?php
ob_start();
session_start();
include_once("include/functions.php");
if(empty($_SESSION['login_id']))
redirect("index.php");

?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="LMS Student Dashboard - top primary navigation with contextual sidebar.">
  <title>| LMS</title>

  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
  <link href="css/bootstrap.min.css" rel="stylesheet">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css" rel="stylesheet">
  <link href="css/main.css" rel="stylesheet">
  <link href="css/style.css" rel="stylesheet">
     <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
       <script src="include/genfunctions.js"></script>
  <script src="include/validations.js"></script>

<!--
 <script src="https://cdn.tiny.cloud/1/78va8f5jdfr0esv9emk6t0095z1g1t5ka5wl9654yxs5aysz/tinymce/6/tinymce.min.js" referrerpolicy="origin"></script>
  <script>
    tinymce.init({
      selector: '.texteditor'
    });
  </script>-->
  
<script src="https://cdn.tiny.cloud/1/b5fytrm0vd6sf9ds0gpn5fyj4ctqcpqyj1hu4uxos5p0cfwm/tinymce/8/tinymce.min.js" referrerpolicy="origin" crossorigin="anonymous"></script>

  <script>
tinymce.init({
  selector: '.texteditor',
  height: 300,
  plugins: 'lists link image code',
  toolbar: 'undo redo | bold italic | alignleft aligncenter alignright | code'
});
</script>
  
  
  <style>
    .err{
	
	color:#DC3545;
	}
  
  </style>
</head>
<body>
  <!-- Primary Top Navigation -->
  <header class="top-nav">
    <div class="container-fluid top-nav__inner">
      <div class="top-nav__brand">
        <button class="top-nav__menu-toggle d-lg-none" id="sidebarToggle" aria-label="Toggle sidebar">
          <i class="bi bi-list"></i>
        </button>
        <a href="dashboard.php" class="logo">
        
            <img src="images/logo.jpg" style="width:200px; height:80px; padding:5px; border-radius:14px;" alt="logo" /> 
        </a>
      </div>

      <nav class="top-nav__menu" aria-label="Primary menu">
        <a href="dashboard.php" class="top-link is-active" data-section="dashboard">Dashboard</a>
        <a href="course_report.php" class="top-link" data-section="courses">My Courses</a>
        <a href="documentation.php" class="top-link" data-section="certificates">Certificates</a>
        <!--   <a href="module.php" class="top-link" data-section="Modules">Modules</a>
                <a href="cv.php" class="top-link" data-section="Modules">All Lessons</a>-->
        <a href="#" class="top-link" data-section="messages">Messages</a>
        <a href="#" class="top-link" data-section="orders">Orders</a>
      </nav>

      <div class="top-nav__right">
        <div class="dropdown">
          <button class="profile-btn dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
            <span class="profile-btn__avatar">AK</span>
            <span class="d-none d-md-inline">Profile</span>
          </button>
          <ul class="dropdown-menu dropdown-menu-end">
            <li><a class="dropdown-item" href="#"><i class="bi bi-person me-2"></i>My Profile</a></li>
            <li><a class="dropdown-item" href="#"><i class="bi bi-sliders me-2"></i>Preferences</a></li>
            <li><a class="dropdown-item" href="change_password.php"><i class="bi bi-lock me-2"></i>Change Password</a></li>
            <li><hr class="dropdown-divider"></li>
            <li><a class="dropdown-item text-danger" href="logout.php"><i class="bi bi-box-arrow-right me-2"></i>Logout</a></li>
          </ul>
        </div>
      </div>
    </div>
  </header>

  <div class="layout">
    <!-- Secondary Context Sidebar -->
 	<?php 
	
	//include("sidebar.php");
	
	?>

    <div class="layout-overlay" id="layoutOverlay"></div>
    