{% extends 'adminapp/master.html' %}
{% block content %}

<div class="container mt-4">
    <h2>Total Enquiries</h2>

    <table class="table table-bordered table-striped mt-3">
        <thead class="thead-dark">
            <tr>
                <th>#</th>
                <th>Name</th>
                <th>Email</th>
                <th>Subject</th>
                <th>Message</th>
            </tr>
        </thead>
        <tbody>
            {% for enquiry in enquiries %}
            <tr>
                <td>{{ forloop.counter }}</td>
                <td>{{ enquiry.name }}</td>
                <td>{{ enquiry.email }}</td>
                <td>{{ enquiry.subject }}</td>
                <td>{{ enquiry.message }}</td>
        
            </tr>
            {% empty %}
            <tr>
                <td colspan="6" class="text-center">No enquiries found.</td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
</div>

{% endblock %}
