{% set flashes = app.flashes() %}
{% if flashes is not empty %}
    <div class="py-2">
        {% for label, messages in flashes %}
            {% for message in messages %}
                <div class="alert alert-{{ label }} alert-dismissible " role="alert">
                    {{ message|trans }}
                    <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                </div>
            {% endfor %}
        {% endfor %}
    </div>
{% endif %}
