public function getCategoriesLastPageData(Collection $all_surveys_categories, Collection $all_client_survey_categories_data): array 	{ 		$all_categories_grouped = collect();  		foreach ($all_client_survey_categories_data as $client_survey_category) { 			$categories = $all_surveys_categories->flatten(1)->where('code', $client_survey_category['code'])->all();  			$all_categories_grouped->push([ 				'name' => $client_survey_category['name'], 				'code' => $client_survey_category['code'], 				'data' => $categories, 			]); 		}  		return $all_categories_grouped->all(); 	}