Analyse de conformité
{{ formule.nom }}
{% set badgeClass = analysis.finalStatus == 'high_risk' ? 'bg-danger-subtle text-danger border border-danger-subtle' : (analysis.finalStatus == 'needs_review' ? 'bg-warning-subtle text-warning border border-warning-subtle' : 'bg-success-subtle text-success border border-success-subtle') %} {% set badgeLabel = analysis.finalStatus == 'high_risk' ? 'Risque fort' : (analysis.finalStatus == 'needs_review' ? 'À vérifier' : 'Avis IA') %}
{{ badgeLabel }} {% if savedAnalysis is defined and savedAnalysis.createdAt %} Analyse du {{ savedAnalysis.createdAt|date('d/m/Y H:i') }} {% endif %}
Points automatiques
{% if analysis.automaticIssues is not empty %}
    {% for issue in analysis.automaticIssues %}
  • {{ issue.title }} : {{ issue.description }}
  • {% endfor %}
{% else %}
Aucun point automatique remonté.
{% endif %}
Analyse qualitative
{{ analysis.aiSummary ?: "L'analyse qualitative IA n'est pas disponible." }}
{% if analysis.aiIssues is not empty %}
    {% for issue in analysis.aiIssues %}
  • {{ issue.title ?: issue.code }} : {{ issue.description }}
  • {% endfor %}
{% endif %}
Suggestions
{% if analysis.aiSuggestions is not empty %}
    {% for suggestion in analysis.aiSuggestions %}
  • {{ suggestion.content }}
  • {% endfor %}
{% else %}
Aucune suggestion spécifique.
{% endif %}
{{ analysis.disclaimer }}
{% if analysis.error %}
{{ analysis.error }}
{% endif %}