<?php defined('ABSPATH') or die('No script kiddies please!!'); ?>

<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('Settings saved 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')); ?>">
            <?php wp_nonce_field('ciws_settings_nonce', 'ciws_settings_nonce_field'); ?>
            <input type="hidden" name="action" value="ciws_create_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');
            
            
            ?>
            <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('Save account', 'chat-in-website'); ?>" />
                    </div>
                </div>
            </div>
        </form>

    </div>
</div>