{% extends 'base.html' %}
{% block content%}

<div class="container-fluid px-4 pt-2">
    <div class="card mb-4">
        <div class="card-header">
            <i class="fas fa-table me-1"></i>
            Overdue Book Loans
        </div>
        <div class="card-body">
            <table id="datatablesSimple">
                <thead >
                    <tr>
                        <th>Book Title</th>
                        <th>Member Name</th>
                        <th>Loan Date</th>
                        <th>Due Date</th>
                        <th>Overdue Date</th>
                    </tr>
                </thead>
                <tfoot>
                    <tr>
                        <th>Book Title</th>
                        <th>Member Name</th>
                        <th>Loan Date</th>
                        <th>Due Date</th>
                        <th>Overdue Date</th>
                    </tr>
                </tfoot>
                <tbody>
                    {% for loan in over_due %}
                        <tr>
                            <td>{{ loan.book.title }}</td>
                            <td>{{ loan.member.name }}</td>
                            <td>{{ loan.loan_date }}</td>
                            <td>{{ loan.due_date }}</td>
                            <td>{{ loan.dead}}</td>
                        </tr>
                    {% endfor %}
                </tbody>
            </table>
        </div>
    </div>  
</div>

{% endblock content %}
