<x-head />

<header>
  <nav class="navbar navbar-expand-lg navbar-light bg-light shadow-sm">
    <div class="container">
      <a class="navbar-brand fs-3 fw-bold" href="{{ Route('index') }}">Мой Не Сам</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 justify-content-end" id="navbarNav">
        @auth
          <div class="d-flex gap-2">
            <a href="{{Route('account')}}" class="btn btn-outline-primary">Личный кабинет</a>
            <a href="{{Route('logout')}}" class="btn btn-outline-danger">Выйти</a>
          </div>
        @else
          <div>
            <a href="{{Route('login')}}" class="btn btn-primary">Войти</a>
          </div>
        @endauth
      </div>
    </div>
  </nav>
</header>
