{% extends "base.html" %} {% block title %}Attendance Report{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Attendance Report

Comprehensive attendance tracking with location data for {{ current_date_formatted }}

Back to Dashboard

{{ stats.total_checkins }}

Total Check-ins

{{ stats.unique_employees }}

Unique Employees

{{ stats.today_checkins }}

Today's Check-ins

{{ stats.checkins_with_location }}

With GPS Location

{{ location_coverage }}% coverage

Filter Records

Attendance Records {% if attendance_records %} ({{ attendance_records|length }} records) {% endif %}

entries
{% if attendance_records %} {% for record in attendance_records %} {% endfor %}
# Employee ID Location Event Date Time GPS Status Coordinates Accuracy Address Device Status Actions
{{ loop.index }}
{{ record.employee_id }}
{{ record.location_name }}
{{ record.location_event }}
{{ record.check_in_date.strftime('%Y-%m-%d') }}
{{ record.check_in_time.strftime('%H:%M') }}
{% if record.latitude and record.longitude %} GPS {% else %} No GPS {% endif %} {% if record.latitude and record.longitude %}
{{ "%.6f"|format(record.latitude) }}
{{ "%.6f"|format(record.longitude) }}
{% else %} Not available {% endif %}
{% if record.location_accuracy %} {% set accuracy_class = 'high' if record.location_accuracy <= 50 else ('medium' if record.location_accuracy <= 100 else 'low') %} ±{{ "%.0f"|format(record.location_accuracy) }}m {% else %} - {% endif %} {% if record.address %}
{{ record.address }}
{% else %} Not resolved {% endif %}
{{ record.device_info }}
{{ record.status.title() }}
{% if record.latitude and record.longitude %} {% endif %}
{% else %}

No Records Found

{% if date_filter or location_filter or employee_filter %} No attendance records match your current filters. {% else %} No attendance records available yet. {% endif %}

{% if date_filter or location_filter or employee_filter %} {% endif %}
{% endif %}
{% endblock %} {% block extra_scripts %} {% endblock %}