{% for day in days %}
{% with staff_available=staff.weekly_availability|get_item:day.weekday staff_absent=staff_absences|get_item:staff.id|get_item:day.day closure_time=closure_times|get_item:day.day %}
{% with start_closure_time=closure_time.start_time|localtime end_closure_time=closure_time.end_time|localtime %}
{% if closure_time %}
{% with custom_data_template="
" %}
Closed
{% endwith %}
{% elif staff_absent %}
{% if not user.is_facility_manager %}
{% if "dashboard"|customization:"dashboard_staff_status_absence_view_staff" and user.is_staff or "dashboard"|customization:"dashboard_staff_status_absence_view_user_office" and user.is_user_office or "dashboard"|customization:"dashboard_staff_status_absence_view_accounting_officer" and user.is_accounting_officer %}