{% for label, messages in app.flashes %}
{% for message in messages %}
{% if label == "success" %}
<div class="col alert alert-success alert-dismissible fade show">
{% elseif label == "warning" %}
<div class="col alert alert-warning alert-dismissible fade show">
{% elseif label == "error" %}
<div class="col alert alert-danger alert-dismissible fade show">
{% else %}
<div class="col flash-{{ label }} alert-dismissible fade show">
{% endif %}
{{ message }}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
{% endfor %}
{% endfor %}