{% extends 'base.html' %}{% from 'macros.html' import page_header,bars,idea_card with context %} {% block content %}{{ page_header(t('analytics'),t('analytics_hint')) }}
↓ {{ t('export_excel') }}

{{ t('monthly') }}

{{ bars(months,t('monthly')) }}

{{ t('categories') }}

{{ bars(groups,t('categories')) }}

{{ t('geography') }}

{{ bars(geography,t('geography')) }}

{{ t('growth') }}

{% for item in growth %}{% endfor %}
{{ t('category') }}{{ t('current') }}{{ t('previous') }}{{ t('growth') }}
{{ item.label }}{{ item.current }}{{ item.previous }}{% if item.previous %}{{ ((item.current-item.previous)/item.previous*100)|round|int }}%{% else %}{{ t('no_comparison') }}{% endif %}

{{ t('opportunities') }}

{% for item in top %}{{ idea_card(item) }}{% endfor %}
{% endblock %}