<?php defined('ABSPATH') or die('No script kiddies please!!'); 
$ciws_account_settings = maybe_unserialize($account_row->ciws_account_details	);
?>

<div class="wrap ciws-wrap">

    <?php include(CIWS_PATH . '/includes/views/backend/account-boxes/account-header.php'); ?>
    <!-- End of header section -->
    <?php
    if (!empty($_GET['message']) && $_GET['message'] == 1) {
        ?>
        <div class="notice notice-info is-dismissible inline">
            <p>
                <?php esc_html_e('Account saved successfully.', 'chat-in-website'); ?>
            </p>
        </div>
        <?php
    }
    ?>
     <?php
    if (!empty($_GET['message']) && $_GET['message'] == 2) {
        ?>
        <div class="notice notice-info is-dismissible inline">
            <p>
                <?php esc_html_e('Account updated successfully.', 'chat-in-website'); ?>
            </p>
        </div>
        <?php
    }
    ?>
    <?php include(CIWS_PATH . '/includes/views/backend/account-boxes/account-nav.php'); ?>

    <div class="ciws-settings-wrap">

        <form method="post" class="ciws-form" action="<?php echo esc_url(admin_url('admin-post.php')); ?>">
            <input type="hidden" name="account_id" value="<?php echo intval($account_id); ?>" />
            <?php wp_nonce_field('ciws_edit_settings_nonce', 'ciws_edit_settings_nonce_field'); ?>
            <input type="hidden" name="action" value="ciws_edit_account_action" />
            <?php
            include(CIWS_PATH . '/includes/views/backend/account-boxes/account-general-settings.php');
            include(CIWS_PATH . '/includes/views/backend/account-boxes/account-shortcode-settings.php');
            include(CIWS_PATH . '/includes/views/backend/account-boxes/account-url-settings.php');
           
            ?>
            <div class="ciws-field-wrap">

                <div class="ciws-field-wrap  ciws-settings-action">
                    <label></label>
                    <div class="ciws-field">
                        <input type="submit" class="button-primary"
                            value="<?php esc_html_e('Update account', 'chat-in-website'); ?>" />
                    </div>
                </div>
            </div>
        </form>

    </div>
</div>