@props(['variant' => 'desktop']) @php // Backend integration: replace these demo arrays with platform search, notifications, and account data. $prefix = 'super-admin'; $languages = $activeLanguages ?? [ ['code' => 'en', 'name' => 'English', 'native' => 'English', 'direction' => 'ltr'], ['code' => 'ar', 'name' => 'Arabic', 'native' => 'العربية', 'direction' => 'rtl'], ['code' => 'ur', 'name' => 'Urdu', 'native' => 'اردو', 'direction' => 'rtl'], ]; $currentLanguageCode = $currentLanguage?->code ?? app()->getLocale() ?? 'en'; $currentLanguageLabel = $currentLanguage?->name ?? 'English'; $user = auth()->user(); $userName = $user?->name ?? 'Platform Admin'; $userInitials = collect(preg_split('/\s+/', trim($userName)) ?: []) ->filter() ->take(2) ->map(fn ($part) => strtoupper(substr($part, 0, 1))) ->implode('') ?: 'SA'; $notifications = [ ['icon' => 'briefcase', 'title' => 'New business registered', 'message' => 'Glow Beauty Salon completed onboarding.', 'time' => '5m', 'status' => 'unread', 'action' => 'Review business', 'href' => route('super-admin.businesses.index')], ['icon' => 'credit-card', 'title' => 'Payment received', 'message' => 'Professional yearly subscription payment posted.', 'time' => '28m', 'status' => 'unread', 'action' => 'View payment', 'href' => route('super-admin.payments.index')], ['icon' => 'ticket', 'title' => 'Support ticket opened', 'message' => 'A business owner requested billing help.', 'time' => '1h', 'status' => 'read', 'action' => 'Open tickets', 'href' => route('super-admin.support.index')], ['icon' => 'calendar-check', 'title' => 'Trial ending soon', 'message' => 'Three trial businesses expire this week.', 'time' => '2h', 'status' => 'read', 'action' => 'View subscriptions', 'href' => route('super-admin.subscriptions.index')], ]; $quickActions = [ ['icon' => 'badge-dollar-sign', 'label' => 'Create Plan', 'description' => 'Add SaaS pricing plan', 'href' => route('super-admin.plans.create')], ['icon' => 'briefcase', 'label' => 'Businesses', 'description' => 'Review tenant accounts', 'href' => route('super-admin.businesses.index')], ['icon' => 'calendar-check', 'label' => 'Subscriptions', 'description' => 'Track trials and renewals', 'href' => route('super-admin.subscriptions.index')], ['icon' => 'credit-card', 'label' => 'Payments', 'description' => 'Review transactions', 'href' => route('super-admin.payments.index')], ['icon' => 'settings', 'label' => 'System Settings', 'description' => 'Update platform options', 'href' => route('super-admin.settings.system')], ]; $searchGroups = [ 'Businesses' => [ ['title' => 'Glow Beauty Salon', 'meta' => 'Professional plan - Active', 'href' => route('super-admin.businesses.index', ['q' => 'Glow Beauty Salon'])], ['title' => 'Prime Dental Clinic', 'meta' => 'Trial business - Owner account', 'href' => route('super-admin.businesses.index', ['q' => 'Prime Dental Clinic'])], ], 'Subscriptions' => [ ['title' => 'Professional yearly subscriptions', 'meta' => 'Filter subscription records', 'href' => route('super-admin.subscriptions.index', ['status' => 'active'])], ['title' => 'Trial businesses', 'meta' => 'Trials and expiring accounts', 'href' => route('super-admin.subscriptions.index', ['status' => 'trialing'])], ], 'Payments' => [ ['title' => 'Stripe transactions', 'meta' => 'Gateway payments', 'href' => route('super-admin.payments.index', ['method' => 'stripe'])], ['title' => 'Failed payments', 'meta' => 'Needs review', 'href' => route('super-admin.payments.index', ['status' => 'failed'])], ], ]; $recentSearches = ['Trial businesses', 'Failed payments', 'Support tickets']; $iconButton = 'relative flex h-11 w-11 shrink-0 items-center justify-center rounded-lg border border-booklio-border bg-white text-slate-600 shadow-soft transition hover:border-blue-200 hover:text-booklio-primary hover:shadow-card focus:outline-none focus:ring-4 focus:ring-blue-100'; $labelButton = 'flex h-11 shrink-0 items-center gap-2 rounded-lg border border-booklio-border bg-white px-3 text-sm font-bold text-slate-700 shadow-soft transition hover:border-blue-200 hover:text-booklio-primary hover:shadow-card focus:outline-none focus:ring-4 focus:ring-blue-100'; @endphp @if ($variant === 'desktop')
Quick actions
Jump into common platform workflows.
Language
Current: {{ $currentLanguageLabel }}
Help & support
Platform operations and support shortcuts.
Notifications
2 unread platform updates
{{ $userName }}
{{ $user?->email ?? 'Booklio SaaS owner' }}