<nav class="navbar navbar-expand-lg navbar-light fixed-top py-3" data-navbar-on-scroll="data-navbar-on-scroll">
<div class="container">
<a class="navbar-brand" href="{{ path('home') }}">
<img src="{{ asset('assets/img/icons/logo2.png') }}" alt="" width="150" height="150"/>
<span class="text-1000 fs-6 ms-2 fw-medium">Pfau<span class="fw-bold">PN</span></span>
</a>
<button class="navbar-toggler collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mx-auto border-bottom border-lg-bottom-0 pt-2 pt-lg-0">
<li class="nav-item">
<a class="nav-link {% if app.request.get('_route') == 'home' %}active{% endif %}"
aria-current="page"
href="{{ path('home') }}">
Startseite
</a>
</li>
<li class="nav-item">
<a class="nav-link {% if app.request.get('_route') == 'about' %}active{% endif %}"
aria-current="page"
href="{{ path('about') }}">
Über uns
</a>
</li>
<li class="nav-item">
<a class="nav-link {% if app.request.get('_route') == 'leistung' %}active{% endif %}"
aria-current="page"
href="{{ path('leistung') }}">
Leistung
</a>
</li>
<li class="nav-item">
<a class="nav-link {% if app.request.get('_route') == 'preise' %}active{% endif %}"
aria-current="page"
href="{{ path('preise') }}">
Preise
</a>
</li>
<li class="nav-item">
<a class="nav-link {% if app.request.get('_route') == 'hilfe' %}active{% endif %}"
aria-current="page"
href="{{ path('hilfe') }}">
Hilfe
</a>
</li>
</ul>
<form class="d-flex py-3 py-lg-0">
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
<!-- Wenn Benutzer authentifiziert ist -->
{% if is_granted('ROLE_ADMIN') %}
<!-- Admin Button, wenn Benutzer ROLE_ADMIN hat -->
<a class="btn btn-outline-info rounded-pill order-0 me-2" href="{{ path('admin_overview') }}">Adminbereich</a>
{% endif %}
<!-- Benutzer Interface Button -->
<a class="btn btn-link text-1000 fw-medium order-1 order-lg-0" href="{{ path('user_interface') }}">
{{ app.user.email }} <!-- Benutzername anzeigen -->
</a>
<!-- Logout Button -->
<a class="btn btn-outline-danger rounded-pill order-0 ms-2" href="{{ path('app_logout') }}">Logout</a>
{% else %}
<!-- Zeige 'Anmelden' und 'Registrieren' an, wenn der Benutzer nicht eingeloggt ist -->
<a class="btn btn-link text-1000 fw-medium order-1 order-lg-0" href="{{ path('app_login') }}">Anmelden</a>
<a class="btn btn-outline-danger rounded-pill order-0 ms-2" href="{{ path('app_register') }}">Registrieren</a>
{% endif %}
</form>
</div>
</div>
</nav>