<?php
$page_title = "Requests | ECUPRATIX";
$breadcrumb = "Requests";
$active = "requests";
$user_name = $_SESSION["user_name"] ?? "User";
include __DIR__ . "/partials/head.php";?>
<main class="main">
  <?php include __DIR__ . "/partials/topbar.php"; ?>

  <section class="card">
    <div class="card-head">
      <div>
        <div class="card-title">Requests</div>
        <div class="card-sub">All requests list</div>
      </div>
      <a class="btn ghost" href="chiptuning.php">New request</a>
    </div>

    <div class="card-body">
      <table id="requestsTable" class="table compact">
        <thead>
          <tr>
            <th>#</th>
            <th>ECU</th>
            <th>Tags</th>
            <th>Status</th>
            <th>Created at</th>
            <th></th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>3</td>
            <td>CONTINENTAL-SID305</td>
            <td><span class="badge">DPF</span> <span class="badge">EGR</span></td>
            <td><span class="status ok">Processed</span></td>
            <td>21-07-2025 12:33</td>
            <td><a class="chip" href="request_detail.php?id=3">Open</a></td>
          </tr>
          <tr>
            <td>4</td>
            <td>BOSCH EDC17C60</td>
            <td><span class="badge">ADBLUE / SCR</span></td>
            <td><span class="status ok">Processed</span></td>
            <td>29-07-2025 18:21</td>
            <td><a class="chip" href="request_detail.php?id=4">Open</a></td>
          </tr>
          <tr>
            <td>80</td>
            <td>BOSCH MD1CS016</td>
            <td><span class="badge">Stage 1</span></td>
            <td><span class="status ok">Processed</span></td>
            <td>29-08-2025 01:49</td>
            <td><a class="chip" href="request_detail.php?id=80">Open</a></td>
          </tr>
        </tbody>
      </table>
    </div>
  </section>
</main>
<?php include __DIR__ . "/partials/footer.php"; ?>