{% extends 'base.html' %} {% load static %} {% block title %}HR Dashboard - Optinet Global Links{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

HR Dashboard

Overview of human resources metrics and activities

{% include 'hr/hr_nav.html' %} {% if is_admin %}
Total Employees
{{ total_employees }}
Present Today
{{ present_today }}
Late Today
{{ late_today }}
Absent Today
{{ absent_today }}
Departments
{{ total_departments }}
Pending Payslips
{{ pending_payslips }}
Total Attendance Today
{{ todays_attendance }}
Recent Hires
{{ recent_employees|length }}
Recent Attendance
View All
{% if recent_attendance %}
{% for attendance in recent_attendance %}
{{ attendance.employee.full_name }}

{{ attendance.date|date:"M d, Y" }}

{% if attendance.check_in_time %} In: {{ attendance.check_in_time }} {% endif %} {% if attendance.check_out_time %} | Out: {{ attendance.check_out_time }} {% endif %}
{{ attendance.get_status_display }}
{% endfor %}
{% else %}

No attendance records found.

{% endif %}
Recent Employees
View All
{% if recent_employees %}
{% for employee in recent_employees %}
{{ employee.full_name }}

{{ employee.job_title }}

{{ employee.department.name|default:"No Department" }}
{{ employee.get_employment_status_display }}
{% endfor %}
{% else %}

No employees found.

{% endif %}
{% endif %} {% if employee_profile %}
My Information

Employee ID: {{ employee_profile.employee_id }}

Department: {{ employee_profile.department.name|default:"N/A" }}

Job Title: {{ employee_profile.job_title }}

Hire Date: {{ employee_profile.hire_date|date:"M d, Y" }}

Status: {{ employee_profile.get_employment_status_display }}

Documents: {{ total_documents }}

My Attendance
{% if my_recent_attendance %} {% for attendance in my_recent_attendance %}
{{ attendance.date|date:"M d, Y" }}
{{ attendance.get_status_display }} {% if attendance.check_in_time %}
In: {{ attendance.check_in_time }} {% endif %}
{% if not forloop.last %}
{% endif %} {% endfor %} {% else %}

No attendance records available.

{% endif %}
Recent Payslips
{% if recent_payslips %} {% for payslip in recent_payslips %} {% if not forloop.last %}
{% endif %} {% endfor %} {% else %}

No payslips available.

{% endif %}
{% endif %}
{% endblock %}