{% extends "base.html" %} {% block title %}{{ _('My Referrals – OnlineConvert') }}{% endblock %} {% block content %}

{{ _('My Referrals') }}

{% with messages = get_flashed_messages(with_categories=true) %}{% for cat, msg in messages %}{% endfor %}{% endwith %}
{{ referrals|length }}
{{ _('Total Referred') }}
{{ granted_days }}
{{ _('Days Earned') }}
{{ pending_count }}
{{ _('Pending Rewards') }}
{{ referrals | selectattr('price_monthly', 'gt', 0) | list | length }}
{{ _('Paid Subscribers') }}

{{ _('Your Referral Link') }}

{{ _('Share this link — when someone subscribes to a paid plan through it, you earn free days on your subscription.') }}

{{ _('Your code:') }} {{ ref_code }}

{{ _('How It Works') }}

1
{{ _('Share your link') }}
{{ _('Send your referral link to friends') }}
2
{{ _('They subscribe') }}
{{ _('When they sign up and pay for a plan') }}
{{ _('You earn days') }}
{{ _('Free days are added to your plan') }}

{{ _('Referred Users') }}

{{ referrals|length }} {{ _('total') }}
{% if referrals %}
{% for r in referrals %}
{{ r.username[0].upper() if r.username else '?' }}
{{ r.username }}
{{ _('Joined') }} {{ r.created_at[:10] if r.created_at else '' }}
{{ r.plan_name or _('Free') }} {% if r.reward_status == 'granted' %} +{{ r.reward_days }}{{ _('d rewarded') }} {% elif r.reward_status == 'pending' %} {{ _('Reward pending') }} {% else %} {{ _('No reward yet') }} {% endif %}
{% endfor %}
{% else %}

{{ _('No referrals yet.') }}

{{ _('Share your referral link to start earning rewards.') }}

{% endif %}
{% endblock %}