Sales::query()->where('this', $that)->get()->groupBy('product.name'); // OR Sales::query()->where('this', $that)->get()->groupBy('product.status.name');
Sales::query()->where('this', $that)->get()->groupBy('product.name'); // OR Sales::query()->where('this', $that)->get()->groupBy('product.status.name');