<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}
?>
<div class="groups" id="academy-bulk-purchase-from-single-product-page-modals">
		<div class="groups" id="academy-bulk-purchase-from-single-product-page" style="display:none">
			<div>
				<input type="hidden" id="academy_product_id" value="<?php echo esc_html( get_the_ID() ); ?>" />
				<input type="checkbox" name="academy_g_plus_bulk_purchase" id="academy_g_plus_bulk_purchase" />
				<label for="academy_g_plus_bulk_purchase"><?php echo esc_html__( 'Bulk Purchase', 'academy-pro' ); ?></label>
			</div>
			<div class="col">				
				<p id="academy_errors" class="error"></p>
				<p id="academy_messages" class="error"></p>
				<div class="row">
					<div>
						<input type="radio" name="group_" id="academy_g_plus_new_group" value="new_group" />
						<label for="academy_g_plus_new_group"><?php echo esc_html__( 'New Group', 'academy-pro' ); ?></label>
					</div>
					<div>
						<input type="radio" name="group_" id="academy_g_plus_group_existing" value="group_existing" />
						<label for="academy_g_plus_group_existing"><?php echo esc_html__( 'Existing Group', 'academy-pro' ); ?></label>
					</div>				
				</div>
				<p id="academy_group_errors" class="error"></p>

				<div class="col">
					<div data-id="new_group" class="col max-w-300 hidden">
						<input type="text" id="academy_g_plus_group_name" name="group_name" placeholder="<?php echo esc_html__( 'Group Name...', 'academy-pro' ); ?>" />
					</div>
					<p id="academy_group_name_errors" class="error"></p>
					<div data-id="group_existing" class="col max-w-300 hidden">
						<input type="text" id="academy_group_search" placeholder="<?php echo esc_html__( 'Search Group...', 'academy-pro' ); ?>" />
						<select name="academy_group_id" id="academy_group_id"></select>
					</div>
					<p id="academy_group_id_errors" class="error"></p>
				</div>		
			</div>	
		</div>
	</div>
</div>
