Admin Dashboard

Manage users and view invoice processing statistics

PDFs Today
{{ summary.today_pdfs }}
Active Users Today
{{ summary.today_active_users }}
Total PDFs Processed
{{ summary.total_pdfs }}
Total Items Seen
{{ summary.total_items }}
Item Codes Added Manually
{{ summary.total_manual }}
Items Still Missing a Code
{{ summary.total_missing }}
{% if stats %} {% for day in stats %}

{{ day.date }} {% if day.date == today %}TODAY{% endif %}

{% for u in day.users %} {% endfor %}
User PDFs Items With Code Auto-Matched Manual Missing
{{ u.username }} {{ u.pdfs_processed }} {{ u.total_items }} {{ u.items_with_code }} {{ u.items_auto_matched }} {{ u.items_manual }} {% if u.items_missing > 0 %}{{ u.items_missing }} {% else %}0{% endif %}
{% endfor %} {% else %}
📭

No invoices have been processed yet.

{% endif %}

👥 Registered Users

{% if all_users %} {% for user in all_users %} {% endfor %}
Username Email Registered Last Login Status Actions
{{ user.username }} {% if user.is_admin %}👑 ADMIN{% endif %} {{ user.email }} {{ user.created_at[:10] if user.created_at else 'N/A' }} {{ user.last_login[:10] if user.last_login else 'Never' }} {% if user.is_active %} ✓ Active {% else %} ✗ Inactive {% endif %} {% if user.username != 'admin' %} {% else %} Protected {% endif %}
{% else %}
👥

No users registered yet.

{% endif %}