<div id="ulp_options" class="panel woocommerce_options_panel options_group" >


  <p><?php _e('Link this product to a Ultimate Learning Pro Course', 'ulp');?></p>


  <p class="form-field">


  <label><?php _e('Target Course', 'ulp');?></label>


  <select name="ulp_woo_product_course_relation">


    <option value="-1" selected><?php _e('None', 'ulp');?></option>


    <?php


    foreach ($data['courses'] as $course):?>


      <?php $selected = ($course['ID']==$data['current_value']) ? 'selected' : '';?>


    <option value="<?php echo $course['ID'];?>" <?php echo $selected;?> ><?php echo $course['post_title'];?></option>


    <?php


    endforeach;


  ?></select>


  </p>


</div>


