{% extends "dashboard/layouts/base.html" %} {% block title %}Admin Dashboard - SavvyGT{% endblock %} {% load static %} {% block content %}

Dashboard

Active Customer

{{ active_user_count }} {{ active_user_percent }}%

Active Agents

100 {{ admin_user_percent }}%

All Customer

{{ total_user_count }} {{ total_user_percent }}%

Total Revenue

₹{{ converted_revenue_inr|default:"0.00" }}

Users Average Sentiment

Recent Feedbacks

{% for f in feedback %} {% empty %}

No feedbacks yet.

{% endfor %}
Total Products

{{ product|length }}

Revenue Generated

₹{{ converted_revenue_inr|default:"0.00" }}

Customer Satisfaction

{% if happy_percent or average_percent or unhappy_percent %}
{% else %}

No feedback available to display satisfaction chart.

{% endif %}

Satisfaction: {{ satisfaction_label }} ({{ satisfaction_percent }}%)

Most Sales Location

Top Products Sold By Week

{% if top_products %}
{%endif %}

Purchase History

{% for p in purchaseHistory %} {% if p.order_status == "Delivered" %} {% elif p.order_status == "Shipped" %} {% elif p.order_status == "Processing" %} {% else %} {% endif %} {% empty %} {% endfor %}
S.No Order ID Product Name Ordered By Quantity Price Order Placed on Delivery Address Delivery Status
{{ forloop.counter }} {{ p.order_id }} {{ p.product.name }} {{ p.user.first_name }} {{ p.user.last_name }} {{ p.quantity }} ${{ p.total_price|floatformat:2 }} {{ p.purchase_date|date:"M d, Y H:i" }} {{ p.order_location }}{{ p.order_status }}{{ p.order_status }}{{ p.order_status }}{{ p.order_status }}
No purchase history available.
{% endblock %}