<?php
    $pkServices = App\Models\Service::whereHas('category', fn($q) => $q->where('slug','pakistan'))
        ->where('is_active',true)
        ->orderBy('sort_order')
        ->get();
    $intlServices = App\Models\Service::whereHas('category', fn($q) => $q->where('slug','international'))
        ->where('is_active',true)
        ->orderBy('sort_order')
        ->get();
    $siteName = App\Models\SiteSetting::getValue('site_name', 'Texora');
?>

<nav id="navbar" class="tx-site-nav" x-data="{ open: false }" aria-label="Primary navigation">
    <div class="tx-site-nav__shell">
        <a href="<?php echo e(route('home')); ?>" class="tx-site-nav__brand">
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($logo = App\Models\SiteSetting::getValue('site_logo')): ?>
                <img src="<?php echo e(asset('storage/' . $logo)); ?>" alt="<?php echo e($siteName); ?>">
            <?php else: ?>
                <span><?php echo e($siteName); ?></span>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        </a>

        <div class="tx-site-nav__links">
            <a href="<?php echo e(route('services.index')); ?>">Services</a>

            <div class="tx-site-nav__dropdown">
                <button type="button">Pakistan <span>⌄</span></button>
                <div class="tx-site-nav__menu">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__empty_1 = true; $__currentLoopData = $pkServices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $svc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                        <a href="<?php echo e(route('services.show', $svc->slug)); ?>">
                            <strong><?php echo e($svc->name); ?></strong>
                            <small><?php echo e($svc->short_description ? Illuminate\Support\Str::limit($svc->short_description, 56) : ($svc->badge ?: 'Pakistan compliance service')); ?></small>
                        </a>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                        <a href="<?php echo e(route('services.index')); ?>">
                            <strong>Pakistan Services</strong>
                            <small>Browse NTN, tax, SECP, and compliance services.</small>
                        </a>
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                </div>
            </div>

            <div class="tx-site-nav__dropdown">
                <button type="button">International <span>⌄</span></button>
                <div class="tx-site-nav__menu">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__empty_1 = true; $__currentLoopData = $intlServices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $svc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                        <a href="<?php echo e(route('services.show', $svc->slug)); ?>">
                            <strong><?php echo e($svc->name); ?></strong>
                            <small><?php echo e($svc->short_description ? Illuminate\Support\Str::limit($svc->short_description, 56) : 'Global business setup service'); ?></small>
                        </a>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                        <a href="<?php echo e(route('services.index')); ?>">
                            <strong>International Services</strong>
                            <small>Browse USA LLC, UK LTD, and global setup services.</small>
                        </a>
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                </div>
            </div>

            <a href="<?php echo e(route('consultation')); ?>">Consultation</a>
            <a href="<?php echo e(route('contact')); ?>">Contact</a>
            <a href="<?php echo e(route('about')); ?>">About</a>
        </div>

        <div class="tx-site-nav__actions">
            <a href="<?php echo e(route('login')); ?>">Login</a>
            <a href="<?php echo e(route('register')); ?>" class="tx-site-nav__pill">Sign Up</a>
        </div>

        <button type="button" class="tx-site-nav__toggle" @click="open = !open" :aria-expanded="open.toString()" aria-label="Open menu">
            <span></span>
            <span></span>
        </button>
    </div>

    <div class="tx-site-nav__mobile" x-show="open" x-transition>
        <a href="<?php echo e(route('services.index')); ?>">Services</a>
        <p>Pakistan</p>
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $pkServices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $svc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
            <a href="<?php echo e(route('services.show', $svc->slug)); ?>"><?php echo e($svc->name); ?></a>
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
        <p>International</p>
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $intlServices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $svc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
            <a href="<?php echo e(route('services.show', $svc->slug)); ?>"><?php echo e($svc->name); ?></a>
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
        <a href="<?php echo e(route('consultation')); ?>">Consultation</a>
        <a href="<?php echo e(route('contact')); ?>">Contact</a>
        <a href="<?php echo e(route('about')); ?>">About</a>
        <a href="<?php echo e(route('login')); ?>">Login</a>
        <a href="<?php echo e(route('register')); ?>">Sign Up</a>
    </div>
</nav>
<?php /**PATH C:\Users\User\.gemini\antigravity\scratch\texora\resources\views/frontend/partials/navbar.blade.php ENDPATH**/ ?>