<?php include "auth.php"; ?>
<!DOCTYPE html>
<html>
<head><title>ATG | Create Payment</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" />
<!-- Bootstrap JS (optional for dropdowns, modals etc.) -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>

</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>
        <br>
        <br>
        <br>
        <h2>Create Payment Link</h2>
          <form method="POST" action="process_create.php" enctype="multipart/form-data" class="container p-4">
            <div class="mb-3">
              <label>Title</label>
              <input type="text" name="title" class="form-control" required>
            </div>
             <div class="mb-3">
              <label>Currency</label>
                <select name="currency" class="form-control" required>
                <option value="cad">CAD</option>
                <option value="usd">USD</option>
              </select>
      
            </div>
            <div class="mb-3">
              <label>Price</label>
              <input type="number" name="price" class="form-control" >
            </div>
            <div class="mb-3">
              <label>Image</label>
              <input type="file" name="image" class="form-control">
            </div>
            <div class="mb-3">
              <label>Merchant</label>
              <select name="merchant" class="form-control">
                <option value="IBT">IBT</option>
                <option value="LMT">LMT</option>
              </select>
            </div>
            <button type="submit" class="btn btn-success">Create Link</button>
          </form>
      </main>
    </div>
  </div>



</body>
</html>
