<section class="section">
  <div class="section-header">
    <p class="eyebrow">Organizator</p>
    <h1>Check-in online - <%= event.title %></h1>
  </div>
  <div class="table-wrap">
    <table><thead><tr><th>Bilet</th><th>Nume</th><th>Email</th><th>Status</th><th>Actiuni</th></tr></thead><tbody>
      <% checkins.forEach((checkin) => { %>
        <tr>
          <td><%= checkin.ticket_code %></td><td><%= checkin.full_name %></td><td><%= checkin.email %></td><td><%= checkin.status %></td>
          <td class="actions">
            <form method="post" action="/organizer/checkins/<%= checkin.id %>/approve"><%- include('../partials/csrf-field') %><button>Aproba</button></form>
            <form method="post" action="/organizer/checkins/<%= checkin.id %>/reject"><%- include('../partials/csrf-field') %><input name="reason" placeholder="Motiv"><button>Respinge</button></form>
          </td>
        </tr>
      <% }) %>
    </tbody></table>
  </div>
</section>
