التقارير والإحصائيات

مؤشرات الأداء، فلترة المستأجرين وسجلات التنبيهات المؤتمتة

لوحة التحكم {% include '_header_actions.html' %}
إجمالي المستأجرين
{{ total_tenants }}
قاعدة البيانات النشطة
أرقام الهواتف المسجلة
{{ tenants_with_phone }}
{% if total_tenants > 0 %} {{ ((tenants_with_phone / total_tenants) * 100)|round|int }}% من المستأجرين {% else %} 100% {% endif %}
عقود بتواريخ انتهاء
{{ tenants_with_end_date }}
مؤهلة للتنبيه الآلي
إجمالي الإشعارات
{{ total_notifications }}
{{ successful_notifications }} إشعار ناجح
تصفية وتحديد بيانات المستأجرين
{% if request.args.get('filter_type') %} إلغاء الفلتر {% endif %}
{% if request.args.get('filter_type') %}
{% if request.args.get('filter_type') == 'expiring_soon' %} نتائج: العقود التي قاربت على الانتهاء {% elif request.args.get('filter_type') == 'expired' %} نتائج: العقود المنتهية {% elif request.args.get('filter_type') == 'no_phone' %} نتائج: المستأجرين بدون أرقام هواتف {% else %} نتائج الفلترة {% endif %} {{ filtered_tenants|length }} مستأجر
{% if filtered_tenants %}
{% if request.args.get('filter_type') == 'expiring_soon' %} {% endif %} {% for tenant in filtered_tenants %} {% if request.args.get('filter_type') == 'expiring_soon' %} {% endif %} {% endfor %}
نتائج فلترة المستأجرين
# اسم المستأجر رقم الهاتف تاريخ البدء تاريخ الانتهاءالمهلة المتبقيةالإجراءات
{{ tenant[0] }}
{{ (tenant[1] or 'م')[:1] }}
{{ tenant[1] or 'مستأجر' }}
{% if tenant[2] %} {{ tenant[2] }} {% else %} غير مسجل {% endif %} {{ tenant[3] if tenant[3] else '---' }} {{ tenant[4] if tenant[4] else '---' }} {% if tenant|length > 5 %} {% set days = tenant[5] %} {% if days <= 10 %} {{ days }} يوم متبقي {% elif days <= 30 %} {{ days }} يوم متبقي {% else %} {{ days }} يوم {% endif %} {% else %} --- {% endif %}
{% if tenant[2] %} {% endif %}
{% else %}
لا توجد بيانات تطابق الفلتر المحدد

جرّب تغيير نوع الفلتر أو زيادة نطاق الأيام

{% endif %}
{% endif %}
معدل تسليم ونجاح الإشعارات
{% if total_notifications > 0 %} {% set success_rate = (successful_notifications / total_notifications * 100) | round(1) %}
{{ success_rate }}%
نسبة الإرسال الناجح التراكمية
{{ successful_notifications }} ناجح من {{ total_notifications }}
0% 50% 100% (أداء مثالي)
{% else %}

لا توجد إشعارات مسجلة لحساب المعدل حتى الآن

{% endif %}
توزيع الإشعارات حسب النوع
{% if notifications_by_type %} {% for notification in notifications_by_type %}
{{ notification[0] }} {{ notification[1] }} إشعار
{% endfor %} {% else %}

لا توجد سجلات تنبيهات بحسب الأنواع

{% endif %}
{% if recent_notifications %}
أحدث سجلات الإشعارات الصادرة (آخر 10 تنبيهات)
سجل النظام المباشر
{% for notif in recent_notifications %} {% endfor %}
أحدث سجلات الإشعارات الصادرة
اسم المستأجر نوع التنبيه حالة الإرسال تاريخ ووقت الإرسال
{{ notif[0] }} {% if notif[1] == 'شهري' %} {{ notif[1] }} {% else %} {{ notif[1] }} {% endif %} {% if notif[2] == 'نجح' %} نجح الإرسال {% else %} فشل {% endif %} {{ notif[3] }}
{% endif %}