<!-- Sidebar -->
<aside x-data="{ mobileOpen: false, collapsed: false }" class="lg:flex-shrink-0"
    :class="collapsed ? 'lg:w-20' : 'lg:w-64'">

    <!-- Mobile top bar -->
    <div class="flex items-center justify-between px-4 h-16 bg-white border-b border-gray-100 lg:hidden">
        <?php
            $currentBusiness = \App\Models\Business::current() ?? auth()->user()->business;
            $logoUrl = $currentBusiness ? \App\Models\Setting::get('invoice_logo_url', '', $currentBusiness->id) : '';
        ?>
        <a href="<?php echo e(route('dashboard')); ?>" class="flex items-center gap-2">
            <?php if($logoUrl): ?>
                <img src="<?php echo e($logoUrl); ?>" class="w-8 h-8 rounded-lg object-contain" alt="Logo">
            <?php else: ?>
                <div class="w-8 h-8 rounded-lg bg-indigo-600 flex items-center justify-center">
                    <span class="text-white font-bold text-xs">FD</span>
                </div>
            <?php endif; ?>
            <span class="font-bold text-gray-800"><?php echo e($currentBusiness->name ?? 'FBR Invoicing'); ?></span>
        </a>
        <button @click="mobileOpen = true"
            class="p-2 rounded-md text-gray-500 hover:bg-gray-100 active:bg-gray-200 transition">
            <svg class="h-6 w-6" fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M4 18h16" />
            </svg>
        </button>
    </div>

    <!-- Mobile backdrop -->
    <div x-show="mobileOpen" x-cloak @click="mobileOpen = false" x-transition:enter="transition ease-out duration-200"
        x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100"
        x-transition:leave="transition ease-in duration-150" x-transition:leave-start="opacity-100"
        x-transition:leave-end="opacity-0" class="fixed inset-0 bg-gray-900/40 z-40 lg:hidden"></div>

    <!-- Sidebar panel -->
    <div x-show="mobileOpen || true" x-cloak
        :class="mobileOpen ? 'translate-x-0' : '-translate-x-full lg:translate-x-0'"
        class="fixed lg:sticky top-0 left-0 z-50 w-64 lg:w-auto h-screen bg-white border-r border-gray-100 transition-transform duration-200 lg:transition-none">

        <div class="flex flex-col h-full">

            <!-- Logo (desktop) -->
            <div class="hidden lg:flex items-center gap-2.5 px-6 h-16 border-b border-gray-100"
                :class="collapsed && 'justify-center px-0'">
                <?php if($logoUrl): ?>
                    <img src="<?php echo e($logoUrl); ?>" class="w-8 h-8 rounded-lg object-contain flex-shrink-0" alt="Logo">
                <?php else: ?>
                    <div class="w-8 h-8 rounded-lg bg-indigo-600 flex items-center justify-center flex-shrink-0">
                        <span class="text-white font-bold text-xs">FD</span>
                    </div>
                <?php endif; ?>
                <div x-show="!collapsed" x-transition class="min-w-0">
                    <p class="font-bold text-gray-800 text-sm leading-tight truncate"><?php echo e($currentBusiness->name ?? 'FBR Invoicing'); ?></p>
                    <p class="text-[11px] text-gray-400 leading-tight truncate">FBR Invoicing Portal</p>
                </div>
            </div>

            <!-- Mobile close -->
            <div class="lg:hidden flex items-center justify-between px-4 h-16 border-b border-gray-100">
                <span class="font-semibold text-gray-800 text-sm">Menu</span>
                <button @click="mobileOpen = false" class="p-2 rounded-md text-gray-500 hover:bg-gray-100">
                    <svg class="h-5 w-5" fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24">
                        <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
                    </svg>
                </button>
            </div>

            <!-- Nav links -->
            <nav class="flex-1 px-3 py-4 space-y-0.5 overflow-y-auto">

                <p x-show="!collapsed"
                    class="px-3 pt-2 pb-1 text-[11px] font-semibold text-gray-400 uppercase tracking-wide">Overview</p>

                <?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => route('dashboard'),'active' => request()->routeIs('dashboard'),'collapsed' => false,'icon' => '<svg fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M3 9.5L12 3l9 6.5M5 10v9a1 1 0 001 1h3.5v-5.5a1.5 1.5 0 011.5-1.5h2a1.5 1.5 0 011.5 1.5V20H18a1 1 0 001-1v-9"/></svg>']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('sidebar-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(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('dashboard')),'active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('dashboard')),'collapsed' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(false),'icon' => '<svg fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M3 9.5L12 3l9 6.5M5 10v9a1 1 0 001 1h3.5v-5.5a1.5 1.5 0 011.5-1.5h2a1.5 1.5 0 011.5 1.5V20H18a1 1 0 001-1v-9"/></svg>']); ?>
                    Dashboard
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
<?php endif; ?>

                <p x-show="!collapsed"
                    class="px-3 pt-4 pb-1 text-[11px] font-semibold text-gray-400 uppercase tracking-wide">Invoicing</p>

                <?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => ''.e(Route::has('items.index') ? route('items.index') : '#').'','active' => request()->routeIs('items.*'),'icon' => '<svg fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M20.59 13.41L11 3.83A2 2 0 009.59 3.24L4 3a1 1 0 00-1 1l.24 5.59a2 2 0 00.58 1.41l9.59 9.59a2 2 0 002.83 0l4.35-4.35a2 2 0 000-2.83z"/><circle cx="8" cy="8" r="1.25" fill="currentColor" stroke="none"/></svg>']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('sidebar-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(['href' => ''.e(Route::has('items.index') ? route('items.index') : '#').'','active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('items.*')),'icon' => '<svg fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M20.59 13.41L11 3.83A2 2 0 009.59 3.24L4 3a1 1 0 00-1 1l.24 5.59a2 2 0 00.58 1.41l9.59 9.59a2 2 0 002.83 0l4.35-4.35a2 2 0 000-2.83z"/><circle cx="8" cy="8" r="1.25" fill="currentColor" stroke="none"/></svg>']); ?>
                    Items
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
<?php endif; ?>

                <?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => ''.e(Route::has('invoices.index') ? route('invoices.index') : '#').'','active' => request()->routeIs('invoices.*'),'icon' => '<svg fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M7 3h7l5 5v11a2 2 0 01-2 2H7a2 2 0 01-2-2V5a2 2 0 012-2z"/><path stroke-linecap="round" stroke-linejoin="round" d="M14 3v5h5M9 13h6M9 16.5h6M9 9.5h2"/></svg>']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('sidebar-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(['href' => ''.e(Route::has('invoices.index') ? route('invoices.index') : '#').'','active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('invoices.*')),'icon' => '<svg fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M7 3h7l5 5v11a2 2 0 01-2 2H7a2 2 0 01-2-2V5a2 2 0 012-2z"/><path stroke-linecap="round" stroke-linejoin="round" d="M14 3v5h5M9 13h6M9 16.5h6M9 9.5h2"/></svg>']); ?>
                    Invoices
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
<?php endif; ?>

                <?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => ''.e(Route::has('notes.index') ? route('notes.index') : '#').'','active' => request()->routeIs('notes.*'),'icon' => '<svg fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" /></svg>']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('sidebar-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(['href' => ''.e(Route::has('notes.index') ? route('notes.index') : '#').'','active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('notes.*')),'icon' => '<svg fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" /></svg>']); ?>
                    Debit/Credit Notes
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
<?php endif; ?>

                <?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => ''.e(Route::has('customers.index') ? route('customers.index') : '#').'','active' => request()->routeIs('customers.*'),'icon' => '<svg fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M17 20h5v-1.5a3.5 3.5 0 00-3-3.46M9 20H2v-1.5A4.5 4.5 0 016.5 14h3A4.5 4.5 0 0114 18.5V20zM8 11a3.5 3.5 0 100-7 3.5 3.5 0 000 7zM16.5 11a3 3 0 100-6 3 3 0 000 6z"/></svg>']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('sidebar-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(['href' => ''.e(Route::has('customers.index') ? route('customers.index') : '#').'','active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('customers.*')),'icon' => '<svg fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M17 20h5v-1.5a3.5 3.5 0 00-3-3.46M9 20H2v-1.5A4.5 4.5 0 016.5 14h3A4.5 4.5 0 0114 18.5V20zM8 11a3.5 3.5 0 100-7 3.5 3.5 0 000 7zM16.5 11a3 3 0 100-6 3 3 0 000 6z"/></svg>']); ?>
                    Customers
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
<?php endif; ?>

                <?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => ''.e(Route::has('businesses.index') ? route('businesses.index') : '#').'','active' => request()->routeIs('businesses.*'),'icon' => '<svg fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M3 21h18M6 21V8a1 1 0 011-1h4a1 1 0 011 1v13M14 21V4a1 1 0 011-1h4a1 1 0 011 1v17M9 11h.01M9 15h.01M17 8h.01M17 12h.01M17 16h.01"/></svg>']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('sidebar-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(['href' => ''.e(Route::has('businesses.index') ? route('businesses.index') : '#').'','active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('businesses.*')),'icon' => '<svg fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M3 21h18M6 21V8a1 1 0 011-1h4a1 1 0 011 1v13M14 21V4a1 1 0 011-1h4a1 1 0 011 1v17M9 11h.01M9 15h.01M17 8h.01M17 12h.01M17 16h.01"/></svg>']); ?>
                    Businesses
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
<?php endif; ?>

                <div x-data="{ open: <?php echo e(request()->routeIs('reports.*') ? 'true' : 'false'); ?> }" class="space-y-0.5">
                    <button @click="open = !open" 
                            class="w-full flex items-center justify-between py-2.5 px-3 rounded-lg text-sm font-medium transition-colors <?php echo e(request()->routeIs('reports.*') ? 'text-indigo-600 bg-indigo-50/50' : 'text-gray-500 hover:bg-gray-50 hover:text-gray-800'); ?> focus:outline-none">
                        <div class="flex items-center gap-3">
                            <span class="w-5 h-5 flex-shrink-0 <?php echo e(request()->routeIs('reports.*') ? 'text-indigo-600' : 'text-gray-400'); ?>">
                                <svg fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M9 17v-2m3 2v-4m3 4v-6m2 10H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/></svg>
                            </span>
                            <span x-show="!collapsed" class="truncate">Reports</span>
                        </div>
                        <svg x-show="!collapsed" class="w-4 h-4 text-gray-400 transform transition-transform duration-200" :class="open && 'rotate-180'" fill="currentColor" viewBox="0 0 20 20">
                            <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"></path>
                        </svg>
                    </button>
                    
                    <div x-show="open" x-transition x-cloak class="pl-8 space-y-0.5">
                        <a href="<?php echo e(route('reports.customer')); ?>" 
                           class="flex items-center py-2 px-3 rounded-lg text-xs font-semibold transition-colors <?php echo e(request()->routeIs('reports.customer*') ? 'text-indigo-600 bg-indigo-50/70' : 'text-gray-500 hover:bg-gray-50 hover:text-gray-800'); ?>">
                            Customer Ledger
                        </a>
                        <a href="<?php echo e(route('reports.tax')); ?>" 
                           class="flex items-center py-2 px-3 rounded-lg text-xs font-semibold transition-colors <?php echo e(request()->routeIs('reports.tax*') ? 'text-indigo-600 bg-indigo-50/70' : 'text-gray-500 hover:bg-gray-50 hover:text-gray-800'); ?>">
                            Tax Summary
                        </a>
                    </div>
                </div>

                <p x-show="!collapsed"
                    class="px-3 pt-4 pb-1 text-[11px] font-semibold text-gray-400 uppercase tracking-wide">Compliance
                </p>

                <?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => ''.e(route('fbr-logs.index')).'','active' => request()->routeIs('fbr-logs.*'),'icon' => '<svg fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M4 4v5h5M20 20v-5h-5"/><path stroke-linecap="round" stroke-linejoin="round" d="M4.58 9A8 8 0 0119.4 8M19.42 15A8 8 0 014.6 16"/></svg>']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('sidebar-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(['href' => ''.e(route('fbr-logs.index')).'','active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('fbr-logs.*')),'icon' => '<svg fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M4 4v5h5M20 20v-5h-5"/><path stroke-linecap="round" stroke-linejoin="round" d="M4.58 9A8 8 0 0119.4 8M19.42 15A8 8 0 014.6 16"/></svg>']); ?>
                    FBR Sync Log
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
<?php endif; ?>

                <div x-data="{ open: <?php echo e(request()->routeIs('business-users.*') || request()->routeIs('business-roles.*') ? 'true' : 'false'); ?> }" class="space-y-0.5">
                    <button @click="open = !open" 
                            class="w-full flex items-center justify-between py-2.5 px-3 rounded-lg text-sm font-medium transition-colors <?php echo e(request()->routeIs('business-users.*') || request()->routeIs('business-roles.*') ? 'text-indigo-600 bg-indigo-50/50' : 'text-gray-500 hover:bg-gray-50 hover:text-gray-800'); ?> focus:outline-none">
                        <div class="flex items-center gap-3">
                            <span class="w-5 h-5 flex-shrink-0 <?php echo e(request()->routeIs('business-users.*') || request()->routeIs('business-roles.*') ? 'text-indigo-600' : 'text-gray-400'); ?>">
                                <svg fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a3 3 0 11-6 0 3 3 0 016 0z"/></svg>
                            </span>
                            <span x-show="!collapsed" class="truncate">Staff & Roles</span>
                        </div>
                        <svg x-show="!collapsed" class="w-4 h-4 text-gray-400 transform transition-transform duration-200" :class="open && 'rotate-180'" fill="currentColor" viewBox="0 0 20 20">
                            <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"></path>
                        </svg>
                    </button>
                    
                    <div x-show="open" x-transition x-cloak class="pl-8 space-y-0.5">
                        <a href="<?php echo e(route('business-users.index')); ?>" 
                           class="flex items-center py-2 px-3 rounded-lg text-xs font-semibold transition-colors <?php echo e(request()->routeIs('business-users.*') ? 'text-indigo-600 bg-indigo-50/70' : 'text-gray-500 hover:bg-gray-50 hover:text-gray-800'); ?>">
                            Users / Staff
                        </a>
                        <a href="<?php echo e(route('business-roles.index')); ?>" 
                           class="flex items-center py-2 px-3 rounded-lg text-xs font-semibold transition-colors <?php echo e(request()->routeIs('business-roles.*') ? 'text-indigo-600 bg-indigo-50/70' : 'text-gray-500 hover:bg-gray-50 hover:text-gray-800'); ?>">
                            Roles & Permissions
                        </a>
                    </div>
                </div>

                <p x-show="!collapsed"
                    class="px-3 pt-4 pb-1 text-[11px] font-semibold text-gray-400 uppercase tracking-wide">System</p>

                <?php if(Auth::user()->is_super_admin): ?>
                    <?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => ''.e(route('super-admin.dashboard')).'','active' => request()->routeIs('super-admin.*'),'icon' => '<svg fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"/></svg>']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('sidebar-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(['href' => ''.e(route('super-admin.dashboard')).'','active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('super-admin.*')),'icon' => '<svg fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"/></svg>']); ?>
                        Super Admin
                     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
