{% extends "base.html" %} {% from "partials/_tag_picker.html" import tag_picker %} {% block title %} پرونده مشتری — {{ customer.first_name }} {{ customer.last_name }} — {{ APP_NAME }} {% endblock %} {% block content %}
{% if has_photo %} {% else %}
👤
{% endif %}
نام کامل
{{ customer.first_name }} {{ customer.last_name }}
شهر
{{ customer.city or "-" }}
تلفن ثابت
{{ customer.landline_phone or "-" }}
شماره موبایل
{{ customer.mobile_phone or "-" }}
جنسیت
{{ gender_fa.get(customer.gender, "-") }}
تاریخ تولد
{{ jalali.to_jalali_str(customer.birth_date) if customer.birth_date else "-" }}
تاریخ عضویت
{{ jalali.to_jalali_str(customer.joined_at, with_time=true) }}
معرف
{{ (referrer.first_name + " " + referrer.last_name) if referrer else (customer.referrer_text or "-") }}
کد مشتری
{{ customer.customer_code or "-" }}
اینستاگرام
{{ customer.instagram_id or "-" }}
نحوه آشنایی
{{ customer.how_found or "-" }}
آدرس
{{ customer.address or "-" }}
توضیحات
{{ customer.description or "-" }}
وزن خرید (گرم) {{ "{:,.2f}".format(customer.computed_total_weight) }}
رتبه مشتری {{ customer.rating or "-" }}
وضعیت {{ status_fa.get(customer.status, customer.status or "-") }}
اولین تماس {{ jalali.to_jalali_str(customer.computed_first_call_date) if customer.computed_first_call_date else "-" }}
آخرین تماس {{ jalali.to_jalali_str(customer.computed_last_call_date) if customer.computed_last_call_date else "-" }}
تماس بعدی {{ jalali.to_jalali_str(customer.next_call_date) if customer.next_call_date else "-" }}
ثبت رتبه دستی: {% for r in ratings %}
{% endfor %}
📅 تماس بعدی:
{% if customer.next_call_date %} {% endif %}
تگ‌های ثبت‌شده
{{ tag_picker( all_tag_groups, tag_service_current_ids|map('string')|list, "customerTagPicker", title="انتخاب تگ‌های مشتری", trigger_label="✎ ویرایش تگ‌ها", form_action=url_for( 'customer_profile.set_tags', customer_id=customer.id ) ) }}
{% for category, tags in tags_grouped.items() %}
{{ category }}: {% for t in tags %} {{ t }} {% endfor %}
{% else %} هنوز تگی برای این مشتری ثبت نشده است. {% endfor %}
{% if current_user.is_authenticated and current_user.is_admin() %} {% endif %} {% for c in calls %} {% if "calls" in allowed_page_keys() %} {% else %} {% endif %} {% if current_user.is_authenticated and current_user.is_admin() %} {% endif %} {% else %} {% endfor %}
تاریخ تماس فروشنده پاسخ داده شد؟ نتیجه عملیات
{{ jalali.to_jalali_str(c.call_date, with_time=true) }} {{ c.salesperson.full_name if c.salesperson else "-" }} {{ "بله" if c.answered == true else ("خیر" if c.answered == false else "-") }} {{ c.result_text or "-" }}
هنوز تماسی ثبت نشده
{% endblock %}