<aside class="main-sidebar">

    <section class="sidebar">
        <div class="user-panel">
            <div class="pull-left image">
                {% if app.user.photo is not null %}
                    {% set profilPic = app.user.photo %}
                {% else %}
                    {% set profilPic = "/img/Logo-header.png" %}
                {% endif %}

                <img src="{{ profilPic }}" class="img-circle" alt="User Image">
            </div>
            <div class="pull-left info">
                <p>{{ app.user.firstname }} {{ app.user.lastname }}</p>
            </div>
        </div>

        <ul class="sidebar-menu">
            <li class="header">MODERATION</li>
            <li>
                <a href="{{ path('admin_ad_moderation_list') }}">
                    <i class="fa fa-file-video-o" aria-hidden="true"></i> <span>Annonces</span>
                </a>
            </li>
            <li>
                <a href="{{ path('admin_video_moderation_list') }}">
                    <i class="fa fa-file-video-o" aria-hidden="true"></i> <span>Vidéos Talent</span>
                </a>
            </li>
            <li>
                <a href="{{ path('admin_anwser_moderation_list') }}">
                    <i class="fa fa-file-video-o" aria-hidden="true"></i> <span>Candidatures</span>
                </a>
            </li>
        </ul>
        <ul class="sidebar-menu">
            <li class="header">ENTITEES</li>
            <li class="treeview">
                <a href="#"><i class="fa fa-file-video-o"></i> <span>Annonces</span>
                    <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                </a>
                <ul class="treeview-menu">
                    <li><a href="{{ path('admin_ad_list') }}">Toutes</a></li>
                    <li><a href="{{ path('admin_ad_list', {'status':'PUBLISHED'}) }}">Publiées</a></li>
                    <li><a href="{{ path('admin_ad_list', {'status':'DRAFT'}) }}">Brouillon</a></li>
                </ul>
            </li>
            <li>
                <a href="{{ path('admin_config_company') }}">
                    <i class="fa fa-building-o" aria-hidden="true"></i> <span>Entreprises</span>
                </a>
            </li>
            <li>
                <a href="{{ path('admin_config_talent') }}">
                    <i class="fa fa-user-circle" aria-hidden="true"></i><span>Talents</span>
                </a>
            </li>
            <li>
                <a href="{{ path('admin_config_recommendations') }}">
                    <i class="fa fa-thumbs-up" aria-hidden="true"></i><span>Recommandations</span>
                </a>
            </li>
            <li>
                <a href="{{ path('admin_config_territory') }}">
                    <i class="fa fa-map-marker" aria-hidden="true"></i><span>Territoires</span>
                </a>
            </li>
            <li>
                <a href="{{ path('admin_page_list') }}">
                    <i class="fa fa-file-text-o" aria-hidden="true"></i><span>Pages</span>
                </a>
            </li>
            <li class="treeview">
                <a href="#"><i class="fa fa-users" aria-hidden="true"></i> <span>Utilisateurs</span>
                    <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                </a>
                <ul class="treeview-menu">
                    <li><a href="{{ path('admin_config_users') }}">Liste</a></li>
                    <li><a href="{{ path('admin_user_add') }}">Ajouter</a></li>
                </ul>
            </li>
        </ul>
    </section>
</aside>