<?php
$BASE_URL = 'http://localhost/lagosdashboard/'; // Adjust this to your base URL
define('SERVER_ROOT', $BASE_URL);
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Lagos In Juba - Admin Dashboard</title>
    <link rel="stylesheet" href="style.css">
    <!-- Font Awesome for icons -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <!-- Favicon -->
    <link rel="icon" href="assets/favicon.png" type="image/png">
</head>

<body class="dashboard-page">
    <?php if (basename($_SERVER['PHP_SELF']) != 'index.php' && basename($_SERVER['PHP_SELF']) != 'login.php'): ?>
        <div class="notification-container">
            <?php if (isset($_SESSION['success_message'])): ?>
                <div class="notification success">
                    <span><?= $_SESSION['success_message'] ?></span>
                    <button class="close-notification">&times;</button>
                </div>
                <?php unset($_SESSION['success_message']); ?>
            <?php endif; ?>

            <?php if (isset($_SESSION['error_message'])): ?>
                <div class="notification error">
                    <span><?= $_SESSION['error_message'] ?></span>
                    <button class="close-notification">&times;</button>
                </div>
                <?php unset($_SESSION['error_message']); ?>
            <?php endif; ?>
        </div>
    <?php endif; ?>