{% 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>
            Librarian Login History List
        </div>
        <div class="card-body">
            <table id="datatablesSimple">
                <thead >
                    <tr>
                        <th>Librarian</th>
                        <th>Login Time</th>
                    </tr>
                </thead>
                <tfoot>
                    <tr>
                        <th>Librarian</th>
                        <th>Login Time</th>
                </tfoot>
                <tbody>
                    {% for entry in login_history %}
                        <tr>
                            <td>{{ entry.librarian.username }}</td>
                            <td>{{ entry.login_time }}</td>
                        </tr>
                    {% endfor %}
                </tbody>
            </table>
        </div>
    </div>  
</div>

{% endblock content%}