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

<div class="ulp-stuffbox">



    <h3 class="ulp-h3"><?php _e('General settings', 'ulp');?></h3>



    <div class="inside">

	<div class="ulp-inside-item">

      <div class="row">

          <div class="col-xs-6">

            <h2><?php _e('Courses Settings', 'ulp');?></h2>

            <p><?php _e('Additional settings related to coursers.', 'ulp');?></p>

        	<h4 style="margin-top:25px;"><?php _e('Course progress', 'ulp');?></h4>

        		<div style="  max-width: 400px; margin-bottom:15px;">

						 <select name="ulp_course_progress_type" class="form-control m-bot15">

							 	<?php $types = array('completed_lessons_and_quizes' => __('Completed lessons and quizes', 'ulp'), 'reward_points' => __('Reward Points', 'ulp'));?>

								<?php foreach ($types as $k=>$v):?>

										<option value="<?php echo $k;?>" <?php if ($k==$data['metas']['ulp_course_progress_type']) echo 'selected';?> ><?php echo $v;?></option>

								<?php endforeach;?>

						 </select>

                  </div>

                   <div style="margin-top:10px;">

                       <div style="font-weight:bold; font-style:italic;"><?php _e('Course progress is displayed as a percentage. This is based on one of two options:', 'ulp');?></div>

                       <div><?php _e('1. Reward points: % is based on how many points a student has from the sum total of points from that course.', 'ulp');?></div>

                       <div><?php _e('2. Completed lessons and quizzes: % is based on how many lessons / quizzes the student has completed out of the sum total from that course.', 'ulp');?></div>

                   </div>

          </div>

      </div>

    </div>

  	<div class="ulp-line-break"></div>

	<div class="ulp-inside-item">

      <div class="row">

          <div class="col-xs-6">

          	  <h4 style="margin-top:25px;"><?php _e('Course auto-enroll', 'ulp');?></h4>

				<div class="form-group row">





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

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

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

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

		 				</label>

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



						<div>

								<?php _e('After a user purchases a course, he is automatically enrolled in that course.', 'ulp');?>

						</div>



  			</div>

        <div class="form-group row">
          	<h4 style="margin-top:25px;"><?php _e('Enable Gutenberg editor on custom post types', 'ulp');?></h4>
      			<div class="form-group row">
      					<label class="ulp_label_shiwtch" style="margin:10px 0 10px -10px;">
      		 			    <?php $checked = ($data['metas']['ulp_enable_gutenberg']) ? 'checked' : '';?>
      		 			    <input type="checkbox" class="ulp-switch" onClick="UltimateLearningPro.checkAndH(this, '#ulp_enable_gutenberg');" <?php echo $checked;?> />
      		 			    <div class="switch" style="display:inline-block;"></div>
      		 		  </label>
      		 		  <input type="hidden" name="ulp_enable_gutenberg" value="<?php echo $data['metas']['ulp_enable_gutenberg'];?>" id="ulp_enable_gutenberg" />
    			  </div>
        </div>

    		<div class="form-group row"  style="margin-top:40px;">

    				<div class="col-4">

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

    			  </div>

    		</div>

        </div>

      </div>

    </div>

  </div>


</form>
