{% if dateRange is defined %}
{% for index, date in dates %} {% if index != 0 %}
{% endif %}

{{ date | date_fr() }}

{% for ephemeris in ephemerides %} {% if ephemeris is not null and ephemeris.date|date('md') == date|date('md') %} {{ ephemeris.prenoms | first }} {% endif %} {% endfor %}

Au menu du jour...


{% for indexMealtime, mealtime in menus|keys %} {% set imageName = "" %} {% set paddingTop = "" %} {% if mealtime == "Matin" %}{% set imageName = "croissant_thin" %}{% endif %} {% if mealtime == "Midi" %}{% set imageName = "sun_bright_thin" %}{% endif %} {% if mealtime == "Soir" %}{% set imageName = "moon_thin" %}{% endif %} {% if mealtime == "Goƻter" %}{% set imageName = "mug_hot_thin" %}{% endif %} {% if indexMealtime > 0 %}{% set paddingTop = "pt-3" %}{% endif %} {% set hasAnim = false %} {% set eventName = "" %} {% for mealtimeEvent in datesWithEvents|keys %} {% if mealtimeEvent == mealtime %} {% for event in datesWithEvents[mealtime] %} {% if event and event.date|date("Y-m-d") == date|date("Y-m-d") %} {% set hasAnim = true %} {% set eventName = event.name %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% endfor %}
logo_api {{ mealtime }}
{% if hasAnim %}
logo_api {{ eventName }}
{% endif %} {% for key in menus|keys %} {% for course, recipes in menus[key] %} {% for recipe in recipes %} {% if date | date_fr('short') == recipe.consumptionDate | date_fr('short') and key == mealtime %}

{{ recipe.preferredSiteLabel | default(recipe.commercialLabel) | default(recipe.designation) | raw }} {% if recipe.linkedRecipeLabels is not empty %} {% for linkedRecipeLabel in recipe.linkedRecipeLabels %} , {{ linkedRecipeLabel | raw }} {% endfor %} {% endif %}

{% endif %} {% endfor %} {% endfor %} {% endfor %}
{% endfor %}
{% endif %}