<?php if (isset($component)) { $__componentOriginal781d22988f835a9692410092c1d21cd6 = $component; } ?>
<?php $component = App\View\Components\Head::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('head'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Head::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal781d22988f835a9692410092c1d21cd6)): ?>
<?php $component = $__componentOriginal781d22988f835a9692410092c1d21cd6; ?>
<?php unset($__componentOriginal781d22988f835a9692410092c1d21cd6); ?>
<?php endif; ?>

<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="<?php echo e(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">
        <?php if(auth()->guard()->check()): ?>
          <div class="d-flex gap-2">
            <a href="<?php echo e(Route('account')); ?>" class="btn btn-outline-primary">Личный кабинет</a>
            <a href="<?php echo e(Route('logout')); ?>" class="btn btn-outline-danger">Выйти</a>
          </div>
        <?php else: ?>
          <div>
            <a href="<?php echo e(Route('login')); ?>" class="btn btn-primary">Войти</a>
          </div>
        <?php endif; ?>
      </div>
    </div>
  </nav>
</header>
<?php /**PATH C:\xampp\htdocs\MoyNeSam\resources\views/components/header.blade.php ENDPATH**/ ?>