{% extends 'gakusei/list-layout.html' %}

    {% block card-title %}Listado de Pagos{% endblock %}

    {% block create-url %}{% url 'pagos-create' %}{% endblock %}
    {% block create-text %}Registrar Pago{% endblock %}


    {% block filter-url %}{% url 'pagos-filter' %}{% endblock %}


    {% block thead %}
        <th>Fecha Registro</th>
        <th>Clase</th>
        <th>Estudiante</th>
        <th>Método</th>
        <th>Monto</th>
        <th></th>
    {% endblock %}

    {% block tbody %}
        {% for pago in object_list %}
            <tr>
                <td>{{pago.fecha|date:"d/m/y f a"}}</td>
                <td>{{pago.clase}}</td>
                <td>{{pago.estudiante}}</td>
                <td>{{pago.metodo}}</td>
                <td>${{pago.monto_pagado}}</td>
                <td class="text-center align-middle"><a href="{% url 'pagos-detail' pago.pk %}"><i class="fs-4 fa-solid fa-eye"></i></a></td>
            </tr>
        {% empty %}
            <tr>
                <td colspan="6" class="text-center fw-bold fst-italic">Sin Registros</td>
            </tr>
        {% endfor %}
    {% endblock %}