<?php
// Exit if accessed directly
if (!defined('ABSPATH')) {
    exit();
}

?>


<!-- uninstall plugin settings -->
<div class="system-general_setting">
    <a href="https://www.gsheetconnector.com/formidable-forms-google-sheet-connector-pro" class="pro-link"
        target="_blank" style="text-decoration: none;"></a>
    <div class="info-container">
        <h2 class="systemifo">
            <?php echo esc_html("General Settings", "gsheetconnector-formidable-forms"); ?>
            <span class="pro-ver"><?php echo esc_html(__('PRO', 'gsheetconnector-formidable-forms')); ?></span>
        </h2>

        <h3 class="systemifo">
            <?php echo esc_html("Uninstall Plugin Settings", "gsheetconnector-formidable-forms"); ?>
        </h3>
        <form method="post">
            <!-- Hidden field ensures a value is always submitted -->
            <input type="hidden" name="gs_formidableforms_uninstall_settings" value="No">


            <!-- Checkbox (conditionally checked based on saved value) -->
            <input type="checkbox" id="gs_formidableforms_uninstall_settings"
                name="gs_formidableforms_uninstall_settings" value="Yes">
            <label for="gs_formidableforms_uninstall_settings">
                <?php echo esc_html("Enable to Delete all the settings while deleting the plugin (meta data, options, etc. created by this plugin.)", "gsheetconnector-formidable-forms"); ?>
            </label>

            <br /><br />
            <input type="submit" class="button button-primary  uninstall-settings-save"
                name="gs_formidableforms_save_uninstall_settings"
                value="<?php echo esc_html("Save", "gsheetconnector-formidable-forms"); ?>" />

            <input type="hidden" name="gs-formidableforms-setting-ajax-nonce-pro"
                id="gs-formidableforms-setting-ajax-nonce-pro"
                value="<?php echo esc_attr(wp_create_nonce('gs-formidableforms-setting-ajax-nonce-pro')); ?>" />
        </form>
    </div>
</div>