<?php
session_start();
include "db.php";
?>
<!DOCTYPE html>
<html>
<head>
  <title>ATG | Dashboard</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="shortcut icon" href="uploads/favicon.png" />
</head>
<body>
  <div class="container-fluid">
    <div class="row">
      <!-- Sidebar -->
      <nav class="col-md-3 col-lg-2 d-md-block bg-light sidebar collapse pt-3">
        <div class="position-sticky">
           <!-- Company Logo -->
          <img src="uploads/logo.png" alt="Allied Tech Global" class="mx-auto d-block mb-3" style="max-height: 40px;">
          <br>
          <br>
          <ul class="nav flex-column">
            <li class="nav-item"><a class="nav-link" href="dashboard.php">Dashboard</a></li>
            <li class="nav-item"><a class="nav-link" href="create.php">Create Payment Link</a></li>
            <li class="nav-item"><a class="nav-link" href="list.php">Payment Links List</a></li>
            <li class="nav-item"><a class="nav-link" href="transactions.php">Transactions</a></li>
            <li class="nav-item"><a class="nav-link text-danger" href="logout.php">Logout</a></li>
          </ul>
        </div>
      </nav>

      <!-- Main content -->
      <main class="col-md-9 ms-sm-auto col-lg-10 px-md-4 py-4">
        <h2>Welcome, <?= $_SESSION['user'] ?>!</h2>
        <p>Use the side menu to navigate.</p>
      </main>
    </div>
  </div>
</body>
</html>
