
<center><h2><strong>Ubuntu</strong></h2>
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
<?php

// Meta Boxes fields

if (! defined('ABSPATH') ) {
	exit;
}

?>
<div class="advanced-qty">
	<table class="afadv-table-optoin">
		<tr class="afadv-option-field">
			<th>
				<div class="afadv-option-head">
					<h3>
						<?php echo esc_html__('Apply on All Products', 'addify-product-qty'); ?>
					</h3>
				</div>
			</th>
			<td>
				<input type="checkbox" name="afadv_apply_on_all_products" id="afadv_apply_on_all_products" value="yes" <?php echo checked('yes', $afadv_apply_on_all_products); ?>>

				<p class="afadv_description"><?php echo esc_html__('Check this if you want to apply this chart on all products.', 'addify-product-qty'); ?></p>
			</td>
		</tr>

		<tr class="afadv-option-field hide_pro_cat">
			<th>
				<div class="afadv-option-head">
					<h3>
						<?php echo esc_html__('Select Products', 'addify-product-qty'); ?>
					</h3>
				</div>
			</th>
			<td>
				<select multiple="multiple" class="product-select-multiple" name="afadv_bulk_spec_pro_fld[]" id="afadv_bulk_spec_pro_fld" data-placeholder='<?php esc_html_e('Select Products...', 'addify-product-qty'); ?>' tabindex="-1">
					<?php

					foreach ( $spec_pro as $prod_id ) {
						?>
						<option value="<?php echo esc_attr($prod_id); ?>" selected >
						<?php echo esc_attr(get_the_title(intval($prod_id))); ?>
						</option>
						<?php
					}
					?>
				</select>
			</td>
		</tr>

		<tr class="afadv-option-field hide_pro_cat">
			<th>
				<div class="afadv-option-head">
					<h3>
						<?php echo esc_html__('Select Categories', 'addify-product-qty'); ?>
					</h3>
				</div>
			</th>
			<td>
				<select multiple="multiple" class="category-select-multiple" name="afadv_bulk_spec_cat_fld[]" id="afadv_bulk_spec_cat_fld" data-placeholder='<?php esc_html_e('Select Categories...', 'addify-product-qty'); ?>' tabindex="-1">
					<?php

					

					$product_cat = get_terms('product_cat');

					foreach ( $product_cat as $ter ) {
						?>
						<option value="<?php echo intval($ter->term_id); ?>" 
						<?php echo in_array((string) $ter->term_id, $spec_cat, true) ? 'selected' : ''; ?>
						>
						<?php echo esc_html($ter->name); ?>
						</option>
						<?php
					}
					?>
				</select>
			</td>
		</tr>
	</table>
</div>
