<html>
<header class="header">
    <div class="container">
        <a href="{{Route('index')}}" class="logos"><h1>NaruNet</h1></a>
        @guest
        <a href="{{Route('login')}}"><button class="but">Войти</button></a>
        @endguest

        @auth
        <div>
            @if (Auth::user()->role == 'admin')
            <a href="{{Route('adminpanel')}}"><button class="but">Панель админа</button></a>
            @else
            <a href="{{Route('statements')}}"><button class="but">Мои заявления</button></a>
            @endif
            <a href="{{Route('logout')}}"><button class="but">Выйти</button></a>
        </div>
        @endauth
        
    </div>
</header>
</html>