<?php
session_start();
if (!isset($_SESSION['staff_id'])) {
    header("Location: login.php");
    exit();
}
?>
<!DOCTYPE html>
<html>
<head><title>UHD-Lite Dashboard</title><link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"></head>
<body>
<div class="container mt-4">
    <h2>Welcome, <?= $_SESSION['staff_name'] ?></h2>
    <div class="row">
        <div class="col-md-3"><a href="/doctor/" class="btn btn-primary w-100">Doctor Portal</a></div>
        <div class="col-md-3"><a href="/nurse/" class="btn btn-success w-100">Nurse Portal</a></div>
        <div class="col-md-3"><a href="/staff/" class="btn btn-info w-100">Staff Portal</a></div>
        <div class="col-md-3"><a href="/patient/" class="btn btn-warning w-100">Patient Portal</a></div>
    </div>
</div>
</body>
</html>