loadPosts(); $this->loadThemeContent(); } private function loadPosts() { $articles = config('content.articles', []); $this->posts = collect($articles)->map(function ($article) { return [ 'id' => $article['id'], 'title' => $article['title'], 'excerpt' => $article['content']['intro'], // Using intro as excerpt 'image' => $article['image'], 'date' => $article['date'], 'readTime' => $article['readTime'], ]; })->all(); } private function loadThemeContent() { $theme = config('app.theme', 'b2in'); $this->content = config("content.themes.{$theme}.magazin_list", []); } public function render() { return view('livewire.web.components.sections.magazin-list'); } }