<?php
session_start();
if (!isset($_SESSION['admin'])) {
    header("Location: login.php");
    exit;
}
?>

<!DOCTYPE html>
<html>
<head>
    <title>Admin Dashboard</title>
    <link rel="stylesheet" href="assets/style.css">
</head>
<body>
<div class="dashboard">
    <h1>Welcome, <?php echo $_SESSION['admin']; ?> 🎉</h1>
    <a href="logout.php">Logout</a>
    <hr>
    <p>This is your admin panel. Add your pages, CRUD operations, or reports here.</p>
</div>
</body>
</html>
