<?php
// Get admin info from session
$adminEmail = $_SESSION['admin_email'] ?? ($_SESSION['email'] ?? 'Admin');
?>

<header class="admin-navbar">

    <!-- Left: Page Title -->
    <div class="navbar-left">
        <h3>Admin Dashboard</h3>
    </div>

    <!-- Right: Actions -->
    <div class="navbar-right">

        <!-- Notifications (placeholder) -->
        <div class="nav-item">
            <span class="icon">🔔</span>
        </div>

        <!-- Admin Profile -->
        <div class="nav-item admin-profile">
            <span class="admin-name"><?= htmlspecialchars($adminEmail); ?></span>
        </div>

        <!-- Logout -->
        <div class="nav-item">
            <a href="/admin/logout.php" class="logout-btn">Logout</a>
        </div>

    </div>

</header>