<header class="navbar">
    <a href="<?php echo e(route('index')); ?>" class="logo">BuzzStream</a>
    <div class="menu-toggle">☰</div>
    <!-- <div class="menu-toggle">&#9776;</div> -->


    <nav class="nav-links">
        <a href="<?php echo e(route('index')); ?>" class="active">Home</a>
        <?php $__currentLoopData = $navCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <a href="<?php echo e(route('category.show', $category->slug)); ?>">
                <?php echo e($category->category_name); ?>

            </a>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </nav>

    <div class="nav-icons">
        <div class="search-wrapper">
            <img src="<?php echo e(asset('assets/images/search.webp')); ?>" id="searchToggle" class="search-icon" alt="Search">
            <div id="searchBox" class="search-dropdown">
                <form action="<?php echo e(route('search')); ?>" method="GET">
                    <div class="search-inner">

                        <input type="text" name="q" placeholder="Search ..." required autofocus>

                        <button type="submit">➜</button>
                    </div>
                </form>
            </div>
        </div>

        <!-- <span>☀️</span> -->
    </div>


</header>

<hr class="nav-divider">





<div class="category-bar">
    <?php $__currentLoopData = $otherCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <a href="<?php echo e(route('category.show', $category->slug)); ?>">
            <?php echo e($category->category_name); ?>

        </a>

        <?php if(!$loop->last): ?>
            <span>|</span>
        <?php endif; ?>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<?php /**PATH C:\Users\progr\Downloads\current\foxiz\foxiz\resources\views/partials/navbar.blade.php ENDPATH**/ ?>