{% extends 'membersmessaging/layouts/membersmessaging.twig' %}

{% block content %}

    <ul class="breadcrumbs el">
        <li><a href="/admin/">Home</a> /</li>
        <li class="end">Response Times</li>
    </ul>

    {% include 'membersmessaging/admin/widgets/tabnav.twig' %}

    <table class="manage-items">
        <tr>
            <th>Response Time</th>
            <th>No of Responses</th>
            <th>% of all</th>
        </tr>
        <tbody>
        {% if message_count > 0 %}
            {% for row in response_data %}
                <tr>
                    <td>{{ row.label }}</td>
                    <td>{{ row.count }}</td>
                    <td>{{ row.percentage }}%</td>
                </tr>
            {% endfor %}
        {% else %}
            <tr>
                <td colspan="3">No response data available</td>
            </tr>
        {% endif %}
        </tbody>
    </table>


{% endblock %}
