{% extends 'base.html' %}

{% block content %}
<div class="container">
    <h1 class="my-4">Student Dashboard</h1>
    <div class="list-group">
        {% for assignment in assignments %}
            <a href="{% url 'core:assignment_detail' assignment.id %}" class="list-group-item list-group-item-action">
                <div class="d-flex w-100 justify-content-between">
                    <h5 class="mb-1">{{ assignment.title }}</h5>
                    <small>Due: {{ assignment.due_date }}</small>
                </div>
                <p class="mb-1">{{ assignment.description }}</p>
            </a>
        {% endfor %}
    </div>
</div>
{% endblock %}
