*/ public function share(Request $request): array { return [ ...parent::share($request), 'name' => config('app.name'), 'portalOperator' => config('portal.operator_name'), 'educationEnabled' => (bool) config('education.enabled', false), 'aiEnabled' => (bool) config('investmoz_ai.enabled', false), 'existingBusinessEnabled' => (bool) config('existing-business.enabled', false), 'investorPathEnabled' => app(InvestorPath::class)->available(), 'flash' => ['success' => fn () => $request->session()->get('success'), 'warning' => fn () => $request->session()->get('warning')], 'auth' => [ 'user' => $request->user(), 'canManagePortal' => $request->user()?->can('manage-portal') ?? false, ], 'sidebarOpen' => ! $request->hasCookie('sidebar_state') || $request->cookie('sidebar_state') === 'true', ]; } }