<h2>Sessioni attive</h2>
<% if @active_sessions.any? %>
  <table>
    <thead><tr><th>Match</th><th>Status</th><th>Iniziata</th><th></th></tr></thead>
    <tbody>
      <% @active_sessions.each do |s| %>
        <tr>
          <td><%= s.match.team.name %> vs <%= s.match.opponent_name %></td>
          <td><span class="badge live"><%= s.status %></span></td>
          <td><%= s.started_at %></td>
          <td><%= link_to "Dettaglio", admin_session_path(s) %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% else %>
  <p>Nessuna sessione attiva.</p>
<% end %>

<h2>Squadre</h2>
<ul>
  <% @teams.each do |t| %>
    <li><%= link_to t.name, admin_team_path(t) %> — <%= t.matches.count %> partite</li>
  <% end %>
</ul>
