<?php
    if (!current_user_can('seoaic_edit_plugin')) {
        return;
    }

    global $SEOAIC;
    $sea_key = $SEOAIC->sea->getSeaAuthToken();
?>

<div class="seoaic-sea-wrap">
    <?php if($sea_key['is_owner']) { ?>
        <div class="sea-auth d-flex jc-e">
            <button class="button-primary seoaic-button-primary seoaic-sea-log-out"><?php esc_html_e('Logout', 'seoaic') ?></button>
        </div>
    <?php } ?>

    <div class="seoaic-sea-accounts">
        <h3><?php esc_html_e('Select a Google Ads Account:', 'seoaic'); ?></h3>
        <div class="seoaic-sea-account-list seoaic-grid" id="seoaicAccountList"></div>
        <div class="seoaic-sea-account-submit">
            <button id="seoaicSubmitSelectedAccount" class="seoaic-branded-button">
                <?php esc_html_e('Choose Account', 'seoaic'); ?>
            </button>
        </div>
    </div>
</div>

