{% extends "base.html" %} {% block title %}مقارنة التقارير{% endblock %} {% block content %}

مقارنة التقارير

{% if report1 and report2 %} {% set s1 = report1.synthesis_result or {} %} {% set s2 = report2.synthesis_result or {} %}

{{ report1.project_name }}

{{ s1.get('verdict', 'N/A') }}
{% if s1.get('viability_score', {}).get('overall') %}
{{ s1.viability_score.overall }}/100
{% endif %} {% if s1.get('financial_highlights') %}
{% for k, v in s1.financial_highlights.items() %}
{{ k }}{{ v }}
{% endfor %}
{% endif %}

{{ report2.project_name }}

{{ s2.get('verdict', 'N/A') }}
{% if s2.get('viability_score', {}).get('overall') %}
{{ s2.viability_score.overall }}/100
{% endif %} {% if s2.get('financial_highlights') %}
{% for k, v in s2.financial_highlights.items() %}
{{ k }}{{ v }}
{% endfor %}
{% endif %}
{% elif not report1 and not report2 %}
اختر تقريرين للمقارنة
{% endif %}
{% endblock %}