approve(); $this->dispatch('article-updated'); } public function reject(int $articleId): void { $article = Article::findOrFail($articleId); $article->reject(); $this->dispatch('article-updated'); } public function refresh(): void { $this->isRefreshing = true; ArticleDiscoveryJob::dispatch(); $this->dispatch('refresh-started'); } public function render(): \Illuminate\Contracts\View\View { $articles = Article::with(['feed', 'articlePublication']) ->orderBy('created_at', 'desc') ->paginate(15); $approvalsEnabled = Setting::isPublishingApprovalsEnabled(); return view('livewire.articles', [ 'articles' => $articles, 'approvalsEnabled' => $approvalsEnabled, ])->layout('layouts.app'); } }