{% extends "base.html" %}

{% block title %}Statystyki{% endblock %}

{% block content %}
<section class="section__matches">
    <h2>🏆 Trofea</h2>
    <table>
        <tr>
            <th>Nazwa</th>
            <th>Data/Sezon</th>
        </tr>
        {% for trophy in trophy %}
		
        <tr>
            <td>{{ trophy.name }}</td>
			{% if trophy.year == NULL %}
            <td>{{ trophy.sezon }}</td>
			{% endif %}
			{% if trophy.sezon == NULL %}
            <td>{{ trophy.year }}</td>
			{% endif %}
        </tr>
        {% endfor %}
    </table>
</section>

{% endblock %}
