{% extends 'base.html.twig' %}

{% block title %}Profil{% endblock %}

{% block body %}
    <div class="container mx-auto px-4 py-6">
        <h1 class="text-2xl font-bold mb-4">Profil</h1>

        <!-- Vue spécifique pour le stagiaire -->
        {% if 'ROLE_INTERN' in app.user.roles %}
            {% include 'profile/intern.html.twig' %}
        {% endif %}

        <!-- Vue spécifique pour l'employé -->
        {% if 'ROLE_EMPLOYEE' in app.user.roles %}
            {% include 'profile/employee.html.twig' %}
        {% endif %}

        {% if 'ROLE_ADMIN' in app.user.roles%}
            <div>
                <h1 class="text-4xl font-bold ml-kdn "> Vous etes admin</h1>
                <br>
                <div>
                    <a class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full"
                       href="{{ path('app_degree_index') }}"> Gestion des diplômes
                    </a>
                </div>
                <br>
                <div>
                    <a class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full"
                       href="{{ path('app_skill_index') }}"> Gestion des compétences
                    </a>
                </div>
                <br>
                <div>
                    <a class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full"
                       href="{{ path('app_company_index') }}"> Gestion des entreprises
                    </a>
                </div>
                <br>
                <div>
                    <a class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full"
                       href="{{ path('app_faq_index') }}"> Gestion des FAQ
                    </a>
                </div>
            </div>
        {% endif %}
    </div>
{% endblock %}
