{% set total = namespace(val=0) %} {% set is_active = namespace(val=0) %} {% set is_exist = namespace(val=0) %} {% if hallData:%}
{% for row in hallData %} {% set total.val = (total.val|int + row.total|int) %} {% set is_active.val = (is_active.val|int + row.is_active|int) %} {% set is_exist.val = (is_exist.val|int + row.is_exist|int) %} {% endfor %}
Role Total Count Current Active Exit Counts
{{row.role or ''}} {{row.total or '0'}} {{row.is_active or '0'}} {{row.is_exist or '0'}}
Total {{ total.val }} {{ is_active.val }} {{ is_exist.val }}
{% else %}

No Data

{% endif %}