<?php
include __DIR__ . "/partials/auth.php";
$page_title = "Request detail | ECUPRATIX";
$breadcrumb = "Request detail";
$active = "requests";
$user_name = $_SESSION["user_name"] ?? "User";
$id = htmlspecialchars($_GET["id"] ?? "0");
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">Request #<?= $id ?></div>
        <div class="card-sub">Demo detail screen (UI ready)</div>
      </div>
      <a class="btn ghost" href="requests.php">Back</a>
    </div>

    <div class="card-body">
      <div class="kv">
        <div class="kv-item"><span class="k">Vehicle</span><span class="v">Nissan</span></div>
        <div class="kv-item"><span class="k">ECU</span><span class="v">CONTINENTAL-SID321</span></div>
        <div class="kv-item"><span class="k">Options</span><span class="v"><span class="badge">DPF</span> <span class="badge">EGR</span></span></div>
        <div class="kv-item"><span class="k">Status</span><span class="v"><span class="status ok">Processed</span></span></div>
      </div>

      <div class="divider"></div>

      <div class="two">
        <div>
          <div class="section-title">Original file</div>
          <div class="filecard">
            <div class="fileline"><span class="muted">Name</span><b>ori.bin</b></div>
            <div class="fileline"><span class="muted">Size</span><b>2.0 MB</b></div>
          </div>
        </div>
        <div>
          <div class="section-title">Modified file</div>
          <div class="filecard">
            <div class="fileline"><span class="muted">Name</span><b>mod.bin</b></div>
            <div class="fileline"><span class="muted">Ready</span><b>Yes</b></div>
            <a class="btn primary mt8" href="#" onclick="alert('Demo');return false;">Download</a>
          </div>
        </div>
      </div>
    </div>
  </section>
</main>
<?php include __DIR__ . "/partials/footer.php"; ?>