Logout link not working on Edit Profile widget

Hello,
Website: http://yourtechadvisors.com
You must be logged in to see this widget. Support access is open.

I am currently using this code in header.php to display an Edit Profile widget.

<!--Edit Profile Widget-->
<?php
if ( is_user_logged_in() ) {
	$current_user = wp_get_current_user();
	echo '<div style="float: right; width: 200px;"><div style="float: left; padding-right: 20px;">'.get_avatar( $current_user->ID, 32 ).'</div><div><p>Welcome '.$current_user->display_name.'!<br><a href="http://yourtechadvisors.com/edit-profile">Edit Profile</a>
<a href="<?php echo wp_logout_url( get_permalink() ); ?>">Logout</a>
</p></div></div>';
}
?>

For some reason, when I tried to add the logout link as the code shows above, when clicking logout, it redirected me to this URL instead of the logout URL, then back to the current page.

http://yourtechadvisors.com/<?php echo wp_logout_url( get_permalink() ); ?>

I am using the code from the codex link below.
https://codex.wordpress.org/Function_Reference/wp_logout_url

Do you know what could be causing this?
Thanks.