{% extends 'base.html' %} {% block title %}Matches – {{ app_brand }}{% endblock %} {% block content %}
Clear
{% if matches %}
{% for match in matches %} {% set pred = pred_map.get(match.id) %} {% endfor %}
# Teams Date & Time Venue Status Result Your Prediction P/L
{{ match.match_number or '—' }}
{{ match.team1_abbr }} vs {{ match.team2_abbr }}
{{ match.team1 }} vs {{ match.team2 }}
{{ match.match_date|format_date }}
{{ match.match_time }}
{{ match.venue or '—' }}{% if match.city and match.venue %}
{% endif %} {% if match.city %}{{ match.city }}{% endif %}
{{ match.status }} {% if match.winner and match.winner != 'ABANDONED' %}
🏆 {{ match.winner }}
{% if match.man_of_match %}
⭐ {{ match.man_of_match }}
{% endif %} {% elif match.status == 'abandoned' %} Abandoned {% else %}—{% endif %}
{% if pred %}
{{ team_abbr.get(pred.predicted_winner, pred.predicted_winner) }}
{% if pred.predicted_motm %}
⭐ {{ pred.predicted_motm }}
{% endif %}
Bid: {{ '%.0f'|format(pred.bid_amount) }}
{% elif match.can_predict %} Predict {% elif match.status == 'upcoming' %} {% if not match.is_match_today %}📆 {{ match.match_date|format_date }}{% elif match.locked %}🔒 Locked{% else %}View{% endif %} {% else %} {% endif %}
{% if pred and pred.is_settled %}
{{ pred.points_earned|delta_sign }}
W:{% if pred.winner_correct %}✅{% else %}❌{% endif %} {% if pred.motm_correct is not none %}M:{% if pred.motm_correct %}✅{% else %}❌{% endif %}{% endif %}
{% elif pred and not pred.is_settled %} Pending {% else %}—{% endif %}
{% else %}
📅
No matches found for the selected filters.
{% endif %}
{% endblock %}