{% for label, messages in app.flashes %}
{% for message in messages %}
<div class="alert alert-card alert-{{ label }}" role="alert">
<strong class="text-capitalize">{{ label }}</strong> {{ message }}
<button class="close" type="button" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
{% endfor %}
{% endfor %}