<section class="section">
  <p class="eyebrow">Admin</p>
  <h1>Marketing</h1>
  <p>Evenimente promovate si vizibilitate marketplace.</p>
  <div class="table-wrap">
    <table>
      <thead><tr><th>Eveniment</th><th>Oras</th><th>Status</th><th>Promovat</th><th>Actiuni</th></tr></thead>
      <tbody>
        <% promotedEvents.forEach((event) => { %>
          <tr>
            <td><strong><%= event.title %></strong></td>
            <td><%= event.city_name || '-' %></td>
            <td><%- include('../partials/status-badge', { status: event.status }) %></td>
            <td><%= event.is_promoted ? 'Da' : 'Nu' %></td>
            <td>
              <form method="post" action="/admin/marketing/events/<%= event.id %>/promoted" class="inline-admin-form">
                <%- include('../partials/csrf-field') %>
                <select name="is_promoted">
                  <option value="1" <%= event.is_promoted ? 'selected' : '' %>>Promovat</option>
                  <option value="0" <%= !event.is_promoted ? 'selected' : '' %>>Normal</option>
                </select>
                <button>Salveaza</button>
              </form>
            </td>
          </tr>
        <% }) %>
      </tbody>
    </table>
  </div>
</section>
