public function devices(ChartData $request): JsonResponse 	{ 		$user = $request->user(); 		$min_date = formatTimestamp($request->min_date, 'Y-m-d H:i', $user->timezone); 		$max_date = formatTimestamp($request->max_date, 'Y-m-d H:i', $user->timezone);  		$records = PushDevice::whereBetween('created_at', [$min_date, $max_date]) 			->oldest() 			->get() 			->groupBy(static fn (PushDevice $record): string => formatLocalTimestamp($record->created_at, $request->date_format)) 			->map(static fn (Collection $group, string $date): array => ['date' => $date, 'value' => $group->count()]) 			->all();  		return response()->json(['data' => $records]); 	}