{% extends 'layout/base.html' %} {% block content %}

{% if current_user.role == 'admin' %} Admin Dashboard {% elif current_user.role == 'operator' %} Operator Panel {% elif current_user.role == 'accounts' %} Auditor Panel {% elif current_user.role == 'ca' %} CA Panel {% endif %}

{% if current_user.role in ['admin', 'accounts'] %}
{% endif %}
{% if current_user.role == 'admin' %}
Total Users

{{ total_users }}

{% endif %} {% if current_user.role in ['admin', 'accounts', 'operator'] %}
Uploaded Documents

{{ total_uploaded or 0 }}

Audited Documents

{{ total_audited or 0 }}

{% endif %} {% if current_user.role == 'admin' %}
Total Companies

{{ companies|length }}

{% endif %} {% if current_user.role in ['admin', 'accounts'] %}
Pending Audits

{{ total_pending }}

Reupload Documents

{{ total_reupload or 0 }}

{% endif %}
{% if current_user.role == 'admin' %}
Users Today

{{ today_users }}

{% endif %}
Uploaded Today

{{ today_uploaded or 0 }}

Audited Today

{{ today_audited or 0 }}

{% if current_user.role in ['admin', 'accounts'] %}
Pending Today

{{ today_pending }}

Reupload Today

{{ today_reupload or 0 }}

{% endif %}
Company List
{% if companies|length > 0 %}
{% for company in companies %}
{{ company.name }}
View Details
{% endfor %}
{% else %}
👋
There is no task assigned today
{% endif %} {% if current_user.role == 'accounts' %}
Pending Documents for Audit
{% for doc in pending_docs %} {% endfor %}
# Company Action Operator Uploaded At
{{ loop.index }} {{ doc.company.name }} {# EXPENSE DOCUMENTS #} {% if doc.__tablename__ == 'expenses' %} {% if doc.month_id %} Go to Verify {% else %} No Month {% endif %} {# PURCHASE DOCUMENTS #} {% elif doc.__tablename__ == 'purchase' %} {% if doc.month_id and doc.folder and doc.folder.month and doc.folder.month.category and doc.folder.month.category.year %} Go to Verify {% else %} Missing Month or Folder {% endif %} {# SALES DOCUMENTS #} {% elif doc.doc_type == 'sales' %} {% if doc.month_id and doc.folder and doc.folder.year %} Go to Verify {% else %} Missing Month or Category {% endif %} {# BANKING DOCUMENTS #} {% elif doc.doc_type == 'banking' %} {% if doc.month_id and doc.folder and doc.folder.year %} Go to Verify {% else %} Missing Month or Category {% endif %} {# UNKNOWN DOC TYPE #} {% else %} N/A {% endif %} {{ doc.user.name }} {{ doc.created_at.strftime('%d-%m-%Y %I:%M %p') if doc.created_at else '-' }}
{% endif %}
{% endblock %}