<form action="" method="post">


	<div class="ulp-stuffbox">


		<h3 class="ulp-h3"><?php _e('EDD Payment Integration', 'ulp');?></h3>


		<div class="inside">





			<div class="ulp-form-line">


					<h2><?php _e('Activate/Hold Easy Download Digital Payment Integration', 'ulp');?></h2>


				<label class="ulp_label_shiwtch" style="margin:10px 0 10px -10px;">


					<?php $checked = ($data['metas']['ulp_edd_payment_enable']) ? 'checked' : '';?>


					<input type="checkbox" class="ulp-switch" onClick="UltimateLearningPro.checkAndH(this, '#ulp_edd_payment_enable');" <?php echo $checked;?> />


					<div class="switch" style="display:inline-block;"></div>


				</label>


				<input type="hidden" name="ulp_edd_payment_enable" value="<?php echo $data['metas']['ulp_edd_payment_enable'];?>" id="ulp_edd_payment_enable" />


			</div>





			<div class="ulp-form-line">


				<div><?php _e('By activating this option you have the possibility to link a course to a EDD item.', 'ulp');?></div>


				<div><?php _e('By doing this, your users can use the payment methods integrated in EDD.', 'ulp');?></div>


				<div><?php _e('In EDD when creating or editing an item, you will find a new section for Ultimate Learning Pro where you can link your course to the current item.', 'ulp');?></div>


			</div>





						<div class="ulp-form-line">


								<?php ulp_default_payment_type();?>


						</div>





			<div class="ulp-submit-form" style="margin-top: 20px;">


				<input type="submit" value="<?php _e('Save Changes', 'ulp');?>" name="submit" class="btn btn-primary pointer" />


			</div>





		</div>


	</div>





		<?php if (!empty($data['items'])):?>


			<div class="ulp-stuffbox">


				<table class="wp-list-table widefat fixed tags">


					<thead style="background: #f1f4f8 !important;    border-bottom: 1px solid #ccc;box-shadow: inset 0px -5px 10px 2px rgba(0,0,0,0.03); line-height: 1.4;">


						<tr>


							<td style="font-weight:400;font-family: 'Oswald', arial, sans-serif !important;padding: 16px 12px;"><?php _e('Ultimate Learning Pro Course', 'ulp');?></td>


							<td style="font-weight:400;font-family: 'Oswald', arial, sans-serif !important;padding: 16px 12px;"><?php _e('EDD Product', 'ulp');?></td>


						</tr>


					</thead>


					<tbody class="uap-alternate">


					<?php foreach ($data['items'] as $array):?>


					<tr>


						<td><span  class="uap-list-affiliates-name-label"><a href="<?php echo admin_url('post.php?post=' . $array['course_id'] . '&action=edit');?>" target="_blank"><?php echo $array['course_label'];?></a></span></td>


						<td><a href="<?php echo admin_url('post.php?post=' . $array['product_id'] . '&action=edit');?>" target="_blank"><?php echo $array['product_label'];?></a></td>


					</tr>


					<?php endforeach;?>


					</tbody>


				</table>


			</div>


		<?php endif;?>





</form>


