{% extends "base.html" %} {% block title %}Dashboard - {{ site_name }}{% endblock %} {% block body_class %}dashboard-page{% endblock %} {% block content %}

{{ page_title }}

{% for stat in stats %}
{{ stat.icon }}

{% if stat.format == "currency" %} ${{ stat.value|round(2) }} {% elif stat.format == "number" %} {{ stat.value|int }} {% elif stat.format == "percent" %} {{ stat.value }}% {% else %} {{ stat.value }} {% endif %}

{{ stat.label }}

{% if stat.change %}

{% if stat.change > 0 %}↑{% else %}↓{% endif %} {{ stat.change|abs }}% from last month

{% endif %}
{% endfor %}

Recent Orders

View All
{% for order in recent_orders %} {% endfor %}
Order ID Customer Products Total Status Date Actions
#{{ order.id }} {{ order.customer.name }} {{ order.order_items|length }} item{% if order.order_items|length != 1 %}s{% endif %} ${{ "%.2f"|format(order.total) }} {{ order.status }} {{ order.created_at }} View {% if order.status == "Pending" %} {% endif %}

Recent Activity

    {% for activity in activities %}
  • {{ activity.icon }}

    {{ activity.user }} {{ activity.action }} {% if activity.target %} {{ activity.target }} {% endif %}

  • {% endfor %}

Sales Overview

Top Products

    {% for product in top_products %}
  • {{ product.name }}

    {{ product.name }}

    {{ product.sales }} sales

    ${{ product.revenue|round(2) }}
  • {% endfor %}
{% endblock %} {% block scripts %} {% endblock %}