{% extends "base.html" %} {% load static %} {% block title %}Human Resources Dashboard - {{ block.super }}{% endblock %} {% block css %} {% endblock %} {% block content %}

Human Resources Dashboard

{% include "hr/partials/hr_stats.html" %}
Recent Activity
{% for employee in recent_hires %}
New Employee Hired

{{ employee.get_full_name }} joined {% if employee.department %}{{ employee.department.name }}{% else %}the organization{% endif %} as {{ employee.job_title|default:"Employee" }}

{{ employee.hire_date|timesince }} ago
{% endfor %} {% for review in recent_reviews %}
Performance Review Completed

{{ review.employee.get_full_name }} received a performance review {% if review.overall_rating %} with rating: {{ review.get_overall_rating_display }} {% endif %}

{{ review.review_date|timesince }} ago
{% endfor %} {% for training in recent_training %}
Training Completed

{{ training.employee.get_full_name }} completed "{{ training.training_name }}"

{{ training.completion_date|timesince }} ago
{% endfor %} {% if not recent_hires and not recent_reviews and not recent_training %}
No recent activity

Recent HR activities will appear here

{% endif %}
Today's Attendance
{% include "hr/partials/attendance_summary.html" %}
Department Overview
{% for dept in departments %}
{{ dept.name }}
{{ dept.description|default:"No description" }}
{{ dept.employees.count }}
{% empty %}

No departments found

Add Department
{% endfor %}
Pending Tasks
{% if pending_reviews > 0 %}
Pending Reviews
Performance reviews awaiting completion
{{ pending_reviews }}
{% endif %} {% if employees_clocked_in > 0 %}
Employees Clocked In
Currently working
{{ employees_clocked_in }}
{% endif %}
Total Hours Today
Logged work hours
{{ total_hours_today|floatformat:1 }}h
{% if not pending_reviews and not employees_clocked_in %}

All tasks completed!

{% endif %}
{% endblock %} {% block js %} {% endblock %}