<x-head />

<header class="header">
  <nav class="navbar navbar-expand-lg">
  <div class="container">
    <a href="{{ Route('index') }}"><h1 class="logos">Мой Не Сам</h1></a>
    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarNav">
      @auth
        <div> 
            <a href="{{Route('account')}}"><button class="but">Личный кабинет</button></a>
            <a href="{{Route('logout')}}"><button class="but">Выйти</button></a>
        </div>
        @else
        <div>
          <a href="{{Route('login')}}"><button class="but">Войти</button></a>
        </div>
        @endauth
    </div>
  </div>
</nav>
</header>
