balance_com <=0 ) return $this->errorResponse(trans('messages.empty_com_balance') , Response::HTTP_BAD_REQUEST); $wallet->balance_princ += $wallet->balance_com; $wallet->balance_com = 0; $wallet->save(); return $this->successResponse($wallet); } }