{% extends "base.html" %} {% block title %}{% trans %}User Profile{% endtrans %} - Edu-Space Admin{% endblock %} {% block content %}

{% trans %}My Profile{% endtrans %}

{% trans %}Dashboard{% endtrans %}

{{ current_user.name }}

{{ current_user.role }} {% if current_user.is_active %} {% trans %}Active{% endtrans %} {% else %} {% trans %}Inactive{% endtrans %} {% endif %}

{{ current_user.email }}
{{ current_user.name }}
{{ current_user.role }}
{% if current_user.last_login %} {{ current_user.last_login.strftime('%Y-%m-%d %H:%M:%S') }} {% else %} {% trans %}First login{% endtrans %} {% endif %}
{% if current_user.created_at %} {{ current_user.created_at.strftime('%Y-%m-%d') }} {% else %} - {% endif %}

{% trans %}If set, this language overrides the browser configuration for all your sessions.{% endtrans %}

{% if current_user.reservations %}
{% trans %}My Recent Reservations{% endtrans %}
{% for res in current_user.reservations[:5] %} {% endfor %}
{% trans %}Classroom{% endtrans %} {% trans %}Purpose{% endtrans %} {% trans %}Date & Time{% endtrans %} {% trans %}Status{% endtrans %}
{{ res.classroom.code_display if res.classroom else 'N/A' }} {{ res.purpose }} {{ res.start_time.strftime('%Y-%m-%d %H:%M') }} {{ res.status }}
{% endif %}
{% endblock %}