{% extends 'layout/content.html.twig' %} {% block tour_id 'program-detail' %} {% block title %}{% endblock %} {% block stylesheets %} {{ encore_entry_link_tags('program-browse') }} {{ encore_entry_link_tags('budget-tracking') }} {% endblock %} {% block javascripts %} {{ encore_entry_script_tags('program-browse') }} {{ encore_entry_script_tags('budget-tracking') }} {% endblock %} {% set hasSidebar = false %} {% block sidebar %}{% endblock %} {% set projectsCount = program.projects is defined ? program.projects|length : (program.projectIds is defined ? program.projectIds|length : 0) %} {% set budgetLinesCount = program.budgetLines is defined ? program.budgetLines|length : (program.budgetLineIds is defined ? program.budgetLineIds|length : 0) %} {% set allocated = program.totalBudget|default(0) %} {% set committed = program.getTotalCommittedBudget|default(0) %} {% set disbursed = program.totalDisbursedBudget|default(0) %} {% set progress = program.globalProgression|default(0) %} {% set alertCount = financing.alerts is defined ? financing.alerts|filter(a => a.level == 'danger')|length : 0 %} {% block breadcrumb %} {% endblock %} {% block content %} {# === HERO PROGRAMME === #}
{{ program.acronym }} Actif {% if program.currency %} {{ program.currency }} {% endif %}

{{ program.name }}

{% if program.description %}

{{ program.description }}

{% endif %}
Progression
Projets
{{ projectsCount }}
Lignes budgétaires
{{ budgetLinesCount }}
Alloué
{{ allocated|minify_budget }}
Engagé
{{ committed|minify_budget }}
Décaissé
{{ disbursed|minify_budget }}
{# === ONGLETS === #} {# Sélecteur mobile pour basculer entre tabs sur petit écran #}
{% include 'program/_section_kpi.html.twig' with { allocated: allocated, committed: committed, disbursed: disbursed, progress: progress } %}
{% include 'program/_section_projects.html.twig' %}
{% include 'program/_section_budget_lines.html.twig' %}
{% include 'program/_section_financing.html.twig' with { financing: financing } %}
{% endblock %}