<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}
?>
<div class="academy-g-plus-enroll-content-team" style="display:none;">
	<div class="g-plus">
		<div class="price_area">
			<div class="title"><?php esc_html__( 'One-time purchase', 'academy-pro' ); ?></div>
				 <div class="price_info">
					<div class="sale_price"><?php echo esc_html( $sym ) . esc_html( $s_price ); ?></div>
				<div class="price"><?php echo esc_html( $sym ) . esc_html( $r_price ); ?></div>
			</div>
		</div>
		<div id="academy-bulk-purchase-from-single-course" style="display:none;" data-unit-price="<?php echo esc_html( $s_price ); ?>" data-cur-sym="<?php echo esc_html( $sym ); ?>">
		 <div id="academy_errors" class="error"></div>
		 <div id="academy_messages" class="error"></div>
		 <div class="seats">
			<div class="input_group"><span><?php echo esc_html__( 'Seats', 'academy-pro' ); ?></span><input type="number" name="quantity" id="academy_g_plus_quantity" class="academy-input" value="1"></div>
			<div class="input_group"><span><?php echo esc_html__( 'Total Price', 'academy-pro' ); ?></span><input type="text" id="academy_g_plus_price_total" disabled value="<?php echo esc_html( $sym ) . esc_html( $s_price ); ?>"></div>
		 </div>
		 <div class="mb">
			<div id="academy_g_plus_quantity_errors" class="error"></div>
		 </div>
		 <div class="g_info">
			<div class="g_type_select"><label for="academy_g_plus_new_group"><input type="radio" name="group_" id="academy_g_plus_new_group" value="new_group"><span><?php echo esc_html__( 'New Group', 'academy-pro' ); ?></span></label><label for="academy_g_plus_group_existing"><input type="radio" name="group_" id="academy_g_plus_group_existing" value="group_existing"><span><?php echo esc_html__( 'Group existing', 'academy-pro' ); ?></span></label></div>
			<div class="mb">
			   <div id="academy_group_errors" class="error"></div>
			</div>
			<div  data-id="new_group">
			   <div class="input_group"><span for="group_name"><?php echo esc_html__( 'New Group Name', 'academy-pro' ); ?></span><input type="text"  id="academy_g_plus_group_name" name="group_name" placeholder="<?php echo esc_html__( 'Group Name...', 'academy-pro' ); ?>" class="academy-input"></div>
			</div>
			<div class="mb">
			   <div id="academy_group_name_errors" class="error"></div>
			</div>
			<div data-id="group_existing">
				<?php if ( is_user_logged_in() ) : ?>
			   <div class=" item">
				  <div class="input_group"><span for="group_name"><?php echo esc_html__( 'Search Group', 'academy-pro' ); ?></span><input type="text" id="academy_group_search" placeholder="<?php echo esc_html__( 'Search Group...', 'academy-pro' ); ?>" class="academy-input" /></div>
				  <div class="input_group"><span for="group_name"><?php echo esc_html__( 'Select Group', 'academy-pro' ); ?></span><select name="academy_group_id" id="academy_group_id" class="academy-input"></select></div>
			   </div>
			   <?php else : ?>
				<div class="academy-message">
				  <div class="login-message"><span for="group_name"><?php echo __( 'Please \'log in\' to view your existing groups', 'academy-pro' ); ?></span></div>
			   </div>
			   <?php endif; ?>
			</div>
			<div class="mb">
			   <div id="academy_group_id_errors" class="error"></div>
			</div>
		 </div>
		 <input type="hidden" id="academy_product_id" value="<?php echo esc_html( $product_id ); ?>"/><button type="submit" name="add-to-cart" class="academy-btn academy-btn--preset-purple academy-btn--add-to-cart" data.type="bulk"><span class="academy-icon academy--shopping-cart" aria-hidden="true"></span><?php echo esc_html__( 'Add to cart', 'academy-pro' ); ?></button>
		</div>
	</div>
</div>
