{% extends "base.html" %} {% block title %}Attendance Report - QR Code Management{% endblock %} {% block extra_head %} {% endblock %} {% block content %}

Attendance Report

Monitor and analyze staff attendance with enhanced location tracking

{{ stats.total_checkins or 0 }}

Total Check-ins

All time

{{ stats.unique_employees or 0 }}

Unique Employees

Have checked in

{{ stats.active_locations or 0 }}

Active Locations

QR codes deployed

{{ stats.today_checkins or 0 }}

Today's Check-ins

{{ current_date_formatted }}

{{ stats.records_with_gps or 0 }}

GPS Records

Location captured
{% if has_location_accuracy_feature %}

{{ "%.2f"|format(stats.avg_location_accuracy or 0) }}mi

Avg. Location Accuracy

Distance precision
{% else %}

GPS

Tracking Mode

Current system
{% endif %}

Filter Records

Attendance Records {% if date_from or date_to or location_filter or employee_filter %} (Filtered) {% endif %}

entries
{% if attendance_records %} {% for record in attendance_records %} {% endfor %}
# Employee ID Location Event Date Time QR Address Check-in Address {% if has_location_accuracy_feature %}Location Accuracy{% else %}GPS Accuracy{% endif %} Device 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') }}
{{ record.qr_address[:50] }}{% if record.qr_address|length > 50 %}...{% endif %}
{{ record.checked_in_address[:50] }}{% if record.checked_in_address|length > 50 %}...{% endif %}
{% if has_location_accuracy_feature and record.location_accuracy %}
{{ "%.3f"|format(record.location_accuracy) }} mi ({{ record.accuracy_level }})
{% elif record.gps_accuracy %}
{{ "%.1f"|format(record.gps_accuracy) }}m (gps)
{% else %}
Unknown
{% endif %}
{{ record.device_info[:20] }}{% if record.device_info|length > 20 %}...{% endif %}
{% if record.has_location_data %} {% else %} {% endif %}
{% else %}

No Attendance Records Found

{% if date_from or date_to or location_filter or employee_filter %} No records match your current filters. Try adjusting the filter criteria. {% else %} No staff have checked in yet. QR codes need to be scanned to generate attendance data. {% endif %}

{% if date_from or date_to or location_filter or employee_filter %} {% endif %}
{% endif %}
{% if attendance_records %}
{% endif %}
{% endblock %} {% block extra_scripts %} {% endblock %}