<?php
session_start();
if (!isset($_SESSION['user_id'])) header("Location: login.php");

?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard - Tbils Property</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-light" style="background-color: #000;">
  <div class="container-fluid">
    <a class="navbar-brand" href="#"><img src="assets/img/logo.png"/></a>
    <a href="index.php" class="btn btn-danger">Logout</a>
  </div>
</nav>

<div class="container mt-5">
    <h2>Welcome, <?php echo $_SESSION['username']; ?></h2>
    <div class="list-group mt-4">
        <a href="post_property.php" class="list-group-item list-group-item-action">Post Property</a>
        <a href="view_my_property.php" class="list-group-item list-group-item-action">View My Properties</a>
        <a href="view_all_properties.php" class="list-group-item list-group-item-action">View All Properties</a>
        <a href="edit_profile.php" class="list-group-item list-group-item-action">Edit Profile</a>
    </div>
</div>
</body>
</html>
