<?php
    use App\Models\Setting;

    $cart = \App\Models\Cart::current();
    $cartCount = $cart?->items_count ?? 0;
    // Matches WishlistController@index's own whereHas('product') — a
    // wishlisted product can later be soft-deleted, and the badge should
    // never claim a count the wishlist page won't actually show.
    $wishlistCount = auth()->check() ? auth()->user()->wishlists()->whereHas('product')->count() : 0;

    $whatsapp = Setting::config('social.whatsapp_number');
    $facebook = Setting::config('social.facebook');
    // TODO: add Instagram profile URL — falls back to '#' until one is set
    // (here or via the admin Settings screen, which takes precedence).
    $instagramHref = Setting::config('social.instagram') ?: '#';
    $waLink = $whatsapp ? 'https://wa.me/'.preg_replace('/[^0-9]/', '', $whatsapp) : null;

    $navItems = [
        ['route' => 'home', 'label' => 'Home'],
        ['route' => 'shop.index', 'label' => 'Shop'],
        ['route' => 'categories.index', 'label' => 'Categories'],
        ['route' => 'shop.new-arrivals', 'label' => 'New Arrivals'],
        ['route' => 'shop.sale', 'label' => 'Sale'],
        ['route' => 'pages.contact', 'label' => 'Contact'],
        ['route' => 'pages.about', 'label' => 'About'],
    ];
?>

<div x-data="{ mobileOpen: false, searchOpen: false, scrolled: false }" x-init="scrolled = window.scrollY > 8; window.addEventListener('scroll', () => { scrolled = window.scrollY > 8 }, { passive: true })">
    
    <div class="no-print hidden bg-gradient-to-r from-ink via-charcoal to-ink text-cream/70 sm:block">
        <div class="mx-auto flex max-w-7xl items-center justify-between px-6 py-2 text-xs">
            <p class="tracking-wide">
                <?php echo e(config('niyarasa.brand_tagline')); ?>

                <?php if(Setting::config('shipping.free_shipping_threshold')): ?>
                    <span class="text-cream/25">&middot;</span>
                    <span class="font-semibold text-champagne-light">Free shipping</span> over <?php echo e(config('niyarasa.currency.symbol')); ?> <?php echo e(number_format((float) Setting::config('shipping.free_shipping_threshold'))); ?>

                <?php endif; ?>
            </p>
            <div class="flex items-center gap-5">
                <?php if(Route::has('account.orders')): ?>
                    <a href="<?php echo e(route('account.orders')); ?>" class="icon-truck flex items-center gap-1.5 font-medium tracking-wide text-champagne-light/90 transition-colors duration-200 hover:text-champagne-light">
                        <?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'truck','class' => 'h-3.5 w-3.5']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'truck','class' => 'h-3.5 w-3.5']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $attributes = $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $component = $__componentOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?> Track Order
                    </a>
                <?php endif; ?>
                <?php if(Route::has('account.orders')): ?>
                    <span class="h-3 w-px bg-cream/15"></span>
                <?php endif; ?>
                <div class="flex items-center gap-2.5">
                    <?php if($facebook): ?>
                        <?php if (isset($component)) { $__componentOriginal658398a0e73a18931bb7def04d911f42 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal658398a0e73a18931bb7def04d911f42 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon-button','data' => ['href' => $facebook,'target' => '_blank','rel' => 'noopener noreferrer','label' => 'Facebook','name' => 'brand-facebook','variant' => 'chip','iconClass' => 'h-3 w-3','class' => 'icon-chip--facebook min-h-8! min-w-8!']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon-button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($facebook),'target' => '_blank','rel' => 'noopener noreferrer','label' => 'Facebook','name' => 'brand-facebook','variant' => 'chip','icon-class' => 'h-3 w-3','class' => 'icon-chip--facebook min-h-8! min-w-8!']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal658398a0e73a18931bb7def04d911f42)): ?>
<?php $attributes = $__attributesOriginal658398a0e73a18931bb7def04d911f42; ?>
<?php unset($__attributesOriginal658398a0e73a18931bb7def04d911f42); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal658398a0e73a18931bb7def04d911f42)): ?>
<?php $component = $__componentOriginal658398a0e73a18931bb7def04d911f42; ?>
<?php unset($__componentOriginal658398a0e73a18931bb7def04d911f42); ?>
<?php endif; ?>
                    <?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginal658398a0e73a18931bb7def04d911f42 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal658398a0e73a18931bb7def04d911f42 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon-button','data' => ['href' => ''.e($instagramHref).'','target' => '_blank','rel' => 'noopener noreferrer','label' => 'Instagram','name' => 'brand-instagram','variant' => 'chip','iconClass' => 'h-3 w-3','gradient' => true,'class' => 'icon-chip--instagram min-h-8! min-w-8!']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon-button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['href' => ''.e($instagramHref).'','target' => '_blank','rel' => 'noopener noreferrer','label' => 'Instagram','name' => 'brand-instagram','variant' => 'chip','icon-class' => 'h-3 w-3','gradient' => true,'class' => 'icon-chip--instagram min-h-8! min-w-8!']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal658398a0e73a18931bb7def04d911f42)): ?>
