{% endif %}
{# INFO MESSAGE (CAN BE MULTIPLE) #}
{% if session_has('info') %}
{# MULTIPLE INFO MESSAGE #}
{% if session('info') is iterable and session('info')|length > 1 %}
{{ Lang.choice('firefly.flash_info_multiple', session('info')|length, {count: session('info')|length}) }}:
{% for inf in session('info') %}
{{ inf|raw }}
{% endfor %}
{% endif %}
{# SET OF MULTIPLE INFO MESSAGES, BUT THERE IS JUST ONE #}
{% if session('info') is iterable and session('info')|length == 1 %}
{{ 'flash_info'|_ }}: {{ session('info')[0]|raw }}
{% endif %}
{# SINGLE INFO MESSAGE #}
{% if session('info') is not iterable %}
{{ 'flash_info'|_ }}: {{ session('info')|raw }}
{% endif %}
{% endif %}
{# ERROR MESSAGE (CAN BE MULTIPLE) #}
{% if session_has('error') %}
{# MULTIPLE ERRORS (BAD) #}
{% if session('error') is iterable and session('error')|length > 1 %}
{{ Lang.choice('firefly.flash_error_multiple', session('error')|length, {count: session('error')|length}) }}:
{% for err in session('error') %}
{{ err }}
{% endfor %}
{% endif %}
{# SET OF MULTIPLE ERRORS, BUT THERE IS JUST ONE #}
{% if session('error') is iterable and session('error')|length == 1 %}
{{ 'flash_error'|_ }}
{{ session('error')[0]|raw }}
{% endif %}
{# SINGLE ERROR #}
{% if session('error') is not iterable %}
{{ 'flash_error'|_ }} {{ session('error')|raw }}
{% endif %}