<section class="section">
  <div class="section-header">
    <p class="eyebrow">Admin</p>
    <h1>Vendori - <%= event.title %></h1>
  </div>
  <form class="panel-grid" method="post" action="/admin/events/<%= event.id %>/vendors">
    <%- include('../partials/csrf-field') %>
    <input name="name" placeholder="Nume vendor" required>
    <input name="fiscal_name" placeholder="Denumire fiscala">
    <input name="cui" placeholder="CUI">
    <input name="commission_rate" type="number" step="0.01" placeholder="Comision">
    <button>Adauga vendor</button>
  </form>
</section>
<section class="section">
  <div class="table-wrap"><table><thead><tr><th>Vendor</th><th>Status</th><th>Terminal nou</th></tr></thead><tbody>
    <% vendors.forEach((vendor) => { %>
      <tr>
        <td><%= vendor.name %></td>
        <td><%= vendor.status %></td>
        <td><form method="post" action="/admin/events/<%= event.id %>/vendors/<%= vendor.id %>/terminals"><%- include('../partials/csrf-field') %><input name="name" placeholder="Terminal"><input name="device_code" placeholder="Cod device"><button>Adauga</button></form></td>
      </tr>
    <% }) %>
  </tbody></table></div>
</section>
<section class="section">
  <div class="section-header"><h2>Terminale</h2></div>
  <div class="table-wrap"><table><thead><tr><th>Vendor</th><th>Nume</th><th>Cod</th><th>Status</th></tr></thead><tbody>
    <% terminals.forEach((terminal) => { %><tr><td><%= terminal.vendor_name %></td><td><%= terminal.name %></td><td><%= terminal.device_code %></td><td><%= terminal.status %></td></tr><% }) %>
  </tbody></table></div>
</section>
