public function update(UpdateOrder $request, Order $id): RedirectResponse 	{ 		if ($request->shipments) { 			foreach ($request->shipments as $index => $value) { 				$shipment = OrderShipment::findOrFail($index);  				if ($value) { 					$shipment->update(['shipment_number' => $value]); 				} 				$shipment->update(['delivery_service' => $request->shipping_provider]); 			} 		}  		$id->update([ 			'ready_for_pickup' => $request->boolean('ready_for_pickup'), 			'status' => $request->status, 			'payment_id' => $request->payment_id, 			'additional_notes' => $request->additional_notes, 		]);  		return $this->redirectFromSave('orders.list'); 	}