{% if current_user.role != 'customer' %}
Print All QR Codes
{% endif %}
{% if current_user.role in ['admin', 'director'] %}
Add Facility
{% endif %}
{% if grouped %}
{% for group_key, group in grouped.items() %}
{# ── Contract group header ────────────────────────────────────────────── #}
{% set collapse_id = 'contract-' ~ loop.index %}
{{ group.facilities|length }}
{% if group.project and current_user.role in ['admin', 'director', 'project_manager'] %}
{% endif %}