{% extends 'base.html.twig' %} {% block title %}Accueil — aperçu v2{% endblock %} {% block stylesheets %} {{ parent() }} {% if dashboard_editorial %} {% endif %} {% endblock %} {% block body %} {% include 'home/_ui_preview_banner.html.twig' with { back_route: 'app_homepage' } only %} {% include 'home/_dashboard_banner.html.twig' %}
{% if dashboard_editorial %}
{% include 'home/_dashboard_editorial.html.twig' with { dashboard_editorial: dashboard_editorial, dashboard_editorials_archive: dashboard_editorials_archive|default([]), } only %}
{% endif %} {% if not competition_started and (not precomp_checklist.all_done or not cotisation_payee) %} {% include 'home/_precompetition_checklist.html.twig' with { precomp_checklist: precomp_checklist, cotisation_payee: cotisation_payee, } only %} {% endif %}
{% if live_matches is empty and last_completed_matchday is null and upcoming_matches is empty %}

Aucun match à afficher pour le moment.

{% else %} {% if live_matches is not empty %}

En direct

{% for match in live_matches %} {% include 'home/_dashboard_v2_match_card.html.twig' with { match: match, pronostic: pronostics_by_match_id[match.id] ?? null, partner_pronostics: partner_pronostics_by_match_id[match.id] ?? [], is_live: true, is_finished: false, team_match_points: team_match_points_by_match_id[match.id] ?? null, } only %} {% endfor %}
{% endif %} {% if last_completed_matchday %}

Dernière journée — {{ last_completed_matchday.date|fr_date_long }}

{% for match in last_completed_matchday.matches %} {% if not match_is_live(match, now) %} {% include 'home/_dashboard_v2_match_card.html.twig' with { match: match, pronostic: pronostics_by_match_id[match.id] ?? null, partner_pronostics: partner_pronostics_by_match_id[match.id] ?? [], is_live: false, is_finished: true, team_match_points: team_match_points_by_match_id[match.id] ?? null, } only %} {% endif %} {% endfor %}
{% endif %} {% if upcoming_matches is not empty %}

Matchs à venir

{% for match in upcoming_matches %} {% include 'home/_dashboard_v2_match_card.html.twig' with { match: match, pronostic: pronostics_by_match_id[match.id] ?? null, partner_pronostics: partner_pronostics_by_match_id[match.id] ?? [], is_live: false, is_finished: false, team_match_points: null, } only %} {% endfor %}
{% endif %} {% endif %}
{% include 'home/_dashboard_v2_team_hub.html.twig' %}
{% endblock %} {% block javascripts %} {{ parent() }} {% if dashboard_editorial %} {% endif %} {% if dashboard_editorials_archive|default([])|length > 0 %} {% endif %} {% if has_live_matches|default(false) %} {% endif %} {% endblock %}