user()->character; if (!$character) { return redirect()->route('game.character.create'); } // Get recent activity logs $recentActivity = ActivityLog::where('character_id', $character->id) ->latest() ->take(10) ->get(); // Get unread notifications $unreadNotifications = $request->user()->notifications() ->whereNull('read_at') ->orderBy('created_at', 'desc') ->get(); return view('game.dashboard', compact('character', 'recentActivity', 'unreadNotifications')); } }