public function scopeUpsell(Builder $query, string $id): Builder 	{ 		$orderIds = OrderItem::whereHas('order', function ($query) { 			$query->paid(); 		})->where('product_id', $id)->pluck('order_id');  		return $query->whereHas('orderItems', function ($query) use ($id, $orderIds) { 			$query->where('product_id', '<>', $id)->whereIn('order_id', $orderIds); 		}); 	}