public function activities(SearchUserActivity $request): JsonResource 	{ 		$type = $request->enum('type', UserActivityType::class);  		return UserActivityResource::collection(auth()->user() 			->activities() 			->includes() 			->available() 			->when($type, static function (object $query, UserActivityType $type): void { 				$query->where('type', $type); 			}) 			->search($request->search) 			->latest() 			->paginate() 			->withQueryString()); 	}