getFirstGuide(); if ($firstGuide) { $this->selectedGuide = $firstGuide['slug']; } } public static function getNavigationLabel(): string { return __('user-guide.navigation_label'); } public function getTitle(): string { return __('user-guide.title'); } public function getGuides(): array { $guideService = app(GuideService::class); return $guideService->getAllGuides(); } public function getSelectedGuideContent(): ?array { if (!$this->selectedGuide) { return null; } $guideService = app(GuideService::class); return $guideService->getGuide($this->selectedGuide); } public function selectGuide(string $slug): void { $guideService = app(GuideService::class); if ($guideService->guideExists($slug)) { $this->selectedGuide = $slug; } } }