@php
  /** @var \App\Models\GeneralSetting $settings */
  $gs   = $settings ?? new \App\Models\GeneralSetting();

  $g1   = $gs->icon_color       ?? '#0B5D1E';
  $g2   = $gs->hover_color      ?? '#0F7A2E';
  $text = $gs->text_color       ?? '#ffffff';
  $bg   = $gs->background_color ?? '#ffffff';

  $adminUser = auth('admin')->user();
  $isSuperAdmin = $adminUser?->isSuperAdmin() ?? true;
  $assignedProjects = (!$isSuperAdmin && $adminUser)
    ? $adminUser->assignedProjectPermissions()
    : [];
  $hasAnyProjectPermission = $isSuperAdmin || !empty($assignedProjects);
  $canAccessProject = static function (string $projectKey) use ($isSuperAdmin, $assignedProjects): bool {
    return $isSuperAdmin || in_array($projectKey, $assignedProjects, true);
  };
  $canAccessAnyProject = static function (array $projectKeys) use ($isSuperAdmin, $assignedProjects): bool {
    if ($isSuperAdmin) {
      return true;
    }
    foreach ($projectKeys as $projectKey) {
      if (in_array($projectKey, $assignedProjects, true)) {
        return true;
      }
    }
    return false;
  };

  if (!function_exists('__isActiveSidebar')) {
    function __isActiveSidebar($patterns) {
      foreach ((array)$patterns as $p) {
        if (request()->routeIs($p) || request()->is($p)) return true;
      }
      return false;
    }
  }

  $activationOpen = __isActiveSidebar(['admin.activation_requests.*','admin/activation-requests*']);
  $activationCanManage = $canAccessAnyProject(['activation_requests', 'activation_requests_manage']);
  $activationCanHistory = $canAccessAnyProject(['activation_requests', 'activation_requests_history']);
  $usersCanAll = $canAccessAnyProject(['users', 'users_all']);
  $usersCanActive = $canAccessAnyProject(['users', 'users_active']);
  $usersCanInactive = $canAccessAnyProject(['users', 'users_inactive']);
  $usersCanBanned = $canAccessAnyProject(['users', 'users_banned']);
  $usersCanWithdrawHold = $canAccessAnyProject(['users', 'users_withdraw_hold']);
  $usersCanOpenMenu = $usersCanAll || $usersCanActive || $usersCanInactive || $usersCanBanned || $usersCanWithdrawHold;
  $hasSubAdminsRoute = \Illuminate\Support\Facades\Route::has('admin.sub-admins.index');
  $hasActivityLockRoute = \Illuminate\Support\Facades\Route::has('admin.activity-lock.index');
  $hasSecurityCredentialsRoute = \Illuminate\Support\Facades\Route::has('admin.security-credentials.edit');
  $hasGraphqlReadOnlyRoute = \Illuminate\Support\Facades\Route::has('admin.graphql-read-only.index');

  $usersOpen      = __isActiveSidebar(['admin.users.*','admin/users*']);
  $paymentsOpen   = __isActiveSidebar(['admin.payments.*','admin/payments*']);
  $withdrawOpen   = __isActiveSidebar(['admin.withdraw.*','admin/withdraw-*','admin/withdraw*']);
  $gmailSalesOpen = __isActiveSidebar(['admin.gmail.sales.*','admin/gmail-sales*']);
  $fbSalesOpen    = __isActiveSidebar(['admin.fb.*','admin/fb/*','admin/fb*']);
  $jobsReqOpen    = __isActiveSidebar(['admin.jobs.*','admin/jobs*']);
  $jobSubsOpen    = __isActiveSidebar(['admin.submissions.*','admin/submissions*','admin/job-submissions*']);
  $productOpen    = __isActiveSidebar(['admin.pd-categories.*','admin/pd-categories*','admin/pdorders*','admin/pd-orders*','admin/products*']);
  $ordersOpen     = __isActiveSidebar(['admin.orders.*','admin/orders*']);
  $smartLeadershipOpen = __isActiveSidebar(['admin.smart.*','admin/smart-leadership*']);
  $emailBroadcastOpen = __isActiveSidebar(['admin.email.*','admin/email/broadcast*']);
  $coursesOpen    = __isActiveSidebar(['admin.courses.*','admin.sessions.*','admin.videos.*','admin/courses*','admin/sessions*','admin/videos*']);
  $targetsOpen    = __isActiveSidebar(['admin.targets.*','admin/targets*']);
  $typingSettingsOpen = __isActiveSidebar(['admin.typing-job.settings.*','admin/typing-job/settings*']);
  $typingHistoryOpen  = __isActiveSidebar(['admin.typing-job.index','admin/typing-job/history*']);
  $vendorShipOpen = __isActiveSidebar(['admin.vendor-ship.*','admin/vendor-ship*']);

  /* NEW: Leadership menu open */
  $leadershipOpen = __isActiveSidebar([
    'admin.leadership.*',
    'admin/leadership*'
  ]);
@endphp

<style>
  #adminSidebar a,
  #adminSidebar a:visited,
  #adminSidebar a:hover,
  #adminSidebar a:active,
  #adminSidebar button{
    text-decoration:none !important;
    -webkit-tap-highlight-color:transparent;
  }
  #adminSidebar a:focus,
  #adminSidebar button:focus{outline:none;}
  #adminSidebar a:focus-visible,
  #adminSidebar button:focus-visible{
    outline:2px solid rgba(255,255,255,.55);
    outline-offset:2px;
    border-radius:8px;
  }

  #adminSidebar .sb-link{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:.5rem 1rem;
    border-radius:.5rem;
    transition:all .15s ease;
    color:rgba(255,255,255,.92);
    width:100%;
  }
  #adminSidebar .sb-link .sb-text{color:currentColor;}
  #adminSidebar .sb-icon-badge i{color:currentColor;}

  #adminSidebar .sb-hover:hover{background:{{ $g2 }} !important;color:#fff !important;}
  #adminSidebar .sb-active{background:{{ $g2 }} !important;color:#fff !important;font-weight:700;}

  .sb-icon-badge{
    width:26px;height:26px;border-radius:8px;
    display:inline-grid;place-items:center;
    background:rgba(255,255,255,.12);
    flex:0 0 auto;
  }

  #adminSidebar .submenu-toggle .fa-angle-down{
    color:currentColor;
    transition:transform .2s ease;
  }
  #adminSidebar .submenu-toggle.sb-active .fa-angle-down{transform:rotate(180deg);}
