<?php
declare(strict_types=1);
require __DIR__ . '/_common.php';
ec_require_coordinator();
$PAGE_TITLE = 'Verification';
$ACTIVE = 'verification';
?>
<!doctype html><html lang="en"><head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<title>Verification</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css" rel="stylesheet">
</head><body>
<div class="ec-shell">
  <?php include __DIR__ . '/partials/sidebar.php'; ?>
  <div class="ec-content">
    <?php include __DIR__ . '/partials/topbar.php'; ?>
    <div class="wrap container-fluid">
      <div class="row g-3">
        <div class="col-12 col-xl-6">
          <div class="card section-card">
            <div class="card-header bg-white"><strong>Single Verification</strong></div>
            <div class="card-body">
              <form class="row g-2" method="get" action="/elms/verification/verify_single.php">
                <div class="col-8">
                  <label class="form-label">Certificate / Student Ref</label>
                  <input name="ref" class="form-control" placeholder="EC/NEC/Certificate No" required>
                </div>
                <div class="col-4 d-grid align-items-end">
                  <button class="btn btn-primary">Verify</button>
                </div>
              </form>
              <div class="text-muted small mt-2">This uses your existing verification endpoint.</div>
            </div>
          </div>
        </div>
        <div class="col-12 col-xl-6">
          <div class="card section-card">
            <div class="card-header bg-white"><strong>Bulk Verification</strong></div>
            <div class="card-body">
              <form method="post" enctype="multipart/form-data" action="/elms/verification/verify_bulk.php">
                <div class="mb-2"><input type="file" name="file" class="form-control" accept=".csv,.xlsx" required></div>
                <button class="btn btn-outline-primary">Upload & Verify</button>
              </form>
              <div class="text-muted small mt-2">Upload CSV/XLSX with a single column of reference numbers.</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
</body></html>
