{% extends "admin/layout.html" %} {% block title %}Invites | {{ brand_short_name }}{% endblock %} {% block admin_title %}Invitados con / sin compra{% endblock %} {% block admin_content %} {% set top_value = (rankings[0].with_purchase if sort == 'with_purchase' and rankings else rankings[0].without_purchase if sort == 'without_purchase' and rankings else rankings[0].direct_count if rankings else 1) or 1 %}

Ranking de invitadores

Quién tiene más invitados directos con compra y sin compra

Invitadores

{{ totals.inviters }}

Invitados directos

{{ totals.direct }}

Con compra

{{ totals.with_purchase }}

Sin compra

{{ totals.without_purchase }}

Detalle

Solo invitados directos (nivel 1). “Con compra” = al menos un producto comprado.

{% if rankings %} {% for row in rankings %} {% set bar_base = row.with_purchase if sort == 'with_purchase' else row.without_purchase if sort == 'without_purchase' else row.direct_count %} {% endfor %}
# Usuario Total invitados Con compra Sin compra Red 3 niveles Comisiones
{{ row.rank }} {{ row.user.phone }}
{{ row.user.referral_code or "—" }}
{{ row.direct_count }} {{ row.with_purchase }} {{ row.without_purchase }} {{ row.team_total }} ({{ row.active_team }} c/compra) ${{ "%.2f"|format(row.commission_total or 0) }} Auditoría
{% else %}

Aún no hay usuarios con invitados registrados.

{% endif %}
{% endblock %}