35273-vm/dashboard.php
2025-10-27 10:08:26 +00:00

29 lines
907 B
PHP

<?php
include 'header.php';
// This is a protected page. If the user is not logged in, redirect to login.
if (!isset($_SESSION['user_email'])) {
header('Location: login.php');
exit;
}
?>
<div class="container mt-5">
<div class="row">
<div class="col-12">
<div class="alert alert-success">
<strong>Welcome, <?php echo htmlspecialchars($_SESSION[''''user_email''']); ?>!</strong> You are now logged in.
</div>
<div class="card">
<div class="card-header">
<h2>Dashboard</h2>
</div>
<div class="card-body">
<p>This is a placeholder for your dashboard content. From here, you will be able to manage your reporting tasks based on your role.</p>
</div>
</div>
</div>
</div>
</div>
<?php include 'footer.php'; ?>