{% extends "base.html" %} {% block title %}متابعة الأداء - {{ report.project_name }}{% endblock %} {% block content %}

متابعة الأداء (KPIs)

{{ report.project_name }}

{% include "shared/_print_share_bar.html" %} {% if kpis %} {% endif %} ← العودة للتقرير
{% if kpis %}
{% for kpi in kpis %}
{% if kpi.category == 'financial' %}مالي {% elif kpi.category == 'customers' %}عملاء {% elif kpi.category == 'operations' %}عمليات {% else %}نمو{% endif %} {{ kpi.unit }}

{{ kpi.name }}

{% set latest = kpi.entries|first if kpi.entries else None %}
الفعلي
{{ '{:,.0f}'.format(latest.actual_value) if latest else '---' }}
{% if kpi.target_value %}
المستهدف
{{ '{:,.0f}'.format(kpi.target_value) }}
{% endif %}
{% if kpi.target_value and latest %} {% set pct = (latest.actual_value / kpi.target_value * 100)|round|int %}
{{ pct }}% من المستهدف
{% endif %}
{% endfor %}
{% else %}
📈

لم يتم إنشاء مؤشرات الأداء بعد

سيقوم الذكاء الاصطناعي بتحديد مؤشرات الأداء الرئيسية بناءً على دراسة الجدوى

{% endif %}
{% endblock %}