public function recalculatePrices(Order $order): Order 	{ 		$products = $order->products()->with('product.item')->get();  		$totalPrice = $products->sum(static fn (OrderProduct $orderProduct): float => $orderProduct->quantity * $orderProduct->price);  		$totalWeight = $products->sum(static fn (OrderProduct $orderProduct): float => $orderProduct->quantity * ($orderProduct->product?->getWeight() ?? 0));  		$order->update([ 			'total_price' => round($totalPrice, 2), 			'tax' => round($totalPrice - ($totalPrice / ((setting('tax') / 100) + 1)), 2), 			'tax_percent' => setting('tax'), 			'total_weight' => $totalWeight, 		]);  		return $order; 	}