{% extends 'parents/_layout.html.twig' %} {% block title %}Cantine - {{ enfant.prenom }} {{ enfant.nom }}{% endblock %} {% block page_title %}Cantine - {{ enfant.prenom }} {{ enfant.nom }}{% endblock %} {% block body %}

Abonnement en cours

{% if abonnementActif is null %}
Aucun abonnement cantine actif pour {{ enfant.prenom }}.
{% else %}

Actif du {{ abonnementActif.dateDebut|date('d/m/Y') }} au {{ abonnementActif.dateFin|date('d/m/Y') }} - {{ abonnementActif.montant|montant }} FCFA

Une fois payé, {{ enfant.prenom }} a accès à la cantine sans limite sur cette période.

{% endif %}
{% if abonnementActif is null %}

Souscrire à la cantine

Le montant est calculé automatiquement (tarif cantine × nombre de jours couverts) et facturé immédiatement.

{% endif %}

Historique

{% if historique is empty %}
Aucun abonnement cantine.
{% else %}
{% for abonnement in historique %} {% endfor %}
Période Montant Statut
{{ abonnement.dateDebut|date('d/m/Y') }} au {{ abonnement.dateFin|date('d/m/Y') }} {{ abonnement.montant|montant }} FCFA {% if abonnement.actif %} Actif {% else %} Résilié {% endif %}
{% endif %}
{% endblock %}