<nav x-data="{ open: false }" @click.away="open = false" class="bg-white border-b border-gray-200 sticky top-0 z-40 shadow-sm">
    <div class="container-custom">
        <div class="flex items-center justify-between h-16">
            <a href="<?php echo e(route('home')); ?>" class="flex items-center gap-2">
                <div class="w-9 h-9 rounded-lg bg-primary-500 text-white flex items-center justify-center font-bold">IPA</div>
                <span class="font-bold text-lg hidden sm:inline">Pemanfaatan Aset</span>
            </a>

            <div class="hidden lg:flex items-center gap-1">
                <?php
                    $menus = [
                        ['route' => 'home', 'label' => 'Beranda'],
                        ['route' => 'assets.index', 'label' => 'Daftar Aset'],
                        ['route' => 'map', 'label' => 'Peta Aset'],
                        ['route' => 'faq', 'label' => 'FAQ'],
                        ['route' => 'about', 'label' => 'Tentang'],
                        ['route' => 'contact', 'label' => 'Kontak'],
                    ];
                ?>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $menus; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $menu): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <a href="<?php echo e(route($menu['route'])); ?>"
                        class="px-4 py-2 text-sm font-medium rounded-lg transition-colors <?php echo e(request()->routeIs($menu['route']) ? 'text-primary-600 bg-primary-50' : 'text-gray-700 hover:text-primary-600 hover:bg-gray-50'); ?>">
                        <?php echo e($menu['label']); ?>

                    </a>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>

            <div class="hidden lg:block">
                <a href="<?php echo e(route('assets.index')); ?>" class="btn-primary text-sm">
                    Cari Aset
                </a>
            </div>

            <button @click="open = !open" :aria-expanded="open" class="lg:hidden p-2 rounded-lg hover:bg-gray-100" aria-label="Toggle menu">
                <svg x-show="!open" class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"/>
                </svg>
                <svg x-show="open" class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" x-cloak>
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"/>
                </svg>
            </button>
        </div>

        <div x-show="open" x-transition.opacity class="lg:hidden pb-4" x-cloak>
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $menus; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $menu): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <a href="<?php echo e(route($menu['route'])); ?>"
                    class="block px-4 py-2.5 text-sm font-medium rounded-lg <?php echo e(request()->routeIs($menu['route']) ? 'text-primary-600 bg-primary-50' : 'text-gray-700 hover:bg-gray-50'); ?>">
                    <?php echo e($menu['label']); ?>

                </a>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        </div>
    </div>
</nav><?php /**PATH C:\xampp\htdocs\ipa\resources\views/public/partials/navbar.blade.php ENDPATH**/ ?>