<?php endif; ?>
                <?php endif; ?>

                <?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => ''.e(route('settings.templates.index')).'','active' => request()->routeIs('settings.templates.*'),'icon' => '<svg xmlns="http://www.w3.org/2000/svg" stroke-width="1.75" viewBox="0 0 23 24">
    <path fill="currentColor" fill-rule="evenodd" d="M16 4.57a.5.5 0 0 0-.024-.235l-.013-.063a1.5 1.5 0 0 0-.18-.434c-.092-.15-.222-.28-.482-.54l-2.59-2.59c-.259-.26-.389-.39-.54-.483a1.5 1.5 0 0 0-.496-.193a.5.5 0 0 0-.235-.024c-.112-.004-.246-.004-.425-.004h-2.21c-1.68 0-2.52 0-3.16.327a3.02 3.02 0 0 0-1.31 1.31c-.137.269-.216.572-.263.957a4.5 4.5 0 0 1 1.02-.093a1.5 1.5 0 0 1 .129-.411c.191-.376.497-.682.873-.874c.156-.08.381-.145.82-.18c.45-.037 1.03-.038 1.89-.038h2.2v3.5a.5.5 0 0 0 .5.5h3.5v6.2c0 .857-.001 1.44-.038 1.89c-.036.438-.101.663-.18.82a2 2 0 0 1-.874.873c-.156.08-.381.145-.819.18c-.45.037-1.03.038-1.89.038h-2.4c-.857 0-1.44 0-1.89-.038c-.438-.035-.663-.1-.819-.18a2 2 0 0 1-.857-.842l-.584.926c.266.335.602.611.987.807c.642.327 1.48.327 3.16.327h2.4c1.68 0 2.52 0 3.16-.327a3 3 0 0 0 1.31-1.31c.327-.642.327-1.48.327-3.16v-6.21c0-.178 0-.313-.005-.425zm-4-3.16L14.59 4H12z" clip-rule="evenodd"/>
    <path fill="currentColor" d="M8.49 5.47L6.35 4.34c-1.31-.693-2.99-.282-3.74.919l-.403.639c-.051.081.034.178.131.149a2.92 2.92 0 0 1 2.17.213c.514.272.689.924.378 1.42l-1.34 2.13a.576.576 0 0 0-.749.184l-2.6 4.13c-.379.6-.154 1.37.502 1.71c.656.346 1.49.141 1.87-.459l2.6-4.13c.151-.24.062-.547-.201-.686l1.78-2.82a.29.29 0 0 1 .381-.102c.131.07.299.028.374-.092a.277.277 0 0 1 .364-.097l.495.262c.123.065.164.22.09.337c-.076.12-.03.274.1.343l.95.502c.131.07.3.028.374-.092l1.1-1.74c.076-.12.03-.274-.1-.343l-.95-.502a.29.29 0 0 0-.374.092a.277.277 0 0 1-.364.097l-.495-.262a.237.237 0 0 1-.09-.337c.076-.12.03-.274-.1-.343z"/>
