{% block flashes %}
{% for type in ['success', 'danger', 'warning'] %}
{% for flash in app.session.flashbag.get(type) %}
<div class="alert alert-custom alert-{{ type }} alert-primary fade show" role="alert">
<div class="alert-text">{{ flash|raw }}</div>
<div class="alert-close">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true"><i class="ki ki-close"></i></span>
</button>
</div>
</div>
{% endfor %}
{% endfor %}
{% endblock %}