{% extends 'admin/base.html' %} {% load i18n unfold %} {% block title %} {% if subtitle %} {{ subtitle }} | {% endif %} {{ title }} | {{ site_title|default:_('Django site admin') }} {% endblock %} {% block branding %} {% include "unfold/helpers/site_branding.html" %} {% endblock %} {% block content %} {% component "unfold/components/container.html" %}
{% component "unfold/components/title.html" %} {% trans "Dashboard" %}
{% endcomponent %}
{% component "unfold/components/card.html" %} {% component "unfold/components/text.html" %} {% trans "Revenue (gross, 30d)" %} {% endcomponent %} {% component "unfold/components/title.html" %} {{ revenue_gross_30|default:0 }} {% endcomponent %} {% endcomponent %} {% component "unfold/components/card.html" %} {% component "unfold/components/text.html" %} {% trans "Revenue (net, 30d)" %} {% endcomponent %} {% component "unfold/components/title.html" %} {{ revenue_net_30|default:0 }} {% endcomponent %} {% endcomponent %} {% component "unfold/components/card.html" %} {% component "unfold/components/text.html" %} {% trans "Returns (30d)" %} {% endcomponent %} {% component "unfold/components/title.html" %} {{ returns_30|default:0 }} {% endcomponent %} {% endcomponent %} {% component "unfold/components/card.html" %} {% component "unfold/components/text.html" %} {% trans "Processed orders (30d)" %} {% endcomponent %} {% component "unfold/components/title.html" %} {{ processed_orders_30|default:0 }} {% endcomponent %} {% endcomponent %}
{% with gross=revenue_gross_30|default:0 returns=returns_30|default:0 %} {% with total=gross|add:returns %} {% component "unfold/components/card.html" with class="xl:col-span-2" %} {% component "unfold/components/title.html" %} {% trans "Sales vs Returns (30d)" %} {% endcomponent %} {% if total and total > 0 %} {% widthratio gross total 360 as gross_deg %}
{% trans "Gross" %}: {{ gross }}
{% trans "Returns" %}: {{ returns }}
{% else %} {% component "unfold/components/text.html" %} {% trans "Not enough data for chart yet." %} {% endcomponent %} {% endif %} {% endcomponent %} {% endwith %} {% endwith %} {% component "unfold/components/card.html" %} {% component "unfold/components/title.html" %} {% trans "Quick Links" %} {% endcomponent %} {% if quick_links %} {% component "unfold/components/navigation.html" with class="flex flex-col gap-1" items=quick_links %} {% endcomponent %} {% else %} {% component "unfold/components/text.html" %} {% trans "No links available." %} {% endcomponent %} {% endif %} {% endcomponent %}
{% component "unfold/components/card.html" %} {% component "unfold/components/title.html" %} {% trans "Most wished product" %} {% endcomponent %} {% if most_wished_products %} {% elif most_wished_product %} {% if most_wished_product.image %} {{ most_wished_product.name }} {% endif %} {{ most_wished_product.name }} {% else %} {% component "unfold/components/text.html" %} {% trans "No data yet." %} {% endcomponent %} {% endif %} {% endcomponent %} {% component "unfold/components/card.html" %} {% component "unfold/components/title.html" %} {% trans "Most popular product" %} {% endcomponent %} {% if most_popular_products %} {% elif most_popular_product %} {% if most_popular_product.image %} {{ most_popular_product.name }} {% endif %} {{ most_popular_product.name }} {% else %} {% component "unfold/components/text.html" %} {% trans "No data yet." %} {% endcomponent %} {% endif %} {% endcomponent %}
{% component "unfold/components/separator.html" %} {% endcomponent %}
{% component "unfold/components/text.html" with class="text-center text-xs text-gray-500 dark:text-gray-400" %} eVibes {{ evibes_version }} ยท Wiseless Team {% endcomponent %}
{% endcomponent %} {% endblock %}