@php($u = auth()->user())
<nav class="glass fixed inset-x-0 bottom-0 z-40 flex border-t pb-[env(safe-area-inset-bottom)] md:hidden" style="border-color:var(--color-line)">
    <a href="{{ route('dashboard') }}" class="mobile-tab" @if(request()->routeIs('dashboard')) aria-current="page" @endif>
        <x-icon name="home" :size="20" /> Accueil
    </a>
    <a href="{{ route('profile') }}" class="mobile-tab" @if(request()->routeIs('profile')) aria-current="page" @endif>
        <x-icon name="trending" :size="20" /> Progression
    </a>
    @if($u?->isAdmin())
        <a href="{{ route('admin.dashboard') }}" class="mobile-tab" @if(request()->routeIs('admin.*')) aria-current="page" @endif>
            <x-icon name="shield" :size="20" /> Admin
        </a>
    @endif
    <form method="POST" action="{{ route('logout') }}" class="contents">
        @csrf
        <button type="submit" class="mobile-tab">
            <x-icon name="log-out" :size="20" /> Quitter
        </button>
    </form>
</nav>
