<?php
if (!defined('ABSPATH')) {
    exit;
}
$logout_url = add_query_arg(array(
    'chama-logout'       => 'true',
    'chama-logout-nonce' => wp_create_nonce('chama_logout_action'),
), home_url(add_query_arg([], chama_get_current_request_uri())));

$user = wp_get_current_user();

?>
<div class="chama-account-page-wrapper">
    <div class="chama-form-wrapper">
    <div class="chama-form-header">&#x1F512; Account</div>
    <div class="chama-form-content">
	<p>
        <strong>Logged in as: </strong> <?php echo esc_html($user->user_login) ?>
    </p>
    <p>
    <a href="<?php echo esc_url(CHAMA_EDIT_ACCOUNT_URL);?>">Edit Profile</a>
    </p>
    <p>
    <a href="<?php echo esc_url($logout_url); ?>">Logout</a>
    </p>
    </div>

</div>
</div>
