<!-- Main Sidebar Container -->
<aside class="main-sidebar sidebar-dark-primary elevation-4">

<a href="dashboard.php" class="brand-link">
  <img src="../../<?= $student_photo ?>" 
       alt="Student Photo" 
       class="brand-image img-circle elevation-3" 
       style="opacity: .8"
       onerror="this.onerror=null; this.src='../../uploads/students/none.jpg';">
  <span class="brand-text font-weight-light"><?= htmlspecialchars($student_name) ?></span>
</a>


  <div class="sidebar">
    <nav class="mt-2">
      <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu">
        
        <li class="nav-item">
          <a href="dashboard.php" class="nav-link active">
            <i class="nav-icon fas fa-home"></i>
            <p>Dashboard</p>
          </a>
        </li>

        <li class="nav-item">
          <a href="available_exams.php" class="nav-link">
            <i class="nav-icon fas fa-book-open"></i>
            <p>Available Exams</p>
          </a>
        </li>

        <li class="nav-item">
          <a href="result.php" class="nav-link">
            <i class="nav-icon fas fa-chart-line"></i>
            <p>My Results</p>
          </a>
        </li>
      </ul>
    </nav>
  </div>
</aside>

