<aside>
    
    <div class="p-5 border-b border-gray-100 flex-shrink-0">
        <div class="flex items-center gap-3">
            <div class="w-8 h-8 rounded-md flex items-center justify-center text-white font-bold text-sm" style="background-color: #99BC85;">P</div>
            <span class="font-semibold text-sm tracking-tight">Admin Console</span>
        </div>
    </div>

    
    <nav class="flex-1 overflow-y-auto py-2">

        
        <a href="<?php echo e(route('admin.dashboard')); ?>" wire:navigate
           class="nav-link <?php echo e(request()->routeIs('admin.dashboard') ? 'active' : ''); ?>">
            <svg class="nav-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
                <path d="M2 10.5a1.5 1.5 0 1 1 3 0v6a1.5 1.5 0 0 1-3 0v-6zm6-4a1.5 1.5 0 1 1 3 0v10a1.5 1.5 0 0 1-3 0v-10zm6-4a1.5 1.5 0 1 1 3 0v14a1.5 1.5 0 0 1-3 0V2.5z"/>
            </svg>
            Dashboard
        </a>

        
        <?php
            $contentActive = request()->routeIs('admin.blog*', 'admin.categories*', 'admin.gallery*', 'admin.faqs*', 'admin.legal*', 'admin.social*', 'admin.breaking*');
        ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['view posts', 'view categories', 'view gallery', 'view faqs', 'view legal', 'view social'])): ?>
        <div x-data="{ open: <?php echo e($contentActive ? 'true' : 'false'); ?> }">
            <button type="button" @click="open = !open" class="nav-group-btn">
                <div class="flex items-center gap-2">
                    <svg class="nav-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
                        <path fill-rule="evenodd" d="M2 5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5zm14 1a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM2 13a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-2zm14 1a1 1 0 1 1-2 0 1 1 0 0 1 2 0z" clip-rule="evenodd"/>
                    </svg>
                    Content
                </div>
                <svg class="nav-chevron" :class="{ 'rotate-90': open }" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
                    <path fill-rule="evenodd" d="M7.21 14.77a.75.75 0 0 1 .02-1.06L11.168 10 7.23 6.29a.75.75 0 1 1 1.04-1.08l4.5 4.25a.75.75 0 0 1 0 1.08l-4.5 4.25a.75.75 0 0 1-1.06-.02z" clip-rule="evenodd"/>
                </svg>
            </button>
            <div x-show="open" x-transition:enter="transition-all ease-out duration-150" x-transition:enter-start="opacity-0 -translate-y-1" x-transition:enter-end="opacity-100 translate-y-0" x-transition:leave="transition-all ease-in duration-100" x-transition:leave-start="opacity-100" x-transition:leave-end="opacity-0">
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view posts')): ?>
                <a href="<?php echo e(route('admin.blog')); ?>" wire:navigate class="nav-link nav-sub <?php echo e(request()->routeIs('admin.blog*') ? 'active' : ''); ?>">Blog Posts</a>
                <?php endif; ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view breaking news')): ?>
                <a href="<?php echo e(route('admin.breaking')); ?>" wire:navigate class="nav-link nav-sub <?php echo e(request()->routeIs('admin.breaking*') ? 'active' : ''); ?>">
                    Breaking News
                </a>
                <?php endif; ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view categories')): ?>
                <a href="<?php echo e(route('admin.categories')); ?>" wire:navigate class="nav-link nav-sub <?php echo e(request()->routeIs('admin.categories') ? 'active' : ''); ?>">Categories</a>
                <?php endif; ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view gallery')): ?>
                <a href="<?php echo e(route('admin.gallery')); ?>" wire:navigate class="nav-link nav-sub <?php echo e(request()->routeIs('admin.gallery*') ? 'active' : ''); ?>">Gallery</a>
                <?php endif; ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view faqs')): ?>
                <a href="<?php echo e(route('admin.faqs')); ?>" wire:navigate class="nav-link nav-sub <?php echo e(request()->routeIs('admin.faqs*') ? 'active' : ''); ?>">FAQs</a>
                <?php endif; ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view legal')): ?>
                <a href="<?php echo e(route('admin.legal')); ?>" wire:navigate class="nav-link nav-sub <?php echo e(request()->routeIs('admin.legal*') ? 'active' : ''); ?>">Legal Pages</a>
                <?php endif; ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view social')): ?>
                <a href="<?php echo e(route('admin.social')); ?>" wire:navigate class="nav-link nav-sub <?php echo e(request()->routeIs('admin.social*') ? 'active' : ''); ?>">Social Feed</a>
                <?php endif; ?>
            </div>
        </div>
        <?php endif; ?>

        
        <?php
            $communityActive = request()->routeIs('admin.inquiries*', 'admin.career*', 'admin.subscribers*');
        ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['view inquiries', 'view applications', 'view subscribers'])): ?>
        <div x-data="{ open: <?php echo e($communityActive ? 'true' : 'false'); ?> }">
            <button type="button" @click="open = !open" class="nav-group-btn">
                <div class="flex items-center gap-2">
                    <svg class="nav-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
                        <path d="M9 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0zm8 0a3 3 0 1 1-6 0 3 3 0 0 1 6 0zm-4.07 11c.046-.327.07-.66.07-1a6.97 6.97 0 0 0-1.5-4.33A5 5 0 0 1 19 16v1h-6.07zM6 11a5 5 0 0 1 5 5v1H1v-1a5 5 0 0 1 5-5z"/>
                    </svg>
                    Community
                </div>
                <svg class="nav-chevron" :class="{ 'rotate-90': open }" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
                    <path fill-rule="evenodd" d="M7.21 14.77a.75.75 0 0 1 .02-1.06L11.168 10 7.23 6.29a.75.75 0 1 1 1.04-1.08l4.5 4.25a.75.75 0 0 1 0 1.08l-4.5 4.25a.75.75 0 0 1-1.06-.02z" clip-rule="evenodd"/>
                </svg>
            </button>
            <div x-show="open" x-transition:enter="transition-all ease-out duration-150" x-transition:enter-start="opacity-0 -translate-y-1" x-transition:enter-end="opacity-100 translate-y-0" x-transition:leave="transition-all ease-in duration-100" x-transition:leave-start="opacity-100" x-transition:leave-end="opacity-0">
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view inquiries')): ?>
                <a href="<?php echo e(route('admin.inquiries')); ?>" wire:navigate class="nav-link nav-sub <?php echo e(request()->routeIs('admin.inquiries*') ? 'active' : ''); ?>">Inquiries</a>
                <?php endif; ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view applications')): ?>
                <a href="<?php echo e(route('admin.career.manage')); ?>" wire:navigate class="nav-link nav-sub <?php echo e(request()->routeIs('admin.career*') ? 'active' : ''); ?>">Applications</a>
                <?php endif; ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view subscribers')): ?>
                <a href="<?php echo e(route('admin.subscribers')); ?>" wire:navigate class="nav-link nav-sub <?php echo e(request()->routeIs('admin.subscribers*') ? 'active' : ''); ?>">Subscribers</a>
                <?php endif; ?>
            </div>
        </div>
        <?php endif; ?>

        
        <?php
            $systemActive = request()->routeIs('admin.settings', 'admin.users*', 'admin.roles*', 'admin.activity-logs*');
        ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['view settings', 'manage users', 'manage roles'])): ?>
        <div x-data="{ open: <?php echo e($systemActive ? 'true' : 'false'); ?> }">
            <button type="button" @click="open = !open" class="nav-group-btn">
                <div class="flex items-center gap-2">
                    <svg class="nav-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
                        <path fill-rule="evenodd" d="M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 0 1-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 0 1 .947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 0 1 2.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 0 1 2.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 0 1 .947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 0 1-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 0 1-2.287-.947zM10 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6z" clip-rule="evenodd"/>
                    </svg>
                    System
                </div>
                <svg class="nav-chevron" :class="{ 'rotate-90': open }" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
                    <path fill-rule="evenodd" d="M7.21 14.77a.75.75 0 0 1 .02-1.06L11.168 10 7.23 6.29a.75.75 0 1 1 1.04-1.08l4.5 4.25a.75.75 0 0 1 0 1.08l-4.5 4.25a.75.75 0 0 1-1.06-.02z" clip-rule="evenodd"/>
                </svg>
            </button>
            <div x-show="open" x-transition:enter="transition-all ease-out duration-150" x-transition:enter-start="opacity-0 -translate-y-1" x-transition:enter-end="opacity-100 translate-y-0" x-transition:leave="transition-all ease-in duration-100" x-transition:leave-start="opacity-100" x-transition:leave-end="opacity-0">
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view settings')): ?>
                <a href="<?php echo e(route('admin.settings')); ?>" wire:navigate class="nav-link nav-sub <?php echo e(request()->routeIs('admin.settings') ? 'active' : ''); ?>">Settings</a>
                <?php endif; ?>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if (\Illuminate\Support\Facades\Blade::check('role', 'superadmin')): ?>
                <a href="<?php echo e(route('admin.users')); ?>" wire:navigate class="nav-link nav-sub <?php echo e(request()->routeIs('admin.users*') ? 'active' : ''); ?>">Users</a>
                <a href="<?php echo e(route('admin.roles')); ?>" wire:navigate class="nav-link nav-sub <?php echo e(request()->routeIs('admin.roles*') ? 'active' : ''); ?>">Roles</a>
                <a href="<?php echo e(route('admin.activity-logs')); ?>" wire:navigate class="nav-link nav-sub <?php echo e(request()->routeIs('admin.activity-logs*') ? 'active' : ''); ?>">Activity Logs</a>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>
        </div>
        <?php endif; ?>

    </nav>

    
    <div class="p-4 border-t border-gray-100 flex-shrink-0">
        <a href="<?php echo e(route('admin.profile')); ?>" wire:navigate
           class="flex items-center gap-3 px-3 py-2 rounded-lg hover:bg-gray-50 transition-colors mb-1 <?php echo e(request()->routeIs('admin.profile') ? 'bg-gray-50' : ''); ?>">
            <div class="w-8 h-8 rounded-full bg-gray-200 flex items-center justify-center text-[10px] font-bold text-gray-500 overflow-hidden flex-shrink-0">
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(auth()->check() && auth()->user()->avatar): ?>
                    <img src="<?php echo e(asset('storage/' . auth()->user()->avatar)); ?>" class="w-full h-full object-cover">
                <?php else: ?>
                    <?php echo e(auth()->check() ? strtoupper(substr(auth()->user()->name, 0, 2)) : 'AD'); ?>

                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>
            <div class="flex-1 overflow-hidden">
                <p class="text-[12px] font-semibold truncate"><?php echo e(auth()->check() ? auth()->user()->name : 'Admin'); ?></p>
                <p class="text-[10px] text-gray-500 truncate"><?php echo e(auth()->check() ? auth()->user()->email : 'admin@example.com'); ?></p>
            </div>
        </a>
        <form method="POST" action="<?php echo e(route('logout')); ?>">
            <?php echo csrf_field(); ?>
            <button type="submit" class="nav-link mt-1 text-red-500 hover:bg-red-50 hover:text-red-600 w-full text-left">
                <svg class="nav-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
                    <path fill-rule="evenodd" d="M3 3a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 1 0 0-2H4V5h7a1 1 0 1 0 0-2H3zm13.707 4.293a1 1 0 0 1 0 1.414L14.414 11H10a1 1 0 1 0 0 2h4.414l2.293 2.293a1 1 0 0 1-1.414 1.414l-4-4a1 1 0 0 1 0-1.414l4-4a1 1 0 0 1 1.414 0z" clip-rule="evenodd"/>
                </svg>
                Sign out
            </button>
        </form>
    </div>
</aside>
<?php /**PATH D:\02-my freelance\00-DR_Padhi\DR_PADHI\resources\views/components/admin/sidebar.blade.php ENDPATH**/ ?>