</svg>']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('sidebar-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(['href' => ''.e(route('settings.templates.index')).'','active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('settings.templates.*')),'icon' => '<svg xmlns="http://www.w3.org/2000/svg" stroke-width="1.75" viewBox="0 0 23 24">
    <path fill="currentColor" fill-rule="evenodd" d="M16 4.57a.5.5 0 0 0-.024-.235l-.013-.063a1.5 1.5 0 0 0-.18-.434c-.092-.15-.222-.28-.482-.54l-2.59-2.59c-.259-.26-.389-.39-.54-.483a1.5 1.5 0 0 0-.496-.193a.5.5 0 0 0-.235-.024c-.112-.004-.246-.004-.425-.004h-2.21c-1.68 0-2.52 0-3.16.327a3.02 3.02 0 0 0-1.31 1.31c-.137.269-.216.572-.263.957a4.5 4.5 0 0 1 1.02-.093a1.5 1.5 0 0 1 .129-.411c.191-.376.497-.682.873-.874c.156-.08.381-.145.82-.18c.45-.037 1.03-.038 1.89-.038h2.2v3.5a.5.5 0 0 0 .5.5h3.5v6.2c0 .857-.001 1.44-.038 1.89c-.036.438-.101.663-.18.82a2 2 0 0 1-.874.873c-.156.08-.381.145-.819.18c-.45.037-1.03.038-1.89.038h-2.4c-.857 0-1.44 0-1.89-.038c-.438-.035-.663-.1-.819-.18a2 2 0 0 1-.857-.842l-.584.926c.266.335.602.611.987.807c.642.327 1.48.327 3.16.327h2.4c1.68 0 2.52 0 3.16-.327a3 3 0 0 0 1.31-1.31c.327-.642.327-1.48.327-3.16v-6.21c0-.178 0-.313-.005-.425zm-4-3.16L14.59 4H12z" clip-rule="evenodd"/>
    <path fill="currentColor" d="M8.49 5.47L6.35 4.34c-1.31-.693-2.99-.282-3.74.919l-.403.639c-.051.081.034.178.131.149a2.92 2.92 0 0 1 2.17.213c.514.272.689.924.378 1.42l-1.34 2.13a.576.576 0 0 0-.749.184l-2.6 4.13c-.379.6-.154 1.37.502 1.71c.656.346 1.49.141 1.87-.459l2.6-4.13c.151-.24.062-.547-.201-.686l1.78-2.82a.29.29 0 0 1 .381-.102c.131.07.299.028.374-.092a.277.277 0 0 1 .364-.097l.495.262c.123.065.164.22.09.337c-.076.12-.03.274.1.343l.95.502c.131.07.3.028.374-.092l1.1-1.74c.076-.12.03-.274-.1-.343l-.95-.502a.29.29 0 0 0-.374.092a.277.277 0 0 1-.364.097l-.495-.262a.237.237 0 0 1-.09-.337c.076-.12.03-.274-.1-.343z"/>
</svg>']); ?>
                    Invoice Templates
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
<?php endif; ?>

                <?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => ''.e(route('settings.edit')).'','active' => request()->routeIs('settings.edit'),'icon' => '<svg fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M10.32 4.32c.43-1.76 2.93-1.76 3.35 0a1.72 1.72 0 002.58 1.07c1.54-.94 3.31.83 2.37 2.37a1.72 1.72 0 001.06 2.57c1.76.43 1.76 2.93 0 3.35a1.72 1.72 0 00-1.06 2.58c.94 1.54-.83 3.31-2.37 2.37a1.72 1.72 0 00-2.58 1.06c-.42 1.76-2.92 1.76-3.35 0a1.72 1.72 0 00-2.57-1.06c-1.54.94-3.31-.83-2.37-2.37a1.72 1.72 0 00-1.06-2.58c-1.76-.42-1.76-2.92 0-3.35a1.72 1.72 0 001.06-2.57c-.94-1.54.83-3.31 2.37-2.37.99.6 2.3.07 2.57-1.07z"/><circle cx="12" cy="12" r="3"/></svg>']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('sidebar-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(['href' => ''.e(route('settings.edit')).'','active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('settings.edit')),'icon' => '<svg fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M10.32 4.32c.43-1.76 2.93-1.76 3.35 0a1.72 1.72 0 002.58 1.07c1.54-.94 3.31.83 2.37 2.37a1.72 1.72 0 001.06 2.57c1.76.43 1.76 2.93 0 3.35a1.72 1.72 0 00-1.06 2.58c.94 1.54-.83 3.31-2.37 2.37a1.72 1.72 0 00-2.58 1.06c-.42 1.76-2.92 1.76-3.35 0a1.72 1.72 0 00-2.57-1.06c-1.54.94-3.31-.83-2.37-2.37a1.72 1.72 0 00-1.06-2.58c-1.76-.42-1.76-2.92 0-3.35a1.72 1.72 0 001.06-2.57c-.94-1.54.83-3.31 2.37-2.37.99.6 2.3.07 2.57-1.07z"/><circle cx="12" cy="12" r="3"/></svg>']); ?>
                    Settings
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
<?php endif; ?>
            </nav>

            <!-- Collapse toggle (desktop only) -->
            <button @click="collapsed = !collapsed"
                class="hidden lg:flex items-center justify-center gap-2 mx-3 mb-2 py-2 rounded-lg text-gray-400 hover:bg-gray-50 hover:text-gray-600 transition">
                <svg class="w-4 h-4 transition-transform" :class="collapsed && 'rotate-180'" fill="none"
                    stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" d="M15 6l-6 6 6 6" />
                </svg>
                <span x-show="!collapsed" class="text-xs font-medium">Collapse</span>
            </button>

            <!-- User footer -->
            <div class="border-t border-gray-100 p-3 relative" x-data="{ open: false }">
                <button @click="open = !open"
                    class="w-full flex items-center gap-3 px-2 py-2 rounded-lg hover:bg-gray-50 transition select-none">
                    <div class="w-8 h-8 rounded-full overflow-hidden bg-indigo-100 flex items-center justify-center flex-shrink-0">
                        <?php if(Auth::user()->profile_picture): ?>
                            <img src="<?php echo e(asset('storage/' . Auth::user()->profile_picture)); ?>" class="w-full h-full object-cover" alt="Profile">
                        <?php else: ?>
                            <span class="text-indigo-700 text-xs font-semibold"><?php echo e(strtoupper(substr(Auth::user()->name, 0, 1))); ?></span>
                        <?php endif; ?>
                    </div>
                    <div x-show="!collapsed" x-transition class="text-left flex-1 min-w-0">
                        <p class="text-sm font-medium text-gray-800 truncate"><?php echo e(Auth::user()->name); ?></p>
                        <p class="text-xs text-gray-400 truncate"><?php echo e(Auth::user()->email); ?></p>
                    </div>
                    <svg x-show="!collapsed" class="w-4 h-4 text-gray-400 flex-shrink-0 transform transition-transform"
                        :class="open && 'rotate-180'" fill="currentColor" viewBox="0 0 20 20">
                        <path fill-rule="evenodd"
                            d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"
                            clip-rule="evenodd" />
                    </svg>
                </button>

                <div x-show="open" @click.outside="open = false" x-cloak
                    x-transition:enter="transition ease-out duration-150"
                    x-transition:enter-start="opacity-0 translate-y-2"
                    x-transition:enter-end="opacity-100 translate-y-0"
                    x-transition:leave="transition ease-in duration-75"
                    x-transition:leave-start="opacity-100 translate-y-0"
                    x-transition:leave-end="opacity-0 translate-y-2"
                    class="absolute bottom-full left-3 right-3 mb-2 rounded-lg bg-white border border-gray-100 shadow-xl py-1.5 z-50">
                    <?php if (isset($component)) { $__componentOriginal68cb1971a2b92c9735f83359058f7108 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal68cb1971a2b92c9735f83359058f7108 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dropdown-link','data' => ['href' => route('profile.edit')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dropdown-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(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('profile.edit'))]); ?><?php echo e(__('Profile')); ?> <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal68cb1971a2b92c9735f83359058f7108)): ?>
<?php $attributes = $__attributesOriginal68cb1971a2b92c9735f83359058f7108; ?>
<?php unset($__attributesOriginal68cb1971a2b92c9735f83359058f7108); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal68cb1971a2b92c9735f83359058f7108)): ?>
<?php $component = $__componentOriginal68cb1971a2b92c9735f83359058f7108; ?>
<?php unset($__componentOriginal68cb1971a2b92c9735f83359058f7108); ?>
<?php endif; ?>
                    <form method="POST" action="<?php echo e(route('logout')); ?>">
                        <?php echo csrf_field(); ?>
                        <?php if (isset($component)) { $__componentOriginal68cb1971a2b92c9735f83359058f7108 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal68cb1971a2b92c9735f83359058f7108 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dropdown-link','data' => ['href' => route('logout'),'onclick' => 'event.preventDefault(); this.closest(\'form\').submit();']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dropdown-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(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('logout')),'onclick' => 'event.preventDefault(); this.closest(\'form\').submit();']); ?>
                            <?php echo e(__('Log Out')); ?>

                         <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal68cb1971a2b92c9735f83359058f7108)): ?>
<?php $attributes = $__attributesOriginal68cb1971a2b92c9735f83359058f7108; ?>
<?php unset($__attributesOriginal68cb1971a2b92c9735f83359058f7108); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal68cb1971a2b92c9735f83359058f7108)): ?>
<?php $component = $__componentOriginal68cb1971a2b92c9735f83359058f7108; ?>
<?php unset($__componentOriginal68cb1971a2b92c9735f83359058f7108); ?>
<?php endif; ?>
                    </form>
                </div>
            </div>
        </div>
    </div>
</aside><?php /**PATH /www/wwwroot/lifeelements.shiningerp.com/resources/views/layouts/navigation.blade.php ENDPATH**/ ?>