{% extends "base.html" %} {% block title %}الاستفسارات الواردة{% endblock %} {% block content %}

الاستفسارات الواردة

طلبات المستثمرين والشركاء المهتمين بدراساتك

← دراساتي
{% if inquiries %}
{% for inq in inquiries %}
{% set type_labels = {'invest': 'مستثمر', 'partner': 'شريك', 'license': 'ترخيص', 'general': 'عام'} %} {% set type_colors = {'invest': 'emerald', 'partner': 'blue', 'license': 'purple', 'general': 'slate'} %} {{ type_labels.get(inq.inquiry_type, inq.inquiry_type) }} {% if inq.status == 'new' or inq.status == 'read' %} جديد {% elif inq.status == 'accepted' %} مقبول {% elif inq.status == 'rejected' %} مرفوض {% elif inq.status == 'replied' %} تم الرد {% endif %}

{{ inq.sender.name }}

{{ inq.sender.email }}
{% if inq.contact_info %}
📞 {{ inq.contact_info }}
{% endif %}
{{ inq.created_at.strftime('%Y-%m-%d %H:%M') }}
دراسة: {{ inq.listing.title }}

{{ inq.message }}

{% if inq.reply_message %}
ردك:

{{ inq.reply_message }}

{% endif %} {% if inq.status in ('read', 'new') %}
{% if inq.inquiry_type == 'invest' %} {% endif %}
{% elif inq.status == 'accepted' and inq.inquiry_type == 'invest' %}
{% endif %}
{% endfor %}
{% else %}
💬

لا توجد استفسارات واردة حالياً

{% endif %}
{% endblock %}