<?php
/**
 * Main WPSyncSheets_For_WooCommerce namespace.
 *
 * @since 1.0.0
 * @package wpsyncsheets-woocommerce
 */
if ( ! defined( 'ABSPATH' ) ) {
	exit; }
if ( ! class_exists( 'WPSSLW_Customer_Pro' ) ) :

    /**
	 * Class WPSSLW_Order.
	 */
	class WPSSLW_Customer_Pro extends WPSSLW_Settings {

    
        /**
		 * Instance of WPSSLW_Google_API_Functions
		 *
		 * @var $instance_api
		 */
		protected static $instance_api = null;
		/**
		 * Initialization
		 */
		public static function init() {
			//$wpsslw_include = new WPSSLW_Include_Action();
		}

        public static function wpsslw_woocommerce_admin_wpsslw_customer_pro_html() {
         
        ?>

		<!-- Add Custom Static Headers -->
        <div class="generalSetting-section cust_spreadsheet_row">
			<div scope="row" class="titledesc generalSetting-left">
				<h4>
                    <span class="wpssw-tooltio-link tooltip-right">
                        <?php esc_html_e( 'Add Custom Static Headers', 'wpsyncsheets-woocommerce' );
 ?><span class="tooltip-text"><?php esc_html_e( 'Pro', 'wpsyncsheets-woocommerce' ); ?>
</span>
                    </span>
                </h4>
				<p><?php esc_html_e( 'Want to add your custom headers? Enable this button, and with a click of the "Add" button, you can create static header-value pairs to customize your header list further.', 'wpsyncsheets-woocommerce' ); ?>
</p>
			</div>
			<div class="forminp wpsswpd15 generalSetting-right disabled-pro-version">              
				<label for="">
					<input name="custom_customer_header_action" id="custom_customer_header_action" type="checkbox" class="" value="1"><span class="checkbox-switch"></span> 							
				</label>  
			</div>
		</div>

		<!-- Schedule Auto Sync -->
		<div class="generalSetting-section cust_spreadsheet_row cust_autosync_autosynctr auto_sync_scheduling" id="custautosynctr">
			<div class="generalSetting-left">
				<h4>
					<span class="wpssw-tooltio-link tooltip-right">
						<?php esc_html_e( 'Schedule Auto Sync', 'wpsyncsheets-woocommerce' ); ?>
<span class="tooltip-text"><?php esc_html_e( 'Pro', 'wpsyncsheets-woocommerce' ); ?>
</span>
					</span>
				</h4>
				<p><?php esc_html_e( 'Stay updated with automatic synchronization by setting specific intervals to sync the data effortlessly.', 'wpsyncsheets-woocommerce' ); ?>
				</p>
				<div class="bg-gray">
					<div class="generalSetting-autosynctr-row td-radio-btn-row mb-0">     
						<div class="auto_sync_schedulecontainer cust_autosync_schedulecontainer mb-0 disabled-pro-version">
							<input type="radio" name="cust_autosync_scheduling_enable" value="1" checked="checked" id="cust_autosync_autoschedule">
							<label for=""><?php esc_html_e( 'Automatic Scheduling', 'wpsyncsheets-woocommerce' ); ?>
</label>
						</div>	
						<div class="cust_autosync_schedulecontainer auto_sync_schedulecontainer mb-0 disabled-pro-version">
							<input type="radio" name="cust_autosync_scheduling_enable" value="0" id="cust_autosync_donotschedule">
							<label for=""><?php esc_html_e( 'Do Not Schedule', 'wpsyncsheets-woocommerce' ); ?>
</label>
						</div>
					</div>
					<div id="cust-autosync-automatic-scheduling" class="automatic_scheduling_container" style="">
						<div class="auto_sync_schedulecontainer cust_autosync_schedulecontainer disabled-pro-version">
							<div class="input">
								<input type="radio" name="cust_autosync_scheduling_run_on" value="recurrence" id="cust_autosync_recurrenceradio" checked="checked">
								<label for=""><?php esc_html_e( 'Schedule Recurrence', 'wpsyncsheets-woocommerce' ); ?>
</label>
							</div>
							<select name="cust_autosync_schedule_recurrence" id="cust_autosync_schedule_recurrence" class="schedule_recurrence">
									<option value="ten_minutes"><?php esc_html_e( 'Every Ten Minutes', 'wpsyncsheets-woocommerce' ); ?>
</option>
									<option value="thirty_minutes"><?php esc_html_e( 'Every Thirty Minutes', 'wpsyncsheets-woocommerce' ); ?>
</option>
									<option value="once_daily"><?php esc_html_e( 'Once Daily', 'wpsyncsheets-woocommerce' ); ?>
</option>
									<option value="twice_daily"><?php esc_html_e( 'Twice Daily', 'wpsyncsheets-woocommerce' ); ?>
</option>
									<option value="fifteen_days"><?php esc_html_e( 'Every Fifteen Days', 'wpsyncsheets-woocommerce' ); ?>
</option>
									<option value="monthly"><?php esc_html_e( 'Monthly', 'wpsyncsheets-woocommerce' ); ?>
</option>
							</select>
						</div>
						<div class="auto_sync_schedulecontainer cust_autosync_schedulecontainer disabled-pro-version">
							<div class="input">
								<input type="radio" name="cust_autosync_scheduling_run_on" value="weekly" id="cust_autosync_weeklyradio">
								<label for=""><?php esc_html_e( 'Every week on...', 'wpsyncsheets-woocommerce' ); ?>
</label>
							</div>
							<input type="hidden" name="cust_autosync_scheduling_weekly_days" value="" id="cust_autosync_weekly_days">
							<ul class="days-of-week cust-autosync-days-of-week" id="cust_autosync_weekly" style="display: none;">
								<li data-day="monday" class=""><?php esc_html_e( 'Mon', 'wpsyncsheets-woocommerce' ); ?>
</li>
								<li data-day="tuesday" class=""><?php esc_html_e( 'Tue', 'wpsyncsheets-woocommerce' ); ?>
</li>
								<li data-day="wednesday" class=""><?php esc_html_e( 'Wed', 'wpsyncsheets-woocommerce' ); ?>
</li>
								<li data-day="thursday" class=""><?php esc_html_e( 'Thu', 'wpsyncsheets-woocommerce' ); ?>
</li>
								<li data-day="friday" class=""><?php esc_html_e( 'Fri', 'wpsyncsheets-woocommerce' ); ?>
</li>
								<li data-day="saturday" class=""><?php esc_html_e( 'Sat', 'wpsyncsheets-woocommerce' ); ?>
</li>
								<li data-day="sunday" class=""><?php esc_html_e( 'Sun', 'wpsyncsheets-woocommerce' ); ?>
</li>
							</ul>
						</div>
						<div class="auto_sync_schedulecontainer cust_autosync_schedulecontainer disabled-pro-version">
							<div class="input">
								<input type="radio" name="cust_autosync_scheduling_run_on" value="onetime" id="cust_autosync_onetime">
								<label for=""><?php esc_html_e( 'One time run at', 'wpsyncsheets-woocommerce' ); ?>
</label>
							</div>
							<div id="cust_autosync_scheduling_date" class="scheduling_date" style="display: none;">
								<input type="date" name="cust_autosync_scheduling_date" autocomplete="off" value="2025-06-09">
								<input type="time" name="cust_autosync_scheduling_time" autocomplete="off" value="05:05">
							</div>
						</div>
			        </div>
				</div>
			</div>
		</div>

		<!-- Import Customers -->
		<div valign="top" id="import_customer_checkbox_row" class="cust_spreadsheet_row checkbox_margin generalSetting-section import-section-row ">	
			<div class="cust-import-section import-section">	
				<div class="titledesc generalSetting-left">
					<h4>
						<span class="wpssw-tooltio-link tooltip-right">
							<?php esc_html_e( 'Import Customers', 'wpsyncsheets-woocommerce' ); ?>
<span class="tooltip-text"><?php esc_html_e( 'Pro', 'wpsyncsheets-woocommerce' ); ?>
</span>
						</span>
					</h4>
					<p><?php esc_html_e( 'Need to import customers from another sheet? No worries! Use the \'Import\' button, but don\'t forget to back up your database before doing so.', 'wpsyncsheets-woocommerce' ); ?>
 
					<a href="https://docs.wpsyncsheets.com/how-to-import-customers/" target="_blank"><?php esc_html_e( 'How to Import Customers?', 'wpsyncsheets-woocommerce' ); ?>
</a>  
				</p></div>
				<div class="forminp generalSetting-right disabled-pro-version">      
					<label for="">
						<input name="import_customer_checkbox" id="import_customer_checkbox" type="checkbox" class="" value="1"><span class="checkbox-switch"></span><span class="checkbox-switch"></span> 		
					</label> 
				</div>
			</div>
		</div>

		<!-- Inherit Styles -->
		<div class="inheritStyles generalSetting-section cust_spreadsheet_row">
			<div class="titledesc generalSetting-left">
				<h4>
                    <span class="wpssw-tooltio-link tooltip-right">
                        <?php esc_html_e( 'Inherit Styles', 'wpsyncsheets-woocommerce' ); ?>
<span class="tooltip-text"><?php esc_html_e( 'Pro', 'wpsyncsheets-woocommerce' ); ?>
					</span>
                    </span>
                </h4>
				<p><?php esc_html_e( 'This dropdown allows you to choose whether the new row should inherit the style from the row above it. The available options are "Yes" to inherit the style, "No" to not inherit the style, or "None" to leave the style inheritance unaffected.', 'wpsyncsheets-woocommerce' ); ?>
  <a href="https://docs.wpsyncsheets.com/how-to-use-inherit-style-option/" target="_blank"><?php esc_html_e( 'How to use inherit style option?', 'wpsyncsheets-woocommerce' ); ?>
</a></p>
			</div>
			<div class="forminp generalSetting-right disabled-pro-version">
				<label for="">
					<select name="cust_inherit_style">
						<option value="yes" selected=""><?php esc_html_e( 'Yes', 'wpsyncsheets-woocommerce' ); ?>
</option>
						<option value="no"><?php esc_html_e( 'No', 'wpsyncsheets-woocommerce' ); ?>
</option>
						<option value="none"><?php esc_html_e( 'None', 'wpsyncsheets-woocommerce' ); ?></option>
					</select>
				</label>
			</div>
		</div>
           
        <?php
        }
    }

WPSSLW_Customer_Pro::init();
	endif;