<?php
session_start();
if (!isset($_SESSION['logged_in'])) {
    header("Location: login");
    exit;
}
?>
<!DOCTYPE html>
<html>
<head>
    <title>Dashboard</title>
    <style>
        body { font-family: Arial; padding: 20px; }
        .logout { float: right; }
    </style>
</head>
<body>
    <h2>Welcome, <?= $_SESSION['user_email']; ?></h2>
    <a class="logout" href="logout">Logout</a>
    <hr>
<p>🔗 <a href="complaint_form">Submit Complaint</a></p> 
<p>📋 <a href="complaints_history">View Complaint History</a>
<p>🔍 <a href="search">Search Transaction</a></p>

</body>
</html>
