<h2>Pagamenti e fatture</h2>
<p style="color:#666;margin-bottom:16px">
  Elenco società: pagamenti da Stripe e fatture PDF da emettere o inviare al cliente.
</p>

<table class="admin-table">
  <thead>
    <tr>
      <th>Società</th>
      <th>Pagamenti</th>
      <th>Fatture</th>
      <th></th>
    </tr>
  </thead>
  <tbody>
    <% @clubs.each do |club| %>
      <tr>
        <td><strong><%= club.name %></strong></td>
        <td><%= club.billing_payments.size %></td>
        <td><%= club.billing_invoices.size %></td>
        <td><%= link_to "Apri", admin_club_billing_invoices_path(club), class: "admin-btn admin-btn--sm" %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<% if @clubs.empty? %>
  <p>Nessuna società registrata.</p>
<% end %>

<p style="margin-top:20px"><%= link_to "← Dashboard", admin_root_path %></p>
