{% trans_default_domain 'layout' %}
<div class="navbar-collapse navbar-desktop">
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link text-white" href="{{ path('advert_list') }}">
<i class="fas fa-search mr-1"></i>
{{ 'navbar.advert.list.offers'|trans }}
</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="{{ path('advert_demand_list') }}">
<i class="fas fa-search mr-1"></i>
{{ 'navbar.advert.list.demands'|trans }}
</a>
</li>
{# {% if not app.user.teacher %}#}
{# <li class="nav-item">#}
{# <a class="nav-link text-white bold" href="{{ path('become_teacher') }}">{{ 'navbar.becomeTeacher'|trans }}</a>#}
{# </li>#}
{# {% endif %}#}
<li class="nav-item">
<a class="nav-link text-white" href="{{ path('advert_add_crossroad') }}">
<i class="fas fa-plus-circle text-secondary"></i>
<span class="pl-1">{{ 'navbar.advert.addOfferOrDemand'|trans }}</span>
</a>
</li>
{# <li class="nav-item">#}
{# <a class="nav-link text-white" href="{{ path('advert_offer_add') }}">#}
{# <i class="fas fa-plus-circle text-secondary"></i>#}
{# <span class="pl-1">{{ 'navbar.advert.add'|trans }}</span>#}
{# </a>#}
{# </li>#}
</ul>
{% else %}
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link text-white" href="{{ path('advert_list') }}">
<i class="fas fa-search mr-1"></i>
{{ 'navbar.advert.list.offers'|trans }}
</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="{{ path('advert_demand_list') }}">
{{ 'navbar.advert.list.demands'|trans }}
</a>
</li>
{# <li class="nav-item">#}
{# <a class="nav-link text-white bold" href="{{ path('become_teacher') }}">{{ 'navbar.becomeTeacher'|trans }}</a>#}
{# </li>#}
<li class="nav-item">
<a class="nav-link text-white" href="{{ path('advert_add_crossroad') }}">
<i class="fas fa-plus-circle text-secondary"></i>
<span class="pl-1">{{ 'navbar.advert.addOfferOrDemand'|trans }}</span>
</a>
</li>
{# <li class="nav-item">#}
{# <a class="nav-link text-white" href="{{ path('advert_offer_add') }}">#}
{# <i class="fas fa-plus-circle text-secondary"></i>#}
{# <span class="pl-1">{{ 'navbar.advert.add'|trans }}</span>#}
{# </a>#}
{# </li>#}
</ul>
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link text-white" href="{{ path('register') }}">{{ 'navbar.user.register'|trans }}</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="{{ path('login') }}">{{ 'navbar.user.login'|trans }}</a>
</li>
</ul>
{% endif %}
</div>