<?php $attributes = $__attributesOriginal658398a0e73a18931bb7def04d911f42; ?>
<?php unset($__attributesOriginal658398a0e73a18931bb7def04d911f42); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal658398a0e73a18931bb7def04d911f42)): ?>
<?php $component = $__componentOriginal658398a0e73a18931bb7def04d911f42; ?>
<?php unset($__componentOriginal658398a0e73a18931bb7def04d911f42); ?>
<?php endif; ?>
                    <?php if($waLink): ?>
                        <?php if (isset($component)) { $__componentOriginal658398a0e73a18931bb7def04d911f42 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal658398a0e73a18931bb7def04d911f42 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon-button','data' => ['href' => $waLink,'target' => '_blank','rel' => 'noopener noreferrer','label' => 'Chat on WhatsApp','name' => 'brand-whatsapp','variant' => 'chip','iconClass' => 'h-3 w-3','class' => 'icon-chip--whatsapp min-h-8! min-w-8!']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon-button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($waLink),'target' => '_blank','rel' => 'noopener noreferrer','label' => 'Chat on WhatsApp','name' => 'brand-whatsapp','variant' => 'chip','icon-class' => 'h-3 w-3','class' => 'icon-chip--whatsapp min-h-8! min-w-8!']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal658398a0e73a18931bb7def04d911f42)): ?>
<?php $attributes = $__attributesOriginal658398a0e73a18931bb7def04d911f42; ?>
<?php unset($__attributesOriginal658398a0e73a18931bb7def04d911f42); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal658398a0e73a18931bb7def04d911f42)): ?>
<?php $component = $__componentOriginal658398a0e73a18931bb7def04d911f42; ?>
<?php unset($__componentOriginal658398a0e73a18931bb7def04d911f42); ?>
<?php endif; ?>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </div>

    
    
    <header
        class="no-print sticky top-0 z-40 border-b border-black/5 bg-ivory/90 backdrop-blur-md transition-shadow duration-300 [transform:translateZ(0)]"
        :class="scrolled ? 'shadow-[0_8px_30px_-15px_rgba(22,19,15,0.25)] bg-ivory/95' : 'shadow-[0_1px_0_rgba(22,19,15,0.03)]'"
    >
        
        <div
            class="pointer-events-none absolute inset-x-0 -bottom-px h-px bg-gradient-to-r from-transparent via-champagne to-transparent transition-opacity duration-300"
            :class="scrolled ? 'opacity-70' : 'opacity-0'"
        ></div>

        <div class="mx-auto flex max-w-7xl items-center justify-between gap-2 px-4 py-4 sm:gap-4 sm:px-6 sm:py-5">
            <button type="button" x-on:click="mobileOpen = ! mobileOpen" class="icon-btn icon-btn--on-light -ml-2.5 text-ink lg:hidden" aria-label="Open menu" aria-expanded="false" :aria-expanded="mobileOpen">
                <span class="hamburger" :class="{ 'is-open': mobileOpen }" aria-hidden="true">
                    <span></span><span></span><span></span>
                </span>
            </button>

            <a href="<?php echo e(route('home')); ?>" class="group font-display text-2xl tracking-wide text-ink transition-colors duration-300 hover:text-champagne-light">
               <img src="<?php echo e(asset('images/logo.png')); ?>" alt="<?php echo e(config('niyarasa.brand_name')); ?>" class="h-9 w-auto transition-transform duration-300 ease-out group-hover:scale-105 sm:h-10">
            </a>

            <nav class="hidden items-center gap-8 lg:flex">
                <?php $__currentLoopData = $navItems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if (isset($component)) { $__componentOriginal8502bf97cec0db0c25e404173f738d68 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8502bf97cec0db0c25e404173f738d68 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.nav-link','data' => ['route' => $item['route'],'label' => $item['label']]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('frontend.nav-link'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['route' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($item['route']),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($item['label'])]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8502bf97cec0db0c25e404173f738d68)): ?>
<?php $attributes = $__attributesOriginal8502bf97cec0db0c25e404173f738d68; ?>
<?php unset($__attributesOriginal8502bf97cec0db0c25e404173f738d68); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8502bf97cec0db0c25e404173f738d68)): ?>
<?php $component = $__componentOriginal8502bf97cec0db0c25e404173f738d68; ?>
<?php unset($__componentOriginal8502bf97cec0db0c25e404173f738d68); ?>
<?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </nav>

            <div class="flex items-center gap-0.5 sm:gap-2">
                <button type="button" x-on:click="searchOpen = ! searchOpen" class="icon-btn icon-btn--on-light icon-search text-ink/70" aria-label="Search" aria-expanded="false" :aria-expanded="searchOpen">
                    <?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'search']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'search']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $attributes = $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $component = $__componentOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
                </button>

                <a href="<?php echo e(Route::has('wishlist.index') ? route('wishlist.index') : '#'); ?>" class="icon-btn icon-btn--on-light text-ink/70" aria-label="Wishlist">
                    <?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'heart']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'heart']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $attributes = $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $component = $__componentOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
                    <span
                        data-wishlist-count
                        class="icon-badge <?php echo e($wishlistCount ? '' : 'hidden'); ?>"
                    ><?php echo e($wishlistCount); ?></span>
                </a>

                <a href="<?php echo e(Route::has('cart.index') ? route('cart.index') : '#'); ?>" class="icon-btn icon-btn--on-light text-ink/70" aria-label="Cart">
                    <?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'shopping-bag']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'shopping-bag']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $attributes = $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $component = $__componentOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
                    <span
                        data-cart-count
                        class="icon-badge <?php echo e($cartCount ? '' : 'hidden'); ?>"
                    ><?php echo e($cartCount); ?></span>
                </a>

                <?php if(auth()->guard()->check()): ?>
                    <div class="relative" x-data="{ open: false }">
                        <button type="button" x-on:click="open = ! open" x-on:click.outside="open = false" class="icon-btn icon-btn--on-light text-ink/70" aria-label="Account" aria-expanded="false" :aria-expanded="open">
                            <?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'circle-user','class' => 'h-5.5 w-5.5']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'circle-user','class' => 'h-5.5 w-5.5']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $attributes = $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $component = $__componentOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
                        </button>
                        <div
                            x-show="open" x-cloak
                            x-transition:enter="transition ease-out duration-200" x-transition:enter-start="opacity-0 -translate-y-1" x-transition:enter-end="opacity-100 translate-y-0"
                            class="absolute right-0 z-50 mt-3 w-48 overflow-hidden rounded-xl border border-black/5 bg-white py-2 shadow-luxury"
                        >
                            <p class="truncate px-4 py-1.5 text-xs text-ink/40"><?php echo e(auth()->user()->name); ?></p>
                            <?php if(Route::has('account.orders')): ?>
                                <a href="<?php echo e(route('account.orders')); ?>" class="block px-4 py-2 text-sm text-ink/70 transition-colors hover:bg-champagne/10 hover:text-ink">My Orders</a>
                            <?php endif; ?>
                            <form method="POST" action="<?php echo e(route('logout')); ?>">
                                <?php echo csrf_field(); ?>
                                <button type="submit" class="block w-full px-4 py-2 text-left text-sm text-maroon transition-colors hover:bg-maroon/5">Sign Out</button>
                            </form>
                        </div>
                    </div>
                <?php else: ?>
                    <a href="<?php echo e(route('login')); ?>" class="icon-btn icon-btn--on-light text-ink/70" aria-label="Sign in">
                        <?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'circle-user','class' => 'h-5.5 w-5.5']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'circle-user','class' => 'h-5.5 w-5.5']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $attributes = $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $component = $__componentOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
                    </a>
                <?php endif; ?>
            </div>
        </div>

        
        <div
            x-show="searchOpen" x-cloak x-on:click.outside="searchOpen = false"
            x-transition:enter="transition ease-out duration-250" x-transition:enter-start="opacity-0 -translate-y-2" x-transition:enter-end="opacity-100 translate-y-0"
            class="border-t border-black/5 bg-white"
        >
            <form action="<?php echo e(Route::has('shop.index') ? route('shop.index') : '#'); ?>" method="GET" class="mx-auto flex max-w-2xl items-center gap-3 px-6 py-4">
                <?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'search','class' => 'h-4 w-4 shrink-0 text-ink/30']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'search','class' => 'h-4 w-4 shrink-0 text-ink/30']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $attributes = $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $component = $__componentOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
                <input
                    type="search" name="search" placeholder="Search for lawn suits, embroidered kurtis…" autofocus
                    class="w-full border-0 bg-transparent text-sm text-ink placeholder-ink/30 focus:outline-none focus:ring-0"
                >
            </form>
        </div>
    </header>

    
    <div x-show="mobileOpen" x-cloak class="no-print fixed inset-0 z-50 lg:hidden">
        <div x-show="mobileOpen" x-transition.opacity x-on:click="mobileOpen = false" class="absolute inset-0 bg-ink/50"></div>
        <div x-show="mobileOpen" x-transition:enter="transition ease-out duration-300" x-transition:enter-start="-translate-x-full" x-transition:enter-end="translate-x-0" class="relative flex h-full w-72 flex-col bg-ivory p-6">
            <div class="mb-8 flex items-center justify-between">
                <span class="font-display text-xl text-ink"><?php echo e(config('niyarasa.brand_name')); ?></span>
                <button type="button" x-on:click="mobileOpen = false" class="icon-btn icon-btn--on-light text-ink/50" aria-label="Close menu">
                    <?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'x']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'x']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $attributes = $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $component = $__componentOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
                </button>
            </div>
            <nav class="flex flex-col gap-5">
                <?php $__currentLoopData = $navItems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if (isset($component)) { $__componentOriginal8502bf97cec0db0c25e404173f738d68 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8502bf97cec0db0c25e404173f738d68 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.nav-link','data' => ['route' => $item['route'],'label' => $item['label']]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('frontend.nav-link'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['route' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($item['route']),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($item['label'])]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8502bf97cec0db0c25e404173f738d68)): ?>
<?php $attributes = $__attributesOriginal8502bf97cec0db0c25e404173f738d68; ?>
<?php unset($__attributesOriginal8502bf97cec0db0c25e404173f738d68); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8502bf97cec0db0c25e404173f738d68)): ?>
<?php $component = $__componentOriginal8502bf97cec0db0c25e404173f738d68; ?>
<?php unset($__componentOriginal8502bf97cec0db0c25e404173f738d68); ?>
<?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </nav>

            <?php if(Route::has('account.orders')): ?>
                <a href="<?php echo e(route('account.orders')); ?>" class="btn btn-outline btn-sm mt-8 gap-2">
                    <?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'truck','class' => 'h-3.5 w-3.5']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'truck','class' => 'h-3.5 w-3.5']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $attributes = $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $component = $__componentOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?> Track Order
                </a>
            <?php endif; ?>
        </div>
    </div>
</div>
<?php /**PATH C:\xampp\htdocs\ecommerce\resources\views/components/frontend/header.blade.php ENDPATH**/ ?>