default() ->id('admin') ->path('admin') ->login(CustomLogin::class) ->colors([ 'primary' => Color::hex('#4163ff'), ]) ->defaultAvatarProvider(\App\Providers\Filament\AvatarProviders\DiceBearAvatarProvider::class) ->discoverResources(in: app_path('Filament/Resources'), for: 'App\Filament\Resources') ->discoverPages(in: app_path('Filament/Pages'), for: 'App\Filament\Pages') ->pages([ Dashboard::class, StudentManagement::class, StudentDashboard::class, StudentKnowledgeGraphPage::class, KnowledgePoints::class, KnowledgeMindmap::class, QuestionManagement::class, PromptManagement::class, RecommendationList::class, KnowledgePointStats::class, KnowledgeGraphIntegration::class, KnowledgeGraphExplorer::class, ]) ->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\Filament\Widgets') ->widgets([ DashboardQuickLinks::class, AccountWidget::class, ]) ->renderHook('panels::head.end', fn (): string => view('filament.layout.vite-styles')->render() . view('filament.layout.vite-scripts')->render() ) ->renderHook('global::head.start', fn (): string => view('filament.layout.vite-styles')->render()) ->renderHook('panels::body.end', fn (): string => view('filament.layout.math-renderer')->render()) ->renderHook( 'panels::page.header.actions.after', fn () => view('filament.components.menu-visibility-toggle') ) ->middleware([ EncryptCookies::class, AddQueuedCookiesToResponse::class, StartSession::class, AuthenticateSession::class, ShareErrorsFromSession::class, VerifyCsrfToken::class, SubstituteBindings::class, DisableBladeIconComponents::class, DispatchServingFilamentEvent::class, ]) ->authMiddleware([ Authenticate::class, ]); } }