{% extends 'administration/_layout.html.twig' %} {% block title %}Contrat d'accueil - {{ enfant.prenom }} {{ enfant.nom }}{% endblock %} {% set jours = [ {value: 'lundi', label: 'Lundi'}, {value: 'mardi', label: 'Mardi'}, {value: 'mercredi', label: 'Mercredi'}, {value: 'jeudi', label: 'Jeudi'}, {value: 'vendredi', label: 'Vendredi'}, {value: 'samedi', label: 'Samedi'}, {value: 'dimanche', label: 'Dimanche'}, ] %} {% block page_title %}Contrat d'accueil - {{ enfant.prenom }} {{ enfant.nom }}{% endblock %} {% block toolbar_actions %} Fiche complète {% endblock %} {% block body %}

Contrat actif

{% if contratActif is not null %}
Du {{ contratActif.dateDebut|date('d/m/Y') }}{% if contratActif.dateFin %} au {{ contratActif.dateFin|date('d/m/Y') }}{% endif %}
Jours : {{ contratActif.joursSemaine|map(j => j.label)|join(', ') }}
Horaires : {{ contratActif.heureArriveePrevue ?: '-' }} – {{ contratActif.heureDepartPrevue ?: '-' }}
Tarif : {{ contratActif.tarifConvenu }} ({{ contratActif.libelleTarif }})
Facturation : {{ contratActif.modeFacturation.label }}{% if contratActif.ligneTarifaire %} - {{ contratActif.ligneTarifaire.libelle }} ({{ contratActif.ligneTarifaire.unite.label }}){% endif %}
Frais de préavis non remboursables : {{ contratActif.fraisPreavisNonRemboursable ?: '-' }}
Voir les factures →

Avenant

Jours d'accueil
{% for jour in jours %}
{% endfor %}

Résilier

{% else %} {% if historique is not empty and not historique|first.actif and historique|first.dateFin is not null %} {% set contratClos = historique|first %}

Contrat clos

Du {{ contratClos.dateDebut|date('d/m/Y') }} au {{ contratClos.dateFin|date('d/m/Y') }}
Tarif : {{ contratClos.tarifConvenu }} ({{ contratClos.libelleTarif }})
Frais de préavis non remboursables : {{ contratClos.fraisPreavisNonRemboursable ?: '-' }}
Voir le solde de retrait →
{% endif %}
Jours d'accueil
{% for jour in jours %}
{% endfor %}
{% endif %}

Historique

{% if historique is empty %}
Aucun contrat.
{% else %}
{% for contrat in historique %} {% endfor %}
Période Tarif Facturation Statut
{{ contrat.dateDebut|date('d/m/Y') }}{% if contrat.dateFin %} – {{ contrat.dateFin|date('d/m/Y') }}{% endif %} {{ contrat.tarifConvenu }} ({{ contrat.libelleTarif }}) {{ contrat.modeFacturation.label }} {% if contrat.fraisPreavisNonRemboursable %}
Préavis non remboursable : {{ contrat.fraisPreavisNonRemboursable }}{% endif %} {% if contrat.motifAvenant %}
Avenant : {{ contrat.motifAvenant }}{% endif %}
{% if contrat.actif %} Actif {% else %} Clos {% endif %}
{% endif %}
{% endblock %}