public function calculatePrices(array $products): array 	{ 		$totalPrice = $totalWeight = 0;  		foreach ($products as $product) { 			$productModel = Product::with('item')->findOrFail($product['product_id']);  			$totalPrice += $productModel->getPrice() * $product['quantity']; 			$totalWeight += $productModel->getWeight() * $product['quantity']; 		}  		return [ 			'total_price' => round($totalPrice, 2), 			'tax' => round($totalPrice - ($totalPrice / ((setting('tax') / 100) + 1)), 2), 			'tax_percent' => setting('tax'), 			'total_weight' => $totalWeight, 		]; 	}