{{ currentFormatted }}
{{ maxFormatted }}
{% if open is not null and open > 0 %}
{{ transPercentOpen|trans({'%percent%': percentReached|number_format(percentDecimals), '%left%': openFormatted}) }}
{% else %}
{{ transPercentSpent|trans({'%percent%': percentReached|number_format(percentDecimals)}) }}
{% endif %}
{% endmacro %}
{% macro progressbar(max, current, title, subTitle, reverseColors) %}
{% set percentReached = 0 %}
{% if max > 0 %}
{% set percentReached = (current / (max / 100)) %}
{% endif %}
{% set width = percentReached|number_format(1, '.', '') %}
{% if width > 100 %}
{% set width = 100 %}
{% endif %}