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

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

		/**
		 * Initialization
		 */
		public static function init() {
		}

        public static function wpsslw_woocommerce_admin_wpsslw_coupon_pro_html() {
         
        ?>
		
		<!-- Schedule Auto Sync  -->
		<div class="generalSetting-section coupon_spreadsheet_row coupon_autosync_autosynctr auto_sync_scheduling" id="couponautosynctr">
			<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 coupon_autosync_schedulecontainer mb-0 disabled-pro-version">
							<input type="radio" name="coupon_autosync_scheduling_enable" value="1" checked="checked" id="coupon_autosync_autoschedule">
							<label for=""><?php esc_html_e( 'Automatic Scheduling', 'wpsyncsheets-woocommerce' ); ?></label>
						</div>	
						<div class="coupon_autosync_schedulecontainer auto_sync_schedulecontainer mb-0 disabled-pro-version">
							<input type="radio" name="coupon_autosync_scheduling_enable" value="0"  id="coupon_autosync_donotschedule">
							<label for=""><?php esc_html_e( 'Do Not Schedule', 'wpsyncsheets-woocommerce' ); ?></label>
						</div>
					</div>
					<div id="coupon-autosync-automatic-scheduling" class="automatic_scheduling_container" style="">
						<div class="auto_sync_schedulecontainer coupon_autosync_schedulecontainer disabled-pro-version">
							<div class="input">
								<input type="radio" name="coupon_autosync_scheduling_run_on" value="recurrence" id="coupon_autosync_recurrenceradio" checked="checked">
								<label for=""><?php esc_html_e( 'Schedule Recurrence', 'wpsyncsheets-woocommerce' ); ?></label>
							</div>
							<select name="coupon_autosync_schedule_recurrence" id="coupon_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 coupon_autosync_schedulecontainer disabled-pro-version">
							<div class="input">
								<input type="radio" name="coupon_autosync_scheduling_run_on" value="weekly" id="coupon_autosync_weeklyradio">
								<label for=""><?php esc_html_e( 'Every week on...', 'wpsyncsheets-woocommerce' ); ?></label>
							</div>
							<input type="hidden" name="coupon_autosync_scheduling_weekly_days" value="" id="coupon_autosync_weekly_days">
							<ul class="days-of-week coupon-autosync-days-of-week" id="coupon_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 coupon_autosync_schedulecontainer disabled-pro-version">
							<div class="input">
								<input type="radio" name="coupon_autosync_scheduling_run_on" value="onetime" id="coupon_autosync_onetime">
								<label for=""><?php esc_html_e( 'One time run at', 'wpsyncsheets-woocommerce' ); ?></label>
							</div>
							<div id="coupon_autosync_scheduling_date" class="scheduling_date" style="display: none;">
								<input type="date" name="coupon_autosync_scheduling_date" autocomplete="off" value="2025-06-09">
								<input type="time" name="coupon_autosync_scheduling_time" autocomplete="off" value="04:41">
							</div>
						</div>
			        </div>
				</div>
			</div>
		</div>

		<!-- Import Coupons  -->
		<div valign="top" id="import_coupon_checkbox_row" class="coupon_spreadsheet_row generalSetting-section coupon-import-section-row import-section-row ">
			<div class="ord-import-section import-section">	
				<div scope="row" class="titledesc generalSetting-left">
					<h4>
						<span class="wpssw-tooltio-link tooltip-right">
							<?php esc_html_e( 'Import Coupons', 'wpsyncsheets-woocommerce' ); ?><span class="tooltip-text"><?php esc_html_e( 'Pro', 'wpsyncsheets-woocommerce' ); ?></span>
						</span>
					</h4>
					<p><?php esc_html_e( 'Need to import coupons from another sheet? No problem! Use the "Import" button, but remember to back up your database before doing so to avoid any data loss.', 'wpsyncsheets-woocommerce' ); ?> 
					<a href="https://docs.wpsyncsheets.com/how-to-import-coupons/" target="_blank"><?php esc_html_e( 'How to Import Coupons?', 'wpsyncsheets-woocommerce' ); ?> </a> </p>
				</div>
				<div class="forminp generalSetting-right disabled-pro-version">      
					<label for="">
						<input name="import_coupon_checkbox" id="import_coupon_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 coupon_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="coupon_inherit_style">
						<option value="yes"><?php esc_html_e( 'Yes', 'wpsyncsheets-woocommerce' ); ?></option>
						<option value="no"><?php esc_html_e( 'No', 'wpsyncsheets-woocommerce' ); ?></option>
						<option value="none" selected=""><?php esc_html_e( 'None', 'wpsyncsheets-woocommerce' ); ?></option>
					</select>
				</label>
			</div>
		</div>
        
            
        <?php
        }

    }

WPSSLW_Coupon_Pro::init();
	endif;