public function scopeByDomain(Builder $query): Builder 	{ 		return $query->whereHas('client', function ($query) { 			$query->where('domain_id', auth()->user()->user->getActiveDomain()?->getKey()); 		}); 	}