<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}
?>
<div class="wdp-column wdp-condition-subfield wdp-condition-field-method">
	<select name="rule[conditions][{c}][options][0]">
		<optgroup label="All time">
			<option value="all_time"><?php _e('all time', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
		</optgroup>
		<optgroup label="<?php _e('Current', 'advanced-dynamic-pricing-for-woocommerce') ?>">
			<option value="now"><?php _e('current day', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="this week"><?php _e('current week', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="this month"><?php _e('current month', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="this year"><?php _e('current year', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
		</optgroup>
		<optgroup label="<?php _e('Days', 'advanced-dynamic-pricing-for-woocommerce') ?>">
			<option value="-1 day">1 <?php _e('day', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-2 days">2 <?php _e('days', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-3 days">3 <?php _e('days', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-4 days">4 <?php _e('days', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-5 days">5 <?php _e('days', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-6 days">6 <?php _e('days', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
		</optgroup>
		<optgroup label="<?php _e('Weeks', 'advanced-dynamic-pricing-for-woocommerce') ?>">
			<option value="-1 week">1 <?php _e('week', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-2 weeks">2 <?php _e('weeks', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-3 weeks">3 <?php _e('weeks', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-4 weeks">4 <?php _e('weeks', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
		</optgroup>
		<optgroup label="<?php _e('Months', 'advanced-dynamic-pricing-for-woocommerce') ?>">
			<option value="-1 month">1 <?php _e('month', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-2 months">2 <?php _e('months', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-3 months">3 <?php _e('months', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-4 months">4 <?php _e('months', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-5 months">5 <?php _e('months', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-6 months">6 <?php _e('months', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-7 months">7 <?php _e('months', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-8 months">8 <?php _e('months', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-9 months">9 <?php _e('months', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-10 months">10 <?php _e('months', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-11 months">11 <?php _e('months', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-12 months">12 <?php _e('months', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
		</optgroup>
		<optgroup label="<?php _e('Years', 'advanced-dynamic-pricing-for-woocommerce') ?>">
			<option value="-2 years">2 <?php _e('years', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-3 years">3 <?php _e('years', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-4 years">4 <?php _e('years', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-5 years">5 <?php _e('years', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-6 years">6 <?php _e('years', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-7 years">7 <?php _e('years', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-8 years">8 <?php _e('years', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-9 years">9 <?php _e('years', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
			<option value="-10 years">10 <?php _e('years', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
		</optgroup>
	</select>
</div>

<div class="wdp-column wdp-condition-subfield wdp-condition-field-method">
	<select name="rule[conditions][{c}][options][1]">
        <option value="<"><?php _e('&lt;', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
        <option value="<="><?php _e('&lt;=', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
        <option value=">="><?php _e('&gt;=', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
        <option value=">"><?php _e('&gt;', 'advanced-dynamic-pricing-for-woocommerce') ?></option>
	</select>
</div>

<div class="wdp-column wdp-condition-subfield wdp-condition-field-value">
	<input name="rule[conditions][{c}][options][2]" type="number" placeholder="0.00" min="0">
</div>