{% extends 'admin_panel/base.html' %}

{% block breadcrumb_content %}
    <li class="active">{% link_for _("Dashboard"), named_route='mailcraft.dashboard' %}</li>
{% endblock breadcrumb_content %}

{% block ap_content %}
    <h1>{{ _("Dashboard") }}</h1>

    <a href="{{ h.url_for('mailcraft.test') }}" class="btn btn-primary mb-3">{{ _("Send test email") }}</a>

    <div class="row g-3">
        {% if collection.data.total  %}
            {{ collection.serializer.render() | safe }}
        {% else %}
            <p>{{ _("No mails found.") }}</p>
        {% endif %}
    </div> <!-- row -->
{% endblock ap_content %}
