<html>
<header class="header">
    <div class="container">
        <a href="<?php echo e(Route('index')); ?>" class="logos"><h1>NaruNet</h1></a>
        <?php if(auth()->guard()->guest()): ?>
        <a href="<?php echo e(Route('login')); ?>"><button class="but">Войти</button></a>
        <?php endif; ?>

        <?php if(auth()->guard()->check()): ?>
        <div>
            <?php if(Auth::user()->role == 'admin'): ?>
            <a href="<?php echo e(Route('adminpanel')); ?>"><button class="but">Панель админа</button></a>
            <?php else: ?>
            <a href="<?php echo e(Route('statements')); ?>"><button class="but">Мои заявления</button></a>
            <?php endif; ?>
            <a href="<?php echo e(Route('logout')); ?>"><button class="but">Выйти</button></a>
        </div>
        <?php endif; ?>
        
    </div>
</header>
</html><?php /**PATH C:\xampp\htdocs\narunet1\resources\views/components/header.blade.php ENDPATH**/ ?>