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

Time Attendance Dashboard

Manage and analyze employee time attendance data from Excel imports

{% if session.role in ['admin', 'payroll'] %} Import Excel Data {% endif %} View All Records

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

Total Records

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

Employees

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

Locations

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

Import Batches

{% if recent_records %}

Recent Time Attendance Records

Showing latest {{ recent_records|length }} records
{% for record in recent_records %} {% endfor %}
ID Name Platform Date Time Location Name Action Description Event Description Recorded Address Actions
{{ record.employee_id }}
{{ record.employee_name or 'Unknown' }}
{{ record.platform or 'Unknown' }} {{ record.attendance_date.strftime('%Y-%m-%d') }} {{ record.attendance_time.strftime('%H:%M:%S') }}
{{ record.location_name }}
{% if record.action_description.lower() == 'check in' %} {% elif record.action_description.lower() == 'check out' %} {% else %} {% endif %} {{ record.action_description }} {{ record.event_description if record.event_description else '-' }} {% if record.recorded_address %} {{ record.recorded_address[:35] }}{% if record.recorded_address|length > 35 %}...{% endif %} {% else %} No address {% endif %}
{% if session.role == 'admin' %} {% endif %}
{% endif %} {% if recent_imports %}

Recent Import Batches

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) }} {{ import_batch.import_batch_id[:8] }}...
{% if session.role == 'admin' %} {% 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 (.xlsx, .xls) and will automatically process your data.

{% if session.role == 'admin' %} {% endif %}
{% endif %}
{% endblock %}