<?php
require_once '../includes/auth.php';

if (!isPenguji()) {
    redirect('../login.php');
}

if (isPenguji()): ?>
    <nav class="main-nav">
        <a href="dashboard_penguji.php" class="nav-item <?php echo basename($_SERVER['PHP_SELF']) == 'dashboard_penguji.php' ? 'active' : ''; ?>">
            <i class="fas fa-home"></i> Dashboard
        </a>
        <!-- Tambahkan menu lainnya jika diperlukan -->
    </nav>
<?php endif; ?>

<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Penguji - SOCA/OSCE System</title>
    <link rel="stylesheet" href="../assets/css/style.css">
</head>
<body>
    <div class="container">
        <div class="sidebar">
            <div class="sidebar-header">
                <h2>SOCA/OSCE System</h2>
                <p>Penguji Panel</p>
            </div>
            <ul class="sidebar-menu">
                <li><a href="dashboard.php" class="<?php echo basename($_SERVER['PHP_SELF']) == 'dashboard.php' ? 'active' : ''; ?>">Dashboard</a></li>
                <li><a href="penilaian.php" class="<?php echo basename($_SERVER['PHP_SELF']) == 'penilaian.php' ? 'active' : ''; ?>">Penilaian</a></li>
                <li><a href="../logout.php">Logout</a></li>
            </ul>
        </div>

        <div class="main-content">
            <div class="header">
                <h1>Penguji Dashboard</h1>
                <div class="user-info">
                    <span>Halo, <?php echo $_SESSION['nama_lengkap']; ?></span>
                    <a href="../logout.php" class="btn btn-danger btn-sm">Logout</a>
                </div>
            </div>