<?php if($option==1){ ?>
<select class="form-control" name="cupon_name" id="cupon_name">
    <option value="">--Select Coupon --</option>
  <?php foreach ($all_course_cupon as $val){?>
      <option value="<?php echo $val->coupon_id; ?>"><?php echo $val->coupon_name; ?></option>
  <?php }?>
 </select>
<?php } else if($option==2){?>
<select class="form-control" name="cupon_name" id="cupon_name">
    <option value="">--Select Coupon --</option>
  <?php foreach ($all_video_cupon as $val){?>
      <option value="<?php echo $val->coupon_id; ?>"><?php echo $val->coupon_name; ?></option>
  <?php }?>
 </select>
<?php }else { ?>
<select class="form-control" name="cupon_name" id="cupon_name">
    <option value="">--Select Coupon --</option>
 

 </select>
<?php } ?>

