

<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Home - Aplikasi Administrasi Akademik</title>
    <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" rel="stylesheet">
    <style>
        body {
            background-color: #f4f4f4;
        }
        .navbar-custom {
            background-color: #28a745; /* Hijau */
        }
        .header {
            text-align: center;
            padding: 20px 0;
            color: #fff;
            background-color: #28a745; /* Hijau */
        }
        .icon-container {
            background-color: #ffffff;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            margin: 20px;
        }
        .icon-row {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap; /* Agar responsif */
        }
        .icon-box {
            text-align: center;
            margin: 10px;
            width: 80px; /* Ukuran tetap untuk ikon */
        }
        .icon-box i {
            font-size: 24px; /* Ukuran ikon */
            color: #28a745; /* Hijau untuk ikon */
        }
        .icon-box h5 {
            font-size: 11px; /* Ukuran teks judul ikon lebih kecil */
            margin-top: 5px;
        }
        footer {
            text-align: center;
            padding: 10px 0;
            background-color: #28a745; /* Hijau */
            color: white;
        }
    </style>
</head>
<body>

    <nav class="navbar navbar-expand-lg navbar-custom">
        <a class="navbar-brand" href="#" style="color: white;">Administrasi Jabal Ghafur</a>
    </nav>

    <div class="header">
        <h1>Selamat Datang</h1>
        <p>Aplikasi Pelayanan Administrasi Akademik Universitas Jabal Ghafur</p>
    </div>

    <!-- Menu Utama Administrasi -->
    <div class="container icon-container">
        <h4>Menu Utama</h4>
        <div class="icon-row">
            <?php if ($role === 'mahasiswa'): ?>
                <div class="icon-box">
                    <a href="jadwal.php">
                        <i class="fas fa-calendar-alt"></i>
                        <h5>Jadwal Kuliah</h5>
                    </a>
                </div>
                <div class="icon-box">
                    <a href="nilai_mahasiswa.php">
                        <i class="fas fa-book"></i>
                        <h5>Daftar Nilai</h5>
                    </a>
                </div>
                <div class="icon-box">
                    <a href="bimbingan.php">
                        <i class="fas fa-chalkboard-teacher"></i>
                        <h5>Bimbingan Akademik</h5>
                    </a>
                </div>
            <?php elseif ($role === 'dosen'): ?>
                <div class="icon-box">
                    <a href="data_mahasiswa.php">
                        <i class="fas fa-user-graduate"></i>
                        <h5>Data Mahasiswa</h5>
                    </a>
                </div>
                <div class="icon-box">
                    <a href="riwayat_mahasiswa.php">
                        <i class="fas fa-history"></i>
                        <h5>Riwayat Mahasiswa</h5>
                    </a>
                </div>
                <div class="icon-box">
                    <a href="riwayat_nilai.php">
                        <i class="fas fa-book-open"></i>
                        <h5>Riwayat Nilai</h5>
                    </a>
                </div>
                <div class="icon-box">
                    <a href="riwayat_bimbingan.php">
                        <i class="fas fa-chalkboard"></i>
                        <h5>Riwayat Bimbingan</h5>
                    </a>
                </div>
            <?php else: ?>
                <p>Silakan login untuk melihat menu.</p>
            <?php endif; ?>
        </div>
    </div>

    <!-- Menu Pengaturan -->
    <div class="container icon-container">
        <h4>Pengaturan</h4>
        <div class="icon-row">
            <div class="icon-box">
                <a href="profil_pengguna.php">
                    <i class="fas fa-user-cog"></i>
                    <h5>Profil Pengguna</h5>
                </a>
            </div>
            <div class="icon-box">
                <a href="pengaturan_akun.php">
                    <i class="fas fa-cog"></i>
                    <h5>Pengaturan Akun</h5>
                </a>
            </div>
            <div class="icon-box">
                <a href="ubah_kata_sandi.php">
                    <i class="fas fa-unlock-alt"></i>
                    <h5>Ubah Kata Sandi</h5>
                </a>
            </div>
            <div class="icon-box">
                <a href="keluar.php">
                    <i class="fas fa-sign-out-alt"></i>
                    <h5>Keluar</h5>
                </a>
            </div>
        </div>
    </div>

    <footer>
        <p>&copy; 2024 Universitas Jabal Ghafur. All rights reserved.</p>
    </footer>

    <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>
