@php
    $links = [
        ['route' => 'admin.dashboard', 'match' => ['admin.dashboard'], 'label' => 'الرئيسية', 'icon' => '⌂'],
        ['route' => 'admin.monetization', 'match' => ['admin.monetization'], 'label' => 'Monetization', 'icon' => '◆'],
        ['route' => 'admin.ai-studio', 'match' => ['admin.ai-studio'], 'label' => 'AI Studio', 'icon' => '✧'],
        ['route' => 'admin.analytics', 'match' => ['admin.analytics'], 'label' => 'Analytics', 'icon' => '◎'],
        ['route' => 'admin.users.index', 'match' => ['admin.users.*'], 'label' => 'المستخدمون', 'icon' => '👤'],
        ['route' => 'admin.subscription-plans.index', 'match' => ['admin.subscription-plans.*'], 'label' => 'الخطط', 'icon' => '▤'],
        ['route' => 'admin.user-subscriptions.index', 'match' => ['admin.user-subscriptions.*'], 'label' => 'الاشتراكات', 'icon' => '◈'],
        ['route' => 'admin.transactions.index', 'match' => ['admin.transactions.*'], 'label' => 'المعاملات', 'icon' => '◇'],
        ['route' => 'admin.payments.settings', 'match' => ['admin.payments.*'], 'label' => 'الدفع', 'icon' => '₪'],
        ['route' => 'admin.ai-requests.index', 'match' => ['admin.ai-requests.*'], 'label' => 'طلبات AI', 'icon' => '✦'],
        ['route' => 'admin.settings.index', 'match' => ['admin.settings.*'], 'label' => 'الإعدادات', 'icon' => '⚙'],
    ];
@endphp
@foreach ($links as $link)
    @php $active = request()->routeIs($link['match']); @endphp
    <a href="{{ route($link['route']) }}"
       class="flex items-center gap-2 rounded-lg px-3 py-2.5 font-medium transition
              {{ $active ? 'bg-teal-600/30 text-teal-100' : 'text-zinc-300 hover:bg-zinc-800 hover:text-white' }}">
        <span class="w-6 text-center opacity-80" aria-hidden="true">{{ $link['icon'] }}</span>
        {{ $link['label'] }}
    </a>
@endforeach