</style>

<div id="adminSidebar"
     class="fixed top-0 left-0 h-full w-64 text-white z-[9999] shadow-xl transform -translate-x-full transition-transform duration-300 ease-in-out flex flex-col"
     style="background:linear-gradient(180deg,{{ $g1 }},{{ $g2 }});">

  <div class="flex justify-between items-center px-4 py-4 h-[60px] shadow-md flex-shrink-0 z-10"
       style="background:rgba(0,0,0,.12);">
    <span class="text-lg font-bold">মেনু</span>
    <button id="closeSidebar" class="text-2xl hover:opacity-80 transition" aria-label="Close sidebar">&times;</button>
  </div>

  <div class="overflow-y-auto flex-grow px-2 py-3">
    <ul class="space-y-1 pb-6 text-sm">

      <li>
        <a href="{{ route('admin.dashboard') }}"
           class="sb-link {{ __isActiveSidebar(['admin.dashboard','admin/dashboard']) ? 'sb-active' : 'sb-hover' }}">
          <span class="flex items-center gap-2 sb-text">
            <span class="sb-icon-badge"><i class="fa-solid fa-gauge"></i></span>
            ড্যাশবোর্ড
          </span>
        </a>
      </li>

      @if($isSuperAdmin)
        <li>
          @if(\App\Models\Admin::supportsRolePermissions() && $hasSubAdminsRoute)
            <a href="{{ route('admin.sub-admins.index') }}"
               class="sb-link {{ __isActiveSidebar(['admin.sub-admins.*','admin/sub-admins*']) ? 'sb-active' : 'sb-hover' }}">
              <span class="flex items-center gap-2 sb-text">
                <span class="sb-icon-badge"><i class="fa-solid fa-user-shield"></i></span>
                সাব এডমিন ম্যানেজ
              </span>
            </a>
          @else
            <span class="sb-link opacity-75 cursor-not-allowed">
              <span class="flex items-center gap-2 sb-text">
                <span class="sb-icon-badge"><i class="fa-solid fa-user-shield"></i></span>
                সাব এডমিন (মাইগ্রেশন বাকি)
              </span>
            </span>
          @endif
        </li>

        @if($hasActivityLockRoute)
          <li>
            <a href="{{ route('admin.activity-lock.index') }}"
               class="sb-link {{ __isActiveSidebar(['admin.activity-lock.*','admin/activity-lock*']) ? 'sb-active' : 'sb-hover' }}">
              <span class="flex items-center gap-2 sb-text">
                <span class="sb-icon-badge"><i class="fa-solid fa-shield-halved"></i></span>
                অ্যাক্টিভিটি লক
              </span>
            </a>
          </li>
        @endif

        @if($hasSecurityCredentialsRoute)
          <li>
            <a href="{{ route('admin.security-credentials.edit') }}"
               class="sb-link {{ __isActiveSidebar(['admin.security-credentials.*','admin/security-credentials*']) ? 'sb-active' : 'sb-hover' }}">
              <span class="flex items-center gap-2 sb-text">
                <span class="sb-icon-badge"><i class="fa-solid fa-key"></i></span>
                সিকিউরিটি পাসওয়ার্ড
              </span>
            </a>
          </li>
        @endif

        @if($hasGraphqlReadOnlyRoute)
          <li>
            <a href="{{ route('admin.graphql-read-only.index') }}"
               class="sb-link {{ __isActiveSidebar(['admin.graphql-read-only.*','admin/graphql-read-only*']) ? 'sb-active' : 'sb-hover' }}">
              <span class="flex items-center gap-2 sb-text">
                <span class="sb-icon-badge"><i class="fa-solid fa-code"></i></span>
                GraphQL Read-Only
              </span>
            </a>
          </li>
        @endif
      @endif

      @if($usersCanOpenMenu)
        <li>
          <button type="button" class="sb-link submenu-toggle {{ $usersOpen ? 'sb-active' : 'sb-hover' }}">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-users"></i></span>
              ইউজার ম্যানেজমেন্ট
            </span>
            <i class="fa-solid fa-angle-down"></i>
          </button>

          <ul class="{{ $usersOpen ? '' : 'hidden' }} ml-6 mt-1 space-y-1 submenu">
            @if($usersCanAll)
              <li>
                <a href="{{ route('admin.users') }}"
                   class="sb-link {{ __isActiveSidebar(['admin.users','admin/users']) ? 'sb-active' : 'sb-hover' }}">
                  <span class="flex items-center gap-2 sb-text">
                    <i class="fa-solid fa-users text-xs"></i> সকল ইউজার
                  </span>
                </a>
              </li>
            @endif
            @if($usersCanActive)
              <li>
                <a href="{{ route('admin.users.active') }}"
                   class="sb-link {{ __isActiveSidebar(['admin.users.active','admin/active-users']) ? 'sb-active' : 'sb-hover' }}">
                  <span class="flex items-center gap-2 sb-text">
                    <i class="fa-solid fa-user-check text-xs"></i> Active Users
                  </span>
                </a>
              </li>
            @endif
            @if($usersCanInactive)
              <li>
                <a href="{{ route('admin.users.inactive') }}"
                   class="sb-link {{ __isActiveSidebar(['admin.users.inactive','admin/users/inactive']) ? 'sb-active' : 'sb-hover' }}">
                  <span class="flex items-center gap-2 sb-text">
                    <i class="fa-solid fa-user-clock text-xs"></i> Inactive Users
                  </span>
                </a>
              </li>
            @endif
            @if($usersCanBanned)
              <li>
                <a href="{{ route('admin.users.banned') }}"
                   class="sb-link {{ __isActiveSidebar(['admin.users.banned','admin/users/banned']) ? 'sb-active' : 'sb-hover' }}">
                  <span class="flex items-center gap-2 sb-text">
                    <i class="fa-solid fa-user-slash text-xs"></i> Banned Users
                  </span>
                </a>
              </li>
            @endif
            @if($usersCanWithdrawHold)
              <li>
                <a href="{{ route('admin.users.withdraw-hold.index') }}"
                   class="sb-link {{ __isActiveSidebar(['admin.users.withdraw-hold.*','admin/users/withdraw-hold*']) ? 'sb-active' : 'sb-hover' }}">
                  <span class="flex items-center gap-2 sb-text">
                    <i class="fa-solid fa-hand text-xs"></i> Withdraw Hold
                  </span>
                </a>
              </li>
            @endif
          </ul>
        </li>
      @endif

      @if($canAccessProject('payments'))
        <li>
          <a href="{{ route('admin.payments.index') }}"
             class="sb-link {{ $paymentsOpen ? 'sb-active' : 'sb-hover' }}">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-money-check-dollar"></i></span>
              পেমেন্টস
            </span>
          </a>
        </li>
      @endif

      @if($canAccessProject('finance'))
        <li>
          <a href="{{ route('admin.finance.index') }}"
             class="sb-link {{ __isActiveSidebar(['admin.finance.*','admin/finance*']) ? 'sb-active' : 'sb-hover' }}">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-calculator"></i></span>
              হিসাব-নিকাশ
            </span>
          </a>
        </li>
      @endif

      @if($canAccessProject('balance'))
        <li>
          <a href="{{ route('admin.balance.form') }}"
             class="sb-link {{ __isActiveSidebar(['admin.balance.*','admin/balance*']) ? 'sb-active' : 'sb-hover' }}">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-wallet"></i></span>
              ব্যালেন্স আপডেট
            </span>
          </a>
        </li>
      @endif

      @if($activationCanManage || $activationCanHistory)
        <li>
          <button type="button" class="sb-link submenu-toggle {{ $activationOpen ? 'sb-active' : 'sb-hover' }}">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-user-check"></i></span>
              অ্যাকাউন্ট অ্যাক্টিভেশন
            </span>
            <i class="fa-solid fa-angle-down"></i>
          </button>

          <ul class="{{ $activationOpen ? '' : 'hidden' }} ml-6 mt-1 space-y-1 submenu">
            @if($activationCanManage)
              <li>
                <a href="{{ route('admin.activation_requests.index') }}"
                   class="sb-link {{ __isActiveSidebar(['admin.activation_requests.index','admin/activation-requests']) ? 'sb-active' : 'sb-hover' }}">
                  <span class="flex items-center gap-2 sb-text">
                    <i class="fa-solid fa-user-pen text-xs"></i> ভেরিফাই / ম্যানেজ
                  </span>
                </a>
              </li>
            @endif

            @if($activationCanHistory)
              <li>
                <a href="{{ route('admin.activation_requests.history', ['status' => 'all']) }}"
                   class="sb-link {{ __isActiveSidebar(['admin.activation_requests.history','admin/activation-requests/history*']) ? 'sb-active' : 'sb-hover' }}">
                  <span class="flex items-center gap-2 sb-text">
                    <i class="fa-solid fa-clock-rotate-left text-xs"></i> হিস্টোরি
                  </span>
                </a>
              </li>
            @endif
          </ul>
        </li>
      @endif
      
      @if($canAccessProject('recharge_settings'))
        <li>
          <a href="{{ route('admin.recharge.settings.edit') }}"
             class="sb-link {{ __isActiveSidebar(['admin.recharge.settings.*','admin/recharge-settings*']) ? 'sb-active' : 'sb-hover' }}">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-mobile-screen-button"></i></span>
              রিচার্জ সেটিংস
            </span>
          </a>
        </li>
      @endif

      @if($canAccessProject('recharge_manage'))
        <li>
          <a href="{{ route('admin.recharge.index') }}"
             class="sb-link {{ __isActiveSidebar(['admin.recharge.index','admin/recharges*']) ? 'sb-active' : 'sb-hover' }}">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-signal"></i></span>
              রিচার্জ ম্যানেজ
            </span>
          </a>
        </li>
      @endif

      @if($canAccessProject('welcome_offer'))
        <li>
          <a href="{{ route('admin.welcome-offer.edit') }}"
             class="sb-link {{ __isActiveSidebar(['admin.welcome-offer.*','admin/welcome-offer*']) ? 'sb-active' : 'sb-hover' }}">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-gift"></i></span>
              ওয়েলকাম অফার
            </span>
          </a>
        </li>
      @endif

      @if($canAccessAnyProject(['typing_job', 'typing_job_settings']))
        <li>
          <a href="{{ route('admin.typing-job.settings.edit') }}"
             class="sb-link {{ $typingSettingsOpen ? 'sb-active' : 'sb-hover' }}">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-sliders"></i></span>
              টাইপিং সেটিংস
            </span>
          </a>
        </li>
      @endif

      @if($canAccessAnyProject(['typing_job', 'typing_job_history']))
        <li>
          <a href="{{ route('admin.typing-job.index') }}"
             class="sb-link {{ $typingHistoryOpen ? 'sb-active' : 'sb-hover' }}">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-keyboard"></i></span>
              টাইপিং জব হিস্টোরি
            </span>
          </a>
        </li>
      @endif

      @if($canAccessProject('targets'))
        <li>
          <a href="{{ route('admin.targets.index') }}"
             class="sb-link {{ $targetsOpen ? 'sb-active' : 'sb-hover' }}">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-bullseye"></i></span>
              টার্গেট বোনাস
            </span>
          </a>
        </li>
      @endif

      @if($canAccessAnyProject(['leadership','leadership_ranks','leadership_claims']))
        {{-- NEW: Leadership Control Menu --}}
        <li>
          <button type="button" class="sb-link submenu-toggle {{ $leadershipOpen ? 'sb-active' : 'sb-hover' }}">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-trophy"></i></span>
              লিডারশিপ
            </span>
            <i class="fa-solid fa-angle-down"></i>
          </button>

          <ul class="{{ $leadershipOpen ? '' : 'hidden' }} ml-6 mt-1 space-y-1 submenu">
            @if($canAccessAnyProject(['leadership','leadership_ranks']))
              <li>
                <a href="{{ route('admin.leadership.ranks.index') }}"
                   class="sb-link {{ __isActiveSidebar(['admin.leadership.ranks.*','admin/leadership/ranks*']) ? 'sb-active' : 'sb-hover' }}">
                  <span class="flex items-center gap-2 sb-text">
                    <i class="fa-solid fa-ranking-star text-xs"></i> র‍্যাঙ্ক সেটিংস
                  </span>
                </a>
              </li>
            @endif

            @if($canAccessAnyProject(['leadership','leadership_claims']))
              <li>
                <a href="{{ route('admin.leadership.claims.index') }}"
                   class="sb-link {{ __isActiveSidebar(['admin.leadership.claims.*','admin/leadership/claims*']) ? 'sb-active' : 'sb-hover' }}">
                  <span class="flex items-center gap-2 sb-text">
                    <i class="fa-solid fa-receipt text-xs"></i> ক্লেইম হিস্ট্রি
                  </span>
                </a>
              </li>
            @endif
          </ul>
        </li>
      @endif

      @if($canAccessAnyProject(['courses','courses_list','courses_create']))
        <li>
          <button type="button" class="sb-link submenu-toggle {{ $coursesOpen ? 'sb-active' : 'sb-hover' }}">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-graduation-cap"></i></span>
              কোর্স ম্যানেজ
            </span>
            <i class="fa-solid fa-angle-down"></i>
          </button>

          <ul class="{{ $coursesOpen ? '' : 'hidden' }} ml-6 mt-1 space-y-1 submenu">
            @if($canAccessAnyProject(['courses','courses_list']))
              <li>
                <a href="{{ route('admin.courses.index') }}"
                   class="sb-link {{ __isActiveSidebar(['admin.courses.index','admin.courses.*','admin/courses*']) ? 'sb-active' : 'sb-hover' }}">
                  <span class="flex items-center gap-2 sb-text">
                    <i class="fa-solid fa-list text-xs"></i> সকল কোর্স
                  </span>
                </a>
              </li>
            @endif
            @if($canAccessAnyProject(['courses','courses_create']))
              <li>
                <a href="{{ route('admin.courses.create') }}"
                   class="sb-link {{ __isActiveSidebar(['admin.courses.create']) ? 'sb-active' : 'sb-hover' }}">
                  <span class="flex items-center gap-2 sb-text">
                    <i class="fa-solid fa-plus text-xs"></i> কোর্স যোগ করুন
                  </span>
                </a>
              </li>
            @endif
          </ul>
        </li>
      @endif

      @if($canAccessProject('smart_leadership'))
        <li>
          <a href="{{ route('admin.smart.index') }}"
             class="sb-link {{ $smartLeadershipOpen ? 'sb-active' : 'sb-hover' }}">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-chess-king"></i></span>
              স্মার্ট লিডারশিপ
            </span>
          </a>
        </li>
      @endif

      @if($canAccessProject('email_broadcast'))
        <li>
          <a href="{{ route('admin.email.create') }}"
             class="sb-link {{ $emailBroadcastOpen ? 'sb-active' : 'sb-hover' }}">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-paper-plane"></i></span>
              ব্রডকাস্ট ইমেইল
            </span>
          </a>
        </li>
      @endif

      @if($canAccessProject('general_settings'))
        <li>
          <a href="{{ route('admin.general-settings.edit') }}"
             class="sb-link {{ __isActiveSidebar(['admin.general-settings.*','admin/general-settings*']) ? 'sb-active' : 'sb-hover' }}">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-cog"></i></span>
              সাধারণ সেটিংস
            </span>
          </a>
        </li>
      @endif

      @if($canAccessProject('project_settings'))
        <li>
          <a href="{{ route('admin.dashboard-projects.index') }}"
             class="sb-link {{ __isActiveSidebar(['admin.dashboard-projects.*','admin/dashboard-projects*']) ? 'sb-active' : 'sb-hover' }}">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-diagram-project"></i></span>
              প্রজেক্ট সেটিংস
            </span>
          </a>
        </li>
      @endif

      @if($canAccessProject('fixed_commissions'))
        <li>
          <a href="{{ route('admin.fixedCommissions.edit') }}"
             class="sb-link {{ __isActiveSidebar(['admin.fixedCommissions.*','admin/fixed-commissions*']) ? 'sb-active' : 'sb-hover' }}">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-sitemap"></i></span>
              রেফার কমিশন
            </span>
          </a>
        </li>
      @endif

      @if($canAccessProject('reviews'))
        <li>
          <a href="{{ route('admin.reviews.index') }}"
             class="sb-link {{ __isActiveSidebar(['admin.reviews.*','admin/reviews*']) ? 'sb-active' : 'sb-hover' }}">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-star"></i></span>
              রেটিংস & রিভিউ
            </span>
          </a>
        </li>
      @endif
      
      @if($canAccessProject('digital_services'))
        <li>
          <a href="{{ route('admin.dg_services.index') }}"
             class="sb-link {{ __isActiveSidebar(['admin.dg_services.*','admin/dg-services*']) ? 'sb-active' : 'sb-hover' }}">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-layer-group"></i></span>
              ডিজিটাল সার্ভিস
            </span>
          </a>
        </li>
      @endif

      @if($canAccessAnyProject(['instagram','instagram_settings','instagram_sales']))
        @if($canAccessAnyProject(['instagram','instagram_settings']))
          <li>
            <a href="{{ route('admin.in.settings') }}"
               class="sb-link {{ __isActiveSidebar(['admin.in.settings*','admin/in-settings*']) ? 'sb-active' : 'sb-hover' }}">
              <span class="flex items-center gap-2 sb-text">
                <span class="sb-icon-badge"><i class="fa-brands fa-instagram"></i></span>
                ইনস্টাগ্রাম সেটিংস
              </span>
            </a>
          </li>
        @endif

        @if($canAccessAnyProject(['instagram','instagram_sales']))
          <li>
            <a href="{{ route('admin.in.accounts') }}"
               class="sb-link {{ __isActiveSidebar(['admin.in.accounts*','admin/in/accounts*']) ? 'sb-active' : 'sb-hover' }}">
              <span class="flex items-center gap-2 sb-text">
                <span class="sb-icon-badge"><i class="fa-brands fa-instagram"></i></span>
                ইনস্টাগ্রাম সেলস
              </span>
            </a>
          </li>
        @endif
      @endif

      @if($canAccessAnyProject(['products','products_categories','products_items','products_orders']))
        <li>
          <button type="button" class="sb-link submenu-toggle {{ $productOpen ? 'sb-active' : 'sb-hover' }}">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-box"></i></span>
              প্রোডাক্টস
            </span>
            <i class="fa-solid fa-angle-down"></i>
          </button>

          <ul class="{{ $productOpen ? '' : 'hidden' }} ml-6 mt-1 space-y-1 submenu">
            @if($canAccessAnyProject(['products','products_categories']))
              <li>
                <a href="{{ route('admin.pd-categories.index') }}"
                   class="sb-link {{ __isActiveSidebar(['admin.pd-categories.*','admin/pd-categories*']) ? 'sb-active' : 'sb-hover' }}">
                  <span class="flex items-center gap-2 sb-text">
                    <i class="fa-solid fa-layer-group text-xs"></i> ক্যাটাগরি
                  </span>
                </a>
              </li>
            @endif
            @if($canAccessAnyProject(['products','products_items']))
              <li>
                <a href="{{ route('admin.products.index') }}"
                   class="sb-link {{ __isActiveSidebar(['admin.products.*','admin/products*']) ? 'sb-active' : 'sb-hover' }}">
                  <span class="flex items-center gap-2 sb-text">
                    <i class="fa-solid fa-box-open text-xs"></i> প্রোডাক্টস
                  </span>
                </a>
              </li>
            @endif
            @if($canAccessAnyProject(['products','products_orders']))
              <li>
                <a href="{{ route('admin.pdorders.index') }}"
                   class="sb-link {{ __isActiveSidebar(['admin.pdorders.*','admin/pd-orders*','admin/pdorders*']) ? 'sb-active' : 'sb-hover' }}">
                  <span class="flex items-center gap-2 sb-text">
                    <i class="fa-solid fa-receipt text-xs"></i> অর্ডার
                  </span>
                </a>
              </li>
            @endif
          </ul>
        </li>
      @endif

      @if($canAccessProject('vendor_ship'))
        <li>
          <button type="button" class="sb-link submenu-toggle {{ $vendorShipOpen ? 'sb-active' : 'sb-hover' }}">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-store"></i></span>
              ভেন্ডর শিপ
            </span>
            <i class="fa-solid fa-angle-down"></i>
          </button>

          <ul class="{{ $vendorShipOpen ? '' : 'hidden' }} ml-6 mt-1 space-y-1 submenu">
            <li>
              <a href="{{ route('admin.vendor-ship.vendors') }}"
                 class="sb-link {{ __isActiveSidebar(['admin.vendor-ship.vendors','admin/vendor-ship/vendors*']) ? 'sb-active' : 'sb-hover' }}">
                <span class="flex items-center gap-2 sb-text">
                  <i class="fa-solid fa-users text-xs"></i> ভেন্ডর লিস্ট
                </span>
              </a>
            </li>
            <li>
              <a href="{{ route('admin.vendor-ship.products') }}"
                 class="sb-link {{ __isActiveSidebar(['admin.vendor-ship.products','admin/vendor-ship/products*']) ? 'sb-active' : 'sb-hover' }}">
                <span class="flex items-center gap-2 sb-text">
                  <i class="fa-solid fa-box-open text-xs"></i> ভেন্ডর প্রোডাক্ট
                </span>
              </a>
            </li>
            <li>
              <a href="{{ route('admin.vendor-ship.orders') }}"
                 class="sb-link {{ __isActiveSidebar(['admin.vendor-ship.orders','admin/vendor-ship/orders*']) ? 'sb-active' : 'sb-hover' }}">
                <span class="flex items-center gap-2 sb-text">
                  <i class="fa-solid fa-receipt text-xs"></i> ভেন্ডর অর্ডার
                </span>
              </a>
            </li>
          </ul>
        </li>
      @endif

      @if($canAccessAnyProject(['withdraw','withdraw_methods','withdraw_pending','withdraw_approved','withdraw_rejected','withdraw_history']))
        @if($canAccessAnyProject(['withdraw','withdraw_methods']))
          <li>
            <a href="{{ route('admin.withdraw.settings') }}"
               class="sb-link {{ __isActiveSidebar(['admin.withdraw.settings','admin/withdraw-settings*']) ? 'sb-active' : 'sb-hover' }}">
              <span class="flex items-center gap-2 sb-text">
                <span class="sb-icon-badge"><i class="fa-solid fa-money-bill-transfer"></i></span>
                উইথড্রো মেথড
              </span>
            </a>
          </li>
        @endif

        @if($canAccessAnyProject(['withdraw','withdraw_pending','withdraw_approved','withdraw_rejected','withdraw_history']))
          <li>
            <button type="button" class="sb-link submenu-toggle {{ $withdrawOpen ? 'sb-active' : 'sb-hover' }}">
              <span class="flex items-center gap-2 sb-text">
                <span class="sb-icon-badge"><i class="fa-solid fa-hand-holding-dollar"></i></span>
                উইথড্রো রিকোয়েস্ট
              </span>
              <i class="fa-solid fa-angle-down"></i>
            </button>

            <ul class="{{ $withdrawOpen ? '' : 'hidden' }} ml-6 mt-1 space-y-1 submenu">
              @if($canAccessAnyProject(['withdraw','withdraw_pending']))
                <li>
                  <a href="{{ route('admin.withdraw.pending') }}"
                     class="sb-link {{ __isActiveSidebar(['admin.withdraw.pending']) ? 'sb-active' : 'sb-hover' }}">
                    <span class="flex items-center gap-2 sb-text">
                      <i class="fa-solid fa-clock text-xs"></i> পেন্ডিং রিকোয়েস্ট
                    </span>
                  </a>
                </li>
              @endif
              @if($canAccessAnyProject(['withdraw','withdraw_approved']))
                <li>
                  <a href="{{ route('admin.withdraw.approved') }}"
                     class="sb-link {{ __isActiveSidebar(['admin.withdraw.approved']) ? 'sb-active' : 'sb-hover' }}">
                    <span class="flex items-center gap-2 sb-text">
                      <i class="fa-solid fa-check text-xs"></i> এপ্রুভ রিকোয়েস্ট
                    </span>
                  </a>
                </li>
              @endif
              @if($canAccessAnyProject(['withdraw','withdraw_rejected']))
                <li>
                  <a href="{{ route('admin.withdraw.rejected') }}"
                     class="sb-link {{ __isActiveSidebar(['admin.withdraw.rejected']) ? 'sb-active' : 'sb-hover' }}">
                    <span class="flex items-center gap-2 sb-text">
                      <i class="fa-solid fa-xmark text-xs"></i> রিজেক্ট রিকোয়েস্ট
                    </span>
                  </a>
                </li>
              @endif
              @if($canAccessAnyProject(['withdraw','withdraw_history']))
                <li>
                  <a href="{{ route('admin.withdraw.history') }}"
                     class="sb-link {{ __isActiveSidebar(['admin.withdraw.history']) ? 'sb-active' : 'sb-hover' }}">
                    <span class="flex items-center gap-2 sb-text">
                      <i class="fa-solid fa-clock-rotate-left text-xs"></i> সব হিস্ট্রি
                    </span>
                  </a>
                </li>
              @endif
            </ul>
          </li>
        @endif
      @endif

      @if($canAccessAnyProject(['gmail','gmail_settings','gmail_sales_all','gmail_sales_pending','gmail_sales_processing','gmail_sales_completed','gmail_sales_rejected']))
        @if($canAccessAnyProject(['gmail','gmail_settings']))
          <li>
            <a href="{{ route('admin.gmail.setting') }}"
               class="sb-link {{ __isActiveSidebar(['admin.gmail.setting*','admin/gmail-setting*']) ? 'sb-active' : 'sb-hover' }}">
              <span class="flex items-center gap-2 sb-text">
                <span class="sb-icon-badge"><i class="fa-solid fa-gear"></i></span>
                জিমেইল সেটিংস
              </span>
            </a>
          </li>
        @endif

        @if($canAccessAnyProject(['gmail','gmail_sales_all','gmail_sales_pending','gmail_sales_processing','gmail_sales_completed','gmail_sales_rejected']))
          <li>
            <button type="button" class="sb-link submenu-toggle {{ $gmailSalesOpen ? 'sb-active' : 'sb-hover' }}">
              <span class="flex items-center gap-2 sb-text">
                <span class="sb-icon-badge"><i class="fa-solid fa-envelope"></i></span>
                জিমেইল সেলস
              </span>
              <i class="fa-solid fa-angle-down"></i>
            </button>

            <ul class="{{ $gmailSalesOpen ? '' : 'hidden' }} ml-6 mt-1 space-y-1 submenu">
              @if($canAccessAnyProject(['gmail','gmail_sales_all']))
                <li>
                  <a href="{{ route('admin.gmail.sales.index') }}"
                     class="sb-link {{ __isActiveSidebar(['admin.gmail.sales.*','admin/gmail-sales*']) ? 'sb-active' : 'sb-hover' }}">
                    <span class="flex items-center gap-2 sb-text">
                      <i class="fa-solid fa-list text-xs"></i> সকল জিমেইল
                    </span>
                  </a>
                </li>
              @endif
              @if($canAccessAnyProject(['gmail','gmail_sales_pending']))
                <li>
                  <a href="{{ route('admin.gmail.sales.pending') }}"
                     class="sb-link {{ __isActiveSidebar(['admin.gmail.sales.pending']) ? 'sb-active' : 'sb-hover' }}">
                    <span class="flex items-center gap-2 sb-text">
                      <i class="fa-solid fa-clock text-xs"></i> পেন্ডিং জিমেইল
                    </span>
                  </a>
                </li>
              @endif
              @if($canAccessAnyProject(['gmail','gmail_sales_processing']))
                <li>
                  <a href="{{ route('admin.gmail.sales.checked') }}"
                     class="sb-link {{ __isActiveSidebar(['admin.gmail.sales.checked']) ? 'sb-active' : 'sb-hover' }}">
                    <span class="flex items-center gap-2 sb-text">
                      <i class="fa-solid fa-spinner text-xs"></i> প্রসেসিং জিমেইল
                    </span>
                  </a>
                </li>
              @endif
              @if($canAccessAnyProject(['gmail','gmail_sales_completed']))
                <li>
                  <a href="{{ route('admin.gmail.sales.completed') }}"
                     class="sb-link {{ __isActiveSidebar(['admin.gmail.sales.completed']) ? 'sb-active' : 'sb-hover' }}">
                    <span class="flex items-center gap-2 sb-text">
                      <i class="fa-solid fa-check text-xs"></i> কমপ্লিট জিমেইল
                    </span>
                  </a>
                </li>
              @endif
              @if($canAccessAnyProject(['gmail','gmail_sales_rejected']))
                <li>
                  <a href="{{ route('admin.gmail.sales.rejected') }}"
                     class="sb-link {{ __isActiveSidebar(['admin.gmail.sales.rejected']) ? 'sb-active' : 'sb-hover' }}">
                    <span class="flex items-center gap-2 sb-text">
                      <i class="fa-solid fa-xmark text-xs"></i> রিজেক্ট জিমেইল
                    </span>
                  </a>
                </li>
              @endif
            </ul>
          </li>
        @endif
      @endif

      @if($canAccessAnyProject(['facebook','facebook_settings','facebook_pending','facebook_processing','facebook_approved','facebook_rejected']))
        @if($canAccessAnyProject(['facebook','facebook_settings']))
          <li>
            <a href="{{ route('admin.fb.settings') }}"
               class="sb-link {{ __isActiveSidebar(['admin.fb.settings*','admin/fb/settings*']) ? 'sb-active' : 'sb-hover' }}">
              <span class="flex items-center gap-2 sb-text">
                <span class="sb-icon-badge"><i class="fa-solid fa-gear"></i></span>
                ফেসবুক সেটিংস
              </span>
            </a>
          </li>
        @endif

        @if($canAccessAnyProject(['facebook','facebook_pending','facebook_processing','facebook_approved','facebook_rejected']))
          <li>
            <button type="button" class="sb-link submenu-toggle {{ $fbSalesOpen ? 'sb-active' : 'sb-hover' }}">
              <span class="flex items-center gap-2 sb-text">
                <span class="sb-icon-badge"><i class="fa-brands fa-facebook"></i></span>
                ফেসবুক সেলস
              </span>
              <i class="fa-solid fa-angle-down"></i>
            </button>

            <ul class="{{ $fbSalesOpen ? '' : 'hidden' }} ml-6 mt-1 space-y-1 submenu">
              @if($canAccessAnyProject(['facebook','facebook_pending']))
                <li>
                  <a href="{{ route('admin.fb.submissions.status', ['status' => 'pending']) }}"
                     class="sb-link {{ __isActiveSidebar(['admin/fb/submissions/pending']) ? 'sb-active' : 'sb-hover' }}">
                    <span class="flex items-center gap-2 sb-text">
                      <i class="fa-solid fa-clock text-xs"></i> পেন্ডিং ফেসবুক
                    </span>
                  </a>
                </li>
              @endif
              @if($canAccessAnyProject(['facebook','facebook_processing']))
                <li>
                  <a href="{{ route('admin.fb.submissions.status', ['status' => 'processing']) }}"
                     class="sb-link {{ __isActiveSidebar(['admin/fb/submissions/processing']) ? 'sb-active' : 'sb-hover' }}">
                    <span class="flex items-center gap-2 sb-text">
                      <i class="fa-solid fa-spinner text-xs"></i> প্রসেসিং ফেসবুক
                    </span>
                  </a>
                </li>
              @endif
              @if($canAccessAnyProject(['facebook','facebook_approved']))
                <li>
                  <a href="{{ route('admin.fb.submissions.status', ['status' => 'approved']) }}"
                     class="sb-link {{ __isActiveSidebar(['admin/fb/submissions/approved']) ? 'sb-active' : 'sb-hover' }}">
                    <span class="flex items-center gap-2 sb-text">
                      <i class="fa-solid fa-check text-xs"></i> এপ্রুভড ফেসবুক
                    </span>
                  </a>
                </li>
              @endif
              @if($canAccessAnyProject(['facebook','facebook_rejected']))
                <li>
                  <a href="{{ route('admin.fb.submissions.status', ['status' => 'rejected']) }}"
                     class="sb-link {{ __isActiveSidebar(['admin/fb/submissions/rejected']) ? 'sb-active' : 'sb-hover' }}">
                    <span class="flex items-center gap-2 sb-text">
                      <i class="fa-solid fa-xmark text-xs"></i> রিজেক্টেড ফেসবুক
                    </span>
                  </a>
                </li>
              @endif
            </ul>
          </li>
        @endif
      @endif

      @if($canAccessAnyProject(['jobs','jobs_settings','jobs_requests_pending','jobs_requests_approved','jobs_requests_rejected','jobs_submissions_pending','jobs_submissions_approved','jobs_submissions_rejected','jobs_submissions_manage']))
        @if($canAccessAnyProject(['jobs','jobs_settings']))
          <li>
            <a href="{{ route('admin.jobs.index') }}"
               class="sb-link {{ __isActiveSidebar(['admin.jobs.*','admin/jobs*']) ? 'sb-active' : 'sb-hover' }}">
              <span class="flex items-center gap-2 sb-text">
                <span class="sb-icon-badge"><i class="fa-solid fa-briefcase"></i></span>
                মাইক্রো জব সেটিংস
              </span>
            </a>
          </li>
        @endif

        @if($canAccessAnyProject(['jobs','jobs_requests_pending','jobs_requests_approved','jobs_requests_rejected']))
          <li>
            <button type="button" class="sb-link submenu-toggle {{ $jobsReqOpen ? 'sb-active' : 'sb-hover' }}">
              <span class="flex items-center gap-2 sb-text">
                <span class="sb-icon-badge"><i class="fa-solid fa-file-circle-check"></i></span>
                জব রিকোয়েস্ট
              </span>
              <i class="fa-solid fa-angle-down"></i>
            </button>

            <ul class="{{ $jobsReqOpen ? '' : 'hidden' }} ml-6 mt-1 space-y-1 submenu">
              @if($canAccessAnyProject(['jobs','jobs_requests_pending']))
                <li>
                  <a href="{{ route('admin.jobs.pending') }}"
                     class="sb-link {{ __isActiveSidebar(['admin.jobs.pending']) ? 'sb-active' : 'sb-hover' }}">
                    <span class="flex items-center gap-2 sb-text">
                      <i class="fa-solid fa-clock text-xs"></i> পেন্ডিং রিকোয়েস্ট
                    </span>
                  </a>
                </li>
              @endif
              @if($canAccessAnyProject(['jobs','jobs_requests_approved']))
                <li>
                  <a href="{{ route('admin.jobs.approved') }}"
                     class="sb-link {{ __isActiveSidebar(['admin.jobs.approved']) ? 'sb-active' : 'sb-hover' }}">
                    <span class="flex items-center gap-2 sb-text">
                      <i class="fa-solid fa-check text-xs"></i> এপ্রুভ রিকোয়েস্ট
                    </span>
                  </a>
                </li>
              @endif
              @if($canAccessAnyProject(['jobs','jobs_requests_rejected']))
                <li>
                  <a href="{{ route('admin.jobs.rejected') }}"
                     class="sb-link {{ __isActiveSidebar(['admin.jobs.rejected']) ? 'sb-active' : 'sb-hover' }}">
                    <span class="flex items-center gap-2 sb-text">
                      <i class="fa-solid fa-xmark text-xs"></i> রিজেক্ট রিকোয়েস্ট
                    </span>
                  </a>
                </li>
              @endif
            </ul>
          </li>
        @endif

        @if($canAccessAnyProject(['jobs','jobs_submissions_pending','jobs_submissions_approved','jobs_submissions_rejected','jobs_submissions_manage']))
          <li>
            <button type="button" class="sb-link submenu-toggle {{ $jobSubsOpen ? 'sb-active' : 'sb-hover' }}">
              <span class="flex items-center gap-2 sb-text">
                <span class="sb-icon-badge"><i class="fas fa-paper-plane"></i></span>
                জব সাবমিশন
              </span>
              <i class="fa-solid fa-angle-down"></i>
            </button>

            <ul class="{{ $jobSubsOpen ? '' : 'hidden' }} ml-6 mt-1 space-y-1 submenu">
              @if($canAccessAnyProject(['jobs','jobs_submissions_pending']))
                <li>
                  <a href="{{ route('admin.submissions.pending') }}"
                     class="sb-link {{ __isActiveSidebar(['admin.submissions.pending']) ? 'sb-active' : 'sb-hover' }}">
                    <span class="flex items-center gap-2 sb-text">
                      <i class="fas fa-hourglass-half text-xs"></i> পেন্ডিং সাবমিশন
                    </span>
                  </a>
                </li>
              @endif
              @if($canAccessAnyProject(['jobs','jobs_submissions_approved']))
                <li>
                  <a href="{{ route('admin.submissions.approved') }}"
                     class="sb-link {{ __isActiveSidebar(['admin.submissions.approved']) ? 'sb-active' : 'sb-hover' }}">
                    <span class="flex items-center gap-2 sb-text">
                      <i class="fas fa-check-circle text-xs"></i> এপ্রুভড সাবমিশন
                    </span>
                  </a>
                </li>
              @endif
              @if($canAccessAnyProject(['jobs','jobs_submissions_rejected']))
                <li>
                  <a href="{{ route('admin.submissions.rejected') }}"
                     class="sb-link {{ __isActiveSidebar(['admin.submissions.rejected']) ? 'sb-active' : 'sb-hover' }}">
                    <span class="flex items-center gap-2 sb-text">
                      <i class="fas fa-times-circle text-xs"></i> রিজেক্টেড সাবমিশন
                    </span>
                  </a>
                </li>
              @endif
            </ul>
          </li>
        @endif
      @endif

      @if($canAccessAnyProject(['offers','offers_manage','offers_settings','offers_orders_pending','offers_orders_completed','offers_orders_cancelled']))
        @if($canAccessAnyProject(['offers','offers_manage']))
          <li>
            <a href="{{ route('admin.offers.index') }}"
               class="sb-link {{ __isActiveSidebar(['admin.offers.index','admin.offers.create','admin.offers.edit','admin/offers','admin/offers/create','admin/offers/*/edit']) ? 'sb-active' : 'sb-hover' }}">
              <span class="flex items-center gap-2 sb-text">
                <span class="sb-icon-badge"><i class="fa-solid fa-gift"></i></span>
                ড্রাইভ অফার
              </span>
            </a>
          </li>
        @endif

        @if($canAccessAnyProject(['offers','offers_settings']))
          <li>
            <a href="{{ route('admin.offers.settings') }}"
               class="sb-link {{ __isActiveSidebar(['admin.offers.settings','admin/offers/settings*']) ? 'sb-active' : 'sb-hover' }}">
              <span class="flex items-center gap-2 sb-text">
                <span class="sb-icon-badge"><i class="fa-solid fa-toggle-on"></i></span>
                অফার কন্ট্রোল
              </span>
            </a>
          </li>
        @endif

        @if($canAccessAnyProject(['offers','offers_orders_pending','offers_orders_completed','offers_orders_cancelled']))
          <li>
            <button type="button" class="sb-link submenu-toggle {{ $ordersOpen ? 'sb-active' : 'sb-hover' }}">
              <span class="flex items-center gap-2 sb-text">
                <span class="sb-icon-badge"><i class="fa-solid fa-cart-shopping"></i></span>
                ড্রাইভ অর্ডার
              </span>
              <i class="fa-solid fa-angle-down"></i>
            </button>

            <ul class="{{ $ordersOpen ? '' : 'hidden' }} ml-6 mt-1 space-y-1 submenu">
              @if($canAccessAnyProject(['offers','offers_orders_pending']))
                <li>
                  <a href="{{ route('admin.orders.pending') }}"
                     class="sb-link {{ __isActiveSidebar(['admin.orders.pending']) ? 'sb-active' : 'sb-hover' }}">
                    <span class="flex items-center gap-2 sb-text">
                      <i class="fa-solid fa-clock text-xs"></i> পেন্ডিং অর্ডার
                    </span>
                  </a>
                </li>
              @endif
              @if($canAccessAnyProject(['offers','offers_orders_completed']))
                <li>
                  <a href="{{ route('admin.orders.completed') }}"
                     class="sb-link {{ __isActiveSidebar(['admin.orders.completed']) ? 'sb-active' : 'sb-hover' }}">
                    <span class="flex items-center gap-2 sb-text">
                      <i class="fa-solid fa-check text-xs"></i> কমপ্লিট অর্ডার
                    </span>
                  </a>
                </li>
              @endif
              @if($canAccessAnyProject(['offers','offers_orders_cancelled']))
                <li>
                  <a href="{{ route('admin.orders.cancelled') }}"
                     class="sb-link {{ __isActiveSidebar(['admin.orders.cancelled']) ? 'sb-active' : 'sb-hover' }}">
                    <span class="flex items-center gap-2 sb-text">
                      <i class="fa-solid fa-xmark text-xs"></i> ক্যান্সেল অর্ডার
                    </span>
                  </a>
                </li>
              @endif
            </ul>
          </li>
        @endif
      @endif

      @if(!$hasAnyProjectPermission)
        <li>
          <div class="sb-link">
            <span class="flex items-center gap-2 sb-text">
              <span class="sb-icon-badge"><i class="fa-solid fa-circle-info"></i></span>
              No project permission assigned
            </span>
          </div>
        </li>
      @endif

    </ul>
  </div>
</div>
