{% extends "base_authenticated.html" %} {% block title %}Time Attendance Dashboard - {{ COMPANY_NAME }}{% endblock %} {% block extra_head %} {% endblock %} {% block page_title %}Time Attendance{% endblock %} {% block content %}

Time Attendance Management

Import, manage, and analyze employee time attendance data from Excel files

{% if session.role == 'admin' %} Import Excel Data {% endif %} View Records

{{ "{:,}".format(total_records) }}

Total Records

{{ "{:,}".format(unique_employees) }}

Unique Employees

{{ "{:,}".format(unique_locations) }}

Locations

{{ "{:,}".format(recent_imports|length) }}

Recent Imports

Quick Actions

Search Records

Find specific attendance records by employee, date, or location

Search Now
{% if session.role == 'admin' %}

Import Excel File

Upload and import time attendance data from Excel spreadsheets

Import Data
{% endif %}

Generate Reports

Create detailed attendance reports and analytics

View Reports
{% if recent_imports %}

Recent Imports

Last {{ recent_imports|length }} import batches
{% for import_batch in recent_imports %} {% endfor %}
Import Date Source Records Batch ID Actions
{{ import_batch.import_date.strftime('%Y-%m-%d %H:%M') if import_batch.import_date else 'Unknown' }}
{{ import_batch.import_source or 'Excel Import' }}
{{ "{:,}".format(import_batch.record_count) }} records {{ import_batch.import_batch_id[:8] }}... View
{% endif %} {% if employees %}

Employee Quick Access

Click to view employee attendance records
{% for employee in employees[:12] %}
{{ employee.employee_name[0].upper() if employee.employee_name else employee.employee_id[0].upper() }}
{{ employee.employee_name }}
ID: {{ employee.employee_id }}
View Records
{% endfor %} {% if employees|length > 12 %}
{{ employees|length - 12 }} more employees View All
{% endif %}
{% endif %} {% if total_records == 0 %}

No Time Attendance Data

Get started by importing your first Excel file with time attendance data. The system supports various Excel formats and will automatically process your data.

{% if session.role == 'admin' %} Import Your First File {% endif %}
{% endif %}
{% endblock %}