<header class="header-global">
<nav id="navbar-main"
class="navbar navbar-main navbar-expand-lg navbar-transparent navbar-dark navbar-theme-primary headroom py-lg-2 px-lg-6">
<div class="container">
<a class="navbar-brand" href="{{ path('index') }}">
<img class="navbar-brand-dark" src="{{ asset('logo-white.png') }}" alt="Logo light">
<img class="navbar-brand-light" src="{{ asset('logo.png') }}" alt="Logo dark">
</a>
<div class="navbar-collapse collapse" id="navbar_global">
<div class="navbar-collapse-header">
<div class="row">
<div class="col-6 collapse-brand"><a href="{{ path('index') }}"><img
src="{{ asset('logo.png') }}" alt="menuimage"></a></div>
<div class="col-6 collapse-close"><a href="#navbar_global" class="fas fa-times"
data-toggle="collapse" data-target="#navbar_global"
aria-controls="navbar_global" aria-expanded="false"
aria-label="Toggle navigation"></a></div>
</div>
<ul class="navbar-nav navbar-nav-hover ml-3">
<li class="nav-item">
<a href="{{ path('devenir_professionnel_clinique') }}" class="nav-link">
<span class="nav-link-inner-text">Vous êtes un Professionnel ?</span>
</a>
{% if app.user is null %}
<a href="{{ path('patient_dashboard') }}" class="nav-link">
<span class="nav-link-inner-text">Accès patient
</span>
</a>
<a href="{{ path('personal_staff_dashboard') }}" class="nav-link">
Accès Personnel médical
</a>
{% endif %}
{% if is_granted('ROLE_USER') %}
<a href="{{ path('patient_dashboard') }}" class="nav-link">
Dashboard
</a>
{% endif %}
{% if is_granted('ROLE_MEDICAL_STAFF') %}
<a href="{{ path('personal_staff_dashboard') }}" class="nav-link">
Dashboard
</a>
{% endif %}
{% if is_granted('ROLE_CLINICAL') %}
<a href="{{ path('personal_staff_dashboard') }}" class="nav-link">
Dashboard
</a>
{% endif %}
</li>
</ul>
</div>
</div>
<div class="d-none d-lg-block">
{# <a href="{{ path('devenir_professionnel_clinique') }}" class="btn btn-success animate-up-1 ml-3">#}
{# Vous êtes un Professionnel ?#}
{# </a>#}
{# {% if app.request.getHttpHost() == 'clinical.'~ app.request.server.get('WEBSITE_URL') %}#}
{# <a href="{{ path('devenir_professionnel_clinique') }}" class="btn btn-secondary animate-up-1 ml-3">#}
{# Accès Clinique#}
{# </a>#}
{# {% elseif app.request.getHttpHost() == 'medecin.'~ app.request.server.get('WEBSITE_URL') %}#}
{# <a href="{{ path('devenir_professionnel_clinique') }}" class="btn btn-secondary animate-up-1 ml-3">#}
{# Accès Personnel médical#}
{# </a>#}
{# {% endif %}#}
{% if is_granted('ROLE_USER') %}
<a href="{{ path('patient_dashboard') }}" class="btn btn-light animate-up-1 ml-3">
Tableau de bord
</a>
{% endif %}
{% if is_granted('ROLE_MEDICAL_STAFF') %}
<a href="{{ path('personal_staff_dashboard') }}" class="btn btn-secondary animate-up-1 ml-3">
Tableau de bord
</a>
{% endif %}
{% if is_granted('ROLE_CLINICAL') %}
<a href="{{ path('personal_staff_dashboard') }}" class="btn btn-secondary animate-up-1 ml-3">
Tableau de bord
</a>
{% endif %}
{% if app.user is null %}
<a href="{{ path('patient_dashboard') }}" class="btn btn-light animate-up-1 ml-3">
Accès patient
</a>
<a href="{{ path('personal_staff_dashboard') }}" class="btn btn-secondary animate-up-1 ml-3">
Accès Personnel médical
</a>
{% endif %}
</div>
<div class="d-flex align-items-center">
<button class="navbar-toggler ml-2" type="button" data-toggle="collapse" data-target="#navbar_global"
aria-controls="navbar_global" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</div>
</div>
</nav>
</header>