{# Every agent portal page: how many of the agent's direct players are active (loaded in the last 30 days) vs inactive - see AgentPlayerActivityService. #} {% set activity = agent_player_activity() %} {% if activity %} {% import 'agent/_activity_macros.html.twig' as act %} {% set level = act.level(activity)|trim %}
{% if activity.total == 0 %}
No direct players yet — share your referral link to grow your team.
{% else %}
{{ activity.active }} of {{ activity.total }} direct players active ({{ activity.percent }}%) · {{ activity.inactive }} inactive
Active = loaded in the last {{ activity.days }} days
{% endif %}
View players →
{% endif %}