notificationService->notifications($request->all()); return Inertia::render('notification/index', compact('notifications')); } /** * Display the specified resource. */ public function show(string $id) { $notification = $this->notificationService->markAsRead($id); return Inertia::render('notification/show', compact('notification')); } /** * Mark all notifications as read. */ public function markAllAsRead() { $this->notificationService->markAllAsRead(); return redirect()->back()->with('success', 'Alle Benachrichtigungen wurden als gelesen markiert'); } /** * Remove the specified resource from storage. */ public function destroy(string $id) { // } }