<header class="bd-header mb-2 mb-md-3">
    
    <div class="bd-topbar">
        <div class="container d-flex align-items-center gap-3">
            
            <a href="<?php echo e(url('/')); ?>" class="bd-logo d-flex align-items-center text-decoration-none">
                <img src="<?php echo e(getimage(getOption('logo'))); ?>" alt="Logo">
                <span></span>
            </a>

            
            <form action="<?php echo e(url('/search')); ?>" method="GET"
                  class="bd-search-form ms-auto flex-grow-1 d-flex align-items-center gap-1">
                <input type="text"
                       name="q"
                       class="form-control form-control-sm bd-search-input"
                       placeholder="খুঁজুন পণ্য, ক্যাটেগরি, ব্র্যান্ড...">
                <button class="btn btn-sm bd-search-btn" type="submit">
                    Search
                </button>
            </form>

            
            <div class="d-flex align-items-center gap-3 ms-2">
                <div class="bd-hotline text-end d-none d-md-block">
                    <small class="d-block">কল করে অর্ডার করুন</small>
                    <span><?php echo e(getOption('phone') ?: '01611 785 151'); ?></span>
                </div>

                <?php if(Route::has('login')): ?>
                    <?php if(auth()->guard()->check()): ?>
                        <a href="<?php echo e(url('/dashboard')); ?>" class="btn btn-outline-secondary btn-sm bd-user-btn">
                            My Account
                        </a>
                    <?php else: ?>
                        <a href="<?php echo e(route('login')); ?>" class="btn btn-outline-secondary btn-sm bd-user-btn">
                            Login
                        </a>
                    <?php endif; ?>
                <?php endif; ?>
            </div>
        </div>
    </div>

    
    <nav class="bd-mainnav">
        <div class="container">
            <ul class="nav bd-mainnav-list">
                
                <li class="nav-item">
                    <a href="<?php echo e(url('/')); ?>"
                       class="nav-link <?php echo e(request()->routeIs('home') ? 'active' : ''); ?>">
                        Home
                    </a>
                </li>

                
                <?php if(isset($menus)): ?>
                    <?php $__currentLoopData = $menus; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $menu): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php
                            // route parameter 'slug' = /category/{slug}
                            $menuSlug = $menu->slug ?? null;
                            $isActiveCategory = request()->routeIs('main-menu-products')
                                && request()->route('slug') === $menuSlug;
                        ?>

                        <li class="nav-item">
                            <a href="<?php echo e($menuSlug ? route('main-menu-products', $menuSlug) : '#'); ?>"
                               class="nav-link text-capitalize <?php echo e($isActiveCategory ? 'active' : ''); ?>">
                                <?php echo e($menu->name); ?>

                            </a>
                        </li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php endif; ?>
            </ul>
        </div>
    </nav>
</header>
<?php /**PATH /home/emdadtwa/sefcard.com/resources/views/frontend/layouts/header.blade.php ENDPATH**/ ?>