# Navigation links — apply

    cp -R nav-links/resources/* ./resources/

## Patch the security page (adds the Email OTP toggle):
    python3 nav-links/docs/patch-security-page.py

## Share the unread-notification count with the sidebar badge.
In app/Http/Middleware/HandleInertiaRequests.php share(), add inside the returned array:

    'unreadNotifications' => $request->user()
        ? \App\Notifications\Models\Notification::query()
            ->where(fn ($q) => $q->where('user_id', $request->user()->id)->orWhereNull('user_id'))
            ->whereNull('read_at')->count()
        : 0,

## Build
    node node_modules/vite/bin/vite.js build
    php artisan config:cache && php artisan route:cache

## What this fixes
Six pages were built but had no navigation:
  - /alerts, /notifications            -> now in the Platform nav (badge on unread)
  - /admin/organizations               -> Administration group (platform admins only)
  - /admin/studio                      -> Administration group
  - /admin/settings/credentials        -> Administration group
  - Email OTP enable/disable           -> toggle on Settings → Security
