{% if messages %}
{% for message in messages %}

{{ message|safe }}

{% endfor %}
{% endif %}

👋 Welcome, {{ student.firstname }}

{% if student.googleclassemail %}

Google Classroom Email: {{ student.googleclassemail }}

Password: {{ student.resettoken }}

{% else %}

⚠️ Enroll to get Google Classroom email.

{% endif %}

Student Code: {{ student.studentcode }}

Enrolled Courses

{% if courses %}
{% for course in courses %}
{% if course.courseimage %} {{ course.name }} {% else %}
{% endif %}

{{ course.name }}

{{ course.description|truncatewords:12 }}
{{ course.start_date|date:"M d" }}
{% if course.class_link %} Start Learning {% else %}
Link unavailable
{% endif %}
{% endfor %}
{% else %}

You have not enrolled in any courses yet. Browse courses and enroll to start learning!

{% endif %}