<header class="fixed w-full z-40">
<div class="bg-blue-900 px-10">
<div class="flex {% if page_title is defined and page_title == "Page d'accueil" %}justify-end{% else %}justify-between{% endif %} gap-2 text-white py-2">
{% block breadcrumbs %}
{{ render(controller(
'App\\Controller\\BreadcrumbController::Breadcrumbs', { }
)) }}
{% endblock %}
<div class="flex items-center gap-3">
<div x-data="{ open: false }" class="flex items-center md:order-2">
<button @click="open = ! open" type="button" class="relative flex mr-3 text-sm bg-gray-800 rounded-full md:mr-0 focus:outline-none" id="user-menu-button" aria-expanded="false" data-dropdown-toggle="user-dropdown" data-dropdown-placement="bottom">
<img class="w-8 h-8 rounded-full" src="{{asset('assets/img/profil.jpg')}}" alt="">
<span class="top-0 left-7 absolute w-2 h-2 mx-1 bg-blue-300 rounded-full"></span>
<div x-show="open" @click.away="open = ! open" x-transition class="absolute py-3 px-4.5 rounded-lg bg-white shadow-lg border right-0 top-8">
<a href="{{path('logout')}}" class="py-1.5 whitespace-nowrap px-5 bg-gray-100 hover:bg-gray-50 text-gray-600">Se déconnecter</a>
</div>
</button>
</div>
<div class="lg:inline-flex lg:flex-row lg:ml-auto lg:w-auto w-full lg:items-center flex flex-col lg:h-auto">
<span>
{% if app.user %}
Connecté en tant que
{{ app.user.name }}
{% endif %}
</span>
</div>
</div>
</div>
</div>
<div class="w-full bg-gray-600 h-2"></div>
<div class="w-full bg-blue-500 flex justify-center items-center text-white relative" style="z-index: -1;">
<img class="max-w-8xl mx-auto h-full relative" src="{{asset('assets/Icon/Barre Bleue.svg')}}" alt="" style="height:4.5rem;">
{# {% if app.user.logo is not null %} #}
{% if app.user.logo is not empty %}
<img class="left-8 absolute" src="{{asset( 'assets/logo/' ~ app.user.logo )}}" alt="" style="height:4rem;">
{% endif %}
{% if page_title is defined %}
<h1 class="text-2xl absolute font-semibold">{{ page_title }}</h1>
{% else %}
<h1 class="text-2xl absolute font-semibold">Nom de la page à définir dans le controller</h1>
{% endif %}
</div>
</header>
<main class="pt-36 bg-gray-200 mx-auto w-full">