{% extends 'base/base.html' %} {% block title %} Dashboard{% endblock %} {% block stylesheets %} {% endblock stylesheets %} {% block content %}

{% csrf_token %}
General Patients

{{total_walkin_patients}}

General Reports

{{total_general_reports}}

Income

{{total_income}}

Expenses

{{total_expenses}}

{% if total_profit < 0 %}
Loss

{{total_profit}}

{% elif total_profit == 0 %}
Profit

{{total_profit}}

{% else %}
Profit

{{total_profit}}

{% endif %}
Total Tests

{{total_tests}}

Total Specimens

{{total_specimen}}

Parameters

{{total_parameters}}

Total Users

{{total_users}}

Login Report
{% for item in login_report %} {% endfor %}
User Name Role Login Time Logout Time Duration Ip Address
{{item.user.username}} {{item.user.userRole}} {{item.login_time}} {{item.logout_time}} {{item.session_duration|slice:":5"}} {{item.ip_address}}
Type vs Count
    {% for item in test_type_counts %}
  • {{item.testType}}
    {{item.total_tests}}
  • {% endfor %}
{% block javascripts %} {% endblock javascripts %} {% endblock content %}