{% extends 'admin/_layout.html.twig' %}

{% block title %}Administration - Association E-Cosplay{% endblock %}

{% block admin_content %}
<div class="page-container">
    <h1 class="text-2xl font-bold heading-page mb-8">Tableau de bord</h1>

    <div class="flex flex-col gap-6">
        <div class="glass p-6">
            <p class="text-sm text-gray-600">Bienvenue, <strong>{{ app.user.fullName }}</strong>.</p>
            <p class="text-xs text-gray-400 mt-1">
                Role :
                {% if is_granted('ROLE_ROOT') %}
                    <span class="px-2 py-0.5 bg-red-500/20 text-red-700 font-bold uppercase text-[10px]">Super Admin</span>
                {% else %}
                    <span class="px-2 py-0.5 bg-indigo-500/20 text-indigo-700 font-bold uppercase text-[10px]">Employe</span>
                {% endif %}
            </p>
        </div>
    </div>
</div>
{% endblock %}
