{% extends 'base.html' %}

{% block title %}Lista meczów{% endblock %}

{% block content %}
<select>
    <option disabled selected>Wybierz rok</option>
    <option value="{{ url_for('compare', player='Leo Messi') }}">2024/2025</option>
    <option value="{{ url_for('compare', player='Ronaldo') }}">2023/2024</option>
    <option value="{{ url_for('compare', player='Neymar') }}">2022/2023</option>
    <option value="{{ url_for('compare', player='Neymar') }}">2021/2022</option>
    <option value="{{ url_for('compare', player='Neymar') }}">2020/2021</option>
    <option value="{{ url_for('compare', player='Neymar') }}">2019/2020</option>
    <option value="{{ url_for('compare', player='Neymar') }}">2018/2019</option>
    <option value="{{ url_for('compare', player='Neymar') }}">2017/2018</option>
    <option value="{{ url_for('compare', player='Neymar') }}">2016/2017</option>
</select>
<section class="section__matches">
    <h2>📅 Mecze Roberta</h2>
    <table>
        <tr>
            <th>Data</th>
            <th>Przeciwnik</th>
            <th>Gole</th>
            <th>Asysty</th>
            <th>Minuty</th>
        </tr>
        {% for match in matches %}
        <tr>
            <td>{{ match.date }}</td>
            <td>{{ match.opponent }}</td>
            <td>{{ match.goals }}</td>
            <td>{{ match.assists }}</td>
            <td>{{ match.minutes }}</td>
        </tr>
        {% endfor %}
    </table>
</section>
{% endblock %}
