{% extends "base.html" %} {% block title %}Dashboard{% endblock %} {% block page_title %}Dashboard{% endblock %} {% block page_description %}Welcome back, {{ session.get('username', 'Admin') }}! Here's what's happening today.{% endblock %} {% block content %}

👋 Welcome back!

Here's your HR management overview for today

{{ current_date }}
{% if management_dashboard %}
�️

View & Approve Access

You can view employee records, inventory, and approve requests

Cannot edit or delete any records. To manage account, visit Change Password.

{% elif accountant_dashboard %}

{{ format_currency(payroll_total) }}

This Month Payroll

{{ payroll_paid }}

Paid Payroll Records

{{ format_currency(payroll_paid_amount) }}

{{ payroll_pending }}

Pending Payroll Records

{{ format_currency(payroll_pending_amount) }}

{{ payroll_total_count }}

Total Payroll Entries

{% else %}

{{ ats_total }}

Total Candidates

{{ emp_total }}

Total Employees

{{ attendance_today }}/{{ attendance_total }}

Present Today

₨ {{ payroll_total }}

This Month Payroll

Talent Pipeline

{{ ats_total }}
Total candidates in the ATS funnel
Shortlisted {{ ats_shortlisted }} Rejected {{ ats_rejected }}

Attendance Pulse

{{ attendance_today }}/{{ attendance_total }}
Present today vs roster
{{ (((attendance_today / attendance_total) * 100)|round(0)) if attendance_total and attendance_total > 0 else 0 }}%
Live attendance

Payroll Flow

₨ {{ payroll_total }}
Total salary prepared this month
Pending {{ payroll_pending }}
{% if not management_dashboard and not accountant_dashboard %}

📊 Employee Distribution by Type

📈 ATS Status Overview

Department-wise Employees

{% for dept in departments[:6] %}
{{ dept.name }} {{ dept.count }}
{% endfor %}

Recent Candidates

{% for c in recent_candidates %} {% endfor %}
Resume FileLocationScoreStatusJob Title
{{ c[1][:30] }}{% if c[1]|length > 30 %}...{% endif %} {{ c[2] }} {{ c[4] }}% {{ c[6] }} {{ c[7] }}
{% endif %} {% endif %} {% endblock %}