<?php
// Exit if accessed directly
if (!defined('ABSPATH')) {
   exit();
}
?>
<!-- uninstall plugin settings -->
<div class="wrap w-100 m-0">
   <div class="system-general_setting  inner-wrap w-100 bg-white p-40">
      <div class="info-container">
         <form method="post">
            <div class="gsc-access-wrapper">
               <div>
                  <div class="heading mt-0">
                     <?php echo esc_html__('Plugin Preferences', 'gsheetconnector-for-jetform'); ?>
                  </div>
                  <p><?php echo esc_html(__('Manage how plugin settings and data are handled when the plugin is uninstalled.', 'gsheetconnector-for-jetform')); ?>
                  <div class="gsc-setting-text d-flex justify-between align-center pt-15 pb-15 mt-30 bg-white">
                     <div>
                        <div class="systemifo fw-600 text-dark">
                           <?php echo esc_html__("Delete Plugin Data on Uninstall", 'gsheetconnector-for-jetform'); ?>
                        </div>
                        <label for="gshfjf_jetform_uninstall_settings_free" class="fw-400">
                           <?php echo esc_html__("Removes all plugin data (options, metadata) when the plugin is deleted.", 'gsheetconnector-for-jetform'); ?>
                        </label>
                     </div>
                     <div>

                        <input type="hidden" name="gshfjf_jetform_uninstall_settings_free" value="No">
                        <div class="custom-check">
                           <input type="checkbox"
                              class="check-toggle"
                              id="gshfjf_jetform_uninstall_settings_free"
                              name="gshfjf_jetform_uninstall_settings_free"
                              value="Yes">

                           <label for="gshfjf_jetform_uninstall_settings_free" class="button-toggle"></label>
                        </div>
                     </div>
                  </div>
               </div>

               <div class="gsc-access-info">
                  <div class='para-heading fw-600 mb-20'><?php esc_html_e('Uninstall Data Notice', 'gsheetconnector-for-jetform'); ?></div>

                  <ul>
                     <li><?php echo esc_html__("Enable this option only if you want a complete cleanup", 'gsheetconnector-for-jetform'); ?></li>
                     <li><?php echo esc_html__("All plugin settings and data will be permanently removed", 'gsheetconnector-for-jetform'); ?></li>
                     <li><?php echo esc_html__("Incorrect settings can delete all sensitive form and user data", 'gsheetconnector-for-jetform'); ?></li>
                  </ul>

               </div>
            </div>

            <div class="text-right mt-30">
               <span class="loading-uninstall-free"></span>
               <input type="submit" class="btn btn-primary uninstall-settings-save-free"
                  name="gshfjf_jetform_save_uninstall_settings_free"
                  value="<?php echo esc_html__("Save Settings", "gsheetconnector-for-jetform"); ?>" />
               <div id="gshfjf-uninstall-msg-free" class="gsc-msg d-none fw-400 text-dark text-center pt-10 pb-10 manual-margin"></div>
               <input type="hidden" name="gshfjf-jetform-setting-ajax-nonce" id="gshfjf-jetform-setting-ajax-nonce"
                  value="<?php echo esc_attr(wp_create_nonce('gshfjf-jetform-setting-ajax-nonce')); ?>" />
            </div>
         </form>
      </div>
   </div>
</div>