getUnreadChangelogCount(); } public function getEntriesProperty() { $user = Auth::user(); return app(ChangelogService::class)->getEntriesForUser($user); } public function openWhatsNewModal() { $this->showWhatsNewModal = true; } public function closeWhatsNewModal() { $this->showWhatsNewModal = false; } public function markAsRead($identifier) { app(ChangelogService::class)->markAsReadForUser($identifier, Auth::user()); } public function markAllAsRead() { app(ChangelogService::class)->markAllAsReadForUser(Auth::user()); } public function render() { return view('livewire.settings-dropdown', [ 'entries' => $this->entries, 'unreadCount' => $this->unreadCount, ]); } }