{% extends 'layouts/base.html' %} {% load i18n %} {% block title %}My Dashboard - PX360{% endblock %} {% block content %}

{% trans "My Dashboard" %}

{% trans "Overview of your assigned items and tasks" %}

{% if selected_hospital %}
{{ selected_hospital.name }} ({% trans "filtered" %})
{% endif %}
{% trans "My Performance" %}

{% trans "Total Items" %}

{{ total_stats.total }}

{% trans "Open" %}

{{ total_stats.open }}

{% trans "In Progress" %}

{{ total_stats.in_progress }}

{% trans "Resolved" %}

{{ total_stats.resolved }}

{% trans "Closed" %}

{{ total_stats.closed }}

{% trans "Overdue" %}

{{ total_stats.overdue }}

{% trans "Completion Trend (Last 30 Days)" %}

{% include 'dashboard/partials/complaints_table.html' with data=paginated_data.complaints stats=stats.complaints %}
{% include 'dashboard/partials/inquiries_table.html' with data=paginated_data.inquiries stats=stats.inquiries %}
{% include 'dashboard/partials/observations_table.html' with data=paginated_data.observations stats=stats.observations %}
{% include 'dashboard/partials/actions_table.html' with data=paginated_data.actions stats=stats.actions %}
{% include 'dashboard/partials/tasks_table.html' with data=paginated_data.tasks stats=stats.tasks %}
{% include 'dashboard/partials/feedback_table.html' with data=paginated_data.feedback stats=stats.feedback %}

{% trans "My Recent Activity" %}

{% if activity_logs %}
{% for log in activity_logs %}
{% if log.activity_type == 'create' %} {% elif log.activity_type == 'update' %} {% elif log.activity_type == 'delete' %} {% elif log.activity_type == 'login' %} {% elif log.activity_type == 'logout' %} {% elif log.activity_type == 'send' %} {% elif log.activity_type == 'resolve' %} {% elif log.activity_type == 'assign' %} {% else %}{% endif %}

{{ log.description }}

{{ log.get_activity_type_display }} {% if log.module %} {{ log.module }} {% endif %}
{{ log.created_at|date:"M d, Y H:i" }}
{% endfor %}
{% else %}

{% trans "No activity recorded yet" %}

{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}