{% extends 'base.html' %} {% block title %}HRMS - Staff Attendance{% endblock %} {% block styles %} {% endblock %} {% block content %}

{{ restaurant.name }} - Attendance

{{ today.strftime('%B %d, %Y') }}

Back to Staff List
{% for user in staff %} {% set attendance = attendance_data|selectattr('user_id', 'equalto', user.id)|first %} {% endfor %}
Staff Role Clock In Clock Out Status Notes Actions
{{ user.full_name[:1] }}
{{ user.full_name }}
{% if user.role|lower == 'manager' %} {% elif user.role|lower == 'cook' or user.role|lower == 'cooks' %} {% elif user.role|lower == 'server' or user.role|lower == 'servers' %} {% elif user.role|lower == 'dishwasher' %} {% elif user.role|lower == 'host' %} {% elif user.role|lower == 'busser' %} {% else %} {% endif %} {{ user.role|title }}
{% if attendance and attendance.clock_in %} {{ attendance.clock_in.strftime('%H:%M') }} {% else %} Not clocked in {% endif %} {% if attendance and attendance.clock_out %} {{ attendance.clock_out.strftime('%H:%M') }} {% else %} Not clocked out {% endif %} {% if attendance %} {{ attendance.status|title }} {% else %} Not marked {% endif %}
{% if attendance %}{{ attendance.notes }}{% endif %}
{% if not attendance or not attendance.clock_in %}
{% endif %} {% if attendance and attendance.clock_in and not attendance.clock_out %}
{% endif %}
{% endblock %}