{% extends 'GestionBundle:Layout:baseAdmin.html.twig' %}


{% block content %}
    <nav class="navbar navbar-fixed-top navbar-dark bg-inverse">
        <a class="navbar-brand" href="{{path('admin_homepage')}}" style="margin-right: 100px">GPC : Espace Admin</a>
        <ul class="nav navbar-nav">
            <li class="nav-item">
                <a class="nav-link" href="{{path('composant_index')}}">Composant Logiciel<span class="sr-only">(current)</span></a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="{{path('produit_index')}}">Produit Logiciel</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="{{path('version_index')}}">Version Composant</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="{{path('version_produit_index')}}">Version Produit</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="{{path('admin_homepage_users')}}">Utilisateur</a>
            </li>
            <li class="nav-item">
                <a style="margin-left: 150px;" class="nav-link" href="{{ path('fos_user_security_logout') }}">Déconnexion</a>
            </li>
        </ul>
    </nav>

    <div class="container">
        <div class="starter-template">
            <h1>Bienvenue {{app.user.username}} </h1>
            <p class="lead">Dernière connexion pour vous : {{ app.user.lastLogin|date('Y-m-d H:i:s')}}</p>
        </div>

    </div>
{% endblock content %}