<section class="section">
  <p class="eyebrow">Scanner</p>
  <h1>Istoric scanari</h1>
  <p>Ultimele 50 de scanari pentru evenimentul #<%= eventId %>.</p>
  <div class="table-wrapper">
    <table>
      <thead>
        <tr>
          <th>Ora</th>
          <th>Rezultat</th>
          <th>Mod</th>
          <th>Poarta</th>
          <th>Bilet</th>
          <th>Operator</th>
        </tr>
      </thead>
      <tbody>
        <% scans.forEach((scan) => { %>
          <tr>
            <td><%= scan.created_at %></td>
            <td><%= scan.result %></td>
            <td><%= scan.scan_mode %></td>
            <td><%= scan.gate_name || '-' %></td>
            <td><%= scan.ticket_code || scan.holder_name || '-' %></td>
            <td><%= scan.scanned_by_user_id || '-' %></td>
          </tr>
        <% }) %>
      </tbody>
    </table>
  </div>
</section>
