<aside class="admin-sidebar">
    <button type="button" class="admin-sidebar-close" id="adminSidebarClose" aria-label="Close menu">&times;</button>
    <div class="sidebar-brand">
        <div class="brand-mark">{{ __('admin.brand.name') }}</div>
        <div class="brand-sub">{{ __('admin.brand.console') }}</div>
    </div>
    <nav class="sidebar-nav">
        @if(session('admin.role') === 'service_admin')
        <a class="nav-item {{ request()->routeIs('admin.support*') ? 'active' : '' }}" href="{{ route('admin.support') }}">{{ __('admin.nav.support') }}</a>
        @else
        <a class="nav-item {{ request()->routeIs('admin.dashboard') ? 'active' : '' }}" href="{{ route('admin.dashboard') }}">{{ __('admin.nav.dashboard') }}</a>
        <a class="nav-item {{ request()->routeIs('admin.users*') ? 'active' : '' }}" href="{{ route('admin.users') }}">{{ __('admin.nav.users') }}</a>
        <a class="nav-item {{ request()->routeIs('admin.deposits*') ? 'active' : '' }}" href="{{ route('admin.deposits') }}">{{ __('admin.nav.deposits') }}</a>
        <a class="nav-item {{ request()->routeIs('admin.withdrawals*') ? 'active' : '' }}" href="{{ route('admin.withdrawals') }}">{{ __('admin.nav.withdrawals') }}</a>
        <a class="nav-item {{ request()->routeIs('admin.ai-trade*') ? 'active' : '' }}" href="{{ route('admin.ai-trade') }}">{{ __('admin.nav.ai_trade') }}</a>
        <a class="nav-item {{ request()->routeIs('admin.financial*') ? 'active' : '' }}" href="{{ route('admin.financial') }}">{{ __('admin.nav.financial') }}</a>
        <a class="nav-item {{ request()->routeIs('admin.referrals*') ? 'active' : '' }}" href="{{ route('admin.referrals') }}">{{ __('admin.nav.referrals') }}</a>
        <a class="nav-item {{ request()->routeIs('admin.support*') ? 'active' : '' }}" href="{{ route('admin.support') }}">{{ __('admin.nav.support') }}</a>
        <a class="nav-item {{ request()->routeIs('admin.notifications*') ? 'active' : '' }}" href="{{ route('admin.notifications') }}">{{ __('admin.nav.notifications') }}</a>
        <a class="nav-item {{ request()->routeIs('admin.discover*') ? 'active' : '' }}" href="{{ route('admin.discover') }}">{{ __('admin.nav.discover') }}</a>
        <a class="nav-item {{ request()->routeIs('admin.announcements*') ? 'active' : '' }}" href="{{ route('admin.announcements') }}">{{ __('admin.nav.announcements') }}</a>
        <a class="nav-item {{ request()->routeIs('admin.audit-logs*') ? 'active' : '' }}" href="{{ route('admin.audit-logs') }}">{{ __('admin.nav.audit_logs') }}</a>
        @if(session('admin.role') === 'super_admin')
        <div class="nav-section">{{ __('admin.nav.super_admin') }}</div>
        <a class="nav-item {{ request()->routeIs('admin.wallets*') ? 'active' : '' }}" href="{{ route('admin.wallets') }}">{{ __('admin.nav.wallets') }}</a>
        <a class="nav-item {{ request()->routeIs('admin.admins*') ? 'active' : '' }}" href="{{ route('admin.admins') }}">{{ __('admin.nav.admins') }}</a>
        <a class="nav-item {{ request()->routeIs('admin.system*') ? 'active' : '' }}" href="{{ route('admin.system') }}">{{ __('admin.nav.system') }}</a>
        @endif
        @endif
    </nav>
</aside>

