<?php
session_start(); // Mulai sesi jika belum ada

if (!isset($_SESSION['admin_id'])) {
    // Jika admin belum login, redirect ke halaman login
    header("Location: index");
    exit();
}

// Jika admin sudah login, tampilkan halaman admin di sini
?>

<div class="iconsidebar-menu iconbar-mainmenu-close">
    <div class="">
        <ul class="iconMenu-bar">
            <li><a href="home" class="bar-icons"><i class="pe-7s-home"></i><span>Home</span></a></li>
            <li><a href="finance" class="bar-icons"><i class="pe-7s-graph3"></i><span>Finance</span></a></li>
            <li><a href="transaksi" class="bar-icons"><i class="pe-7s-diamond"></i><span>Transaksi</span></a></li>
            <li><a href="member" class="bar-icons"><i class="pe-7s-id"></i><span>Member</span></a></li>
            <li><a href="pascabayar" class="bar-icons"><i class="pe-7s-server"></i><span>Pasca</span></a></li>
            <li><a href="prabayar" class="bar-icons"><i class="pe-7s-server"></i><span>Prabayar</span></a></li>
            <li><a href="logout" class="bar-icons"><i class="pe-7s-power"></i><span>Logout</span></a></li>
        </ul>
    </div>
</div>