{% 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 Dashboard

Manage and analyze employee time attendance data from Excel imports

{% if session.role == 'admin' %} 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 %}
# Employee ID Employee Name Location Action Date Time Platform Address Actions
{{ loop.index }}
{{ record.employee_id }}
{{ record.employee_name or 'Unknown' }}
{{ record.location_name }}
{% if record.action_description.lower() == 'check in' %} {% elif record.action_description.lower() == 'check out' %} {% else %} {% endif %} {{ record.action_description }}
{{ record.attendance_date.strftime('%Y-%m-%d') }}
{{ record.attendance_time.strftime('%H:%M:%S') }}
{% if record.platform %} {{ record.platform[:25] }}{% if record.platform|length > 25 %}...{% endif %} {% else %} - {% endif %}
{% if record.recorded_address %} {{ record.recorded_address[:35] }}{% if record.recorded_address|length > 35 %}...{% endif %} {% else %} - {% 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] }}...
{% 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 %}