<header class="header py-6">
<div class="container mx-auto flex justify-between items-center">
<a class="header__logo" href="/">
<img class="logo-img" src="/images/logo.svg" alt="">
</a>
@if (Route::has('login'))
<div class="buttons flex items-center">
@auth
<a href="{{ route('profile.show', Auth::user()->id) }}" class="button__reg font-sans font-normal text-base text-blue-500 border border-blue-500 rounded-lg px-4 py-2 ml-4 shadow-md transition duration-500 ease-in-out hover:bg-blue-500 hover:text-white">{{ __('В кабинет') }}</a>
@else
<a href="{{ route('login') }}" class="button__enter font-sans font-normal text-base text-blue-500 border border-blue-500 rounded-lg px-4 py-2 shadow-md transition duration-500 ease-in-out hover:bg-blue-500 hover:text-white">{{ __('Вход') }}</a>
@if (Route::has('register'))
<a href="{{ route('register') }}" class="button__reg font-sans font-normal text-base text-blue-500 border border-blue-500 rounded-lg px-4 py-2 ml-4 shadow-md transition duration-500 ease-in-out hover:bg-blue-500 hover:text-white">{{ __('Регистрация') }}</a>
@endif
@endauth
</div>
@endif
</div>
</header>
@else
для @auth
?@auth
// ...
@endauth
@guest
// ...
@endguest
@if (Route::has('login'))
@if (Route::has('register'))
<header class="header py-6">
<div class="container mx-auto flex justify-between items-center">
<a class="header__logo" href="/">
<img class="logo-img" src="/images/logo.svg" alt="">
</a>
@if (Route::has('login'))
<div class="buttons flex items-center">
@auth
<a href="{{ route('profile.show', Auth::user()->id) }}" class="button__reg font-sans font-normal text-base text-blue-500 border border-blue-500 rounded-lg px-4 py-2 ml-4 shadow-md transition duration-500 ease-in-out hover:bg-blue-500 hover:text-white">{{ __('В кабинет') }}</a>
@else
<a href="{{ route('login') }}" class="button__enter font-sans font-normal text-base text-blue-500 border border-blue-500 rounded-lg px-4 py-2 shadow-md transition duration-500 ease-in-out hover:bg-blue-500 hover:text-white">{{ __('Вход') }}</a>
@if (Route::has('register'))
<a href="{{ route('register') }}" class="button__reg font-sans font-normal text-base text-blue-500 border border-blue-500 rounded-lg px-4 py-2 ml-4 shadow-md transition duration-500 ease-in-out hover:bg-blue-500 hover:text-white">{{ __('Регистрация') }}</a>
@endif
@endauth
</div>
@endif
</div>
</header>