Child::query()->count(), 'countUsers' => User::query()->count(), 'countMeasurements' => Measurement::query()->count(), 'countFoods' => Makanan::query()->count(), 'statusDistribution' => Measurement::query() ->selectRaw('status_gabungan, count(*) as total') ->groupBy('status_gabungan') ->orderByDesc('total') ->get(), ]); } }