<div class="ulp-write-course-review-wrapp" id="ulp_write_review">

    <?php if (isset($data['review_inserted'])):?>

        <?php if ($data['review_inserted']):?>

            <div class="ulp-success-message"><?php _e('Completed!', 'ulp');?></div>

        <?php else :?>

            <div class="ulp-danger-message"><?php _e('Error', 'ulp');?></div>

        <?php endif;?>

    <?php endif;?>

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

        <h2><?php _e('Add new Review', 'ulp');?></h2>

        <div class="">

            <label><?php _e('Review Title', 'ulp');?></label>

            <input type="text" name="title" value="" />

        </div>

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

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

            <textarea name="message"></textarea>

        </div>

        <div class="ulp-write-course-review-stars">

          <div class="<?php echo 'review_for_' . $data['course_id'];?>">

              <?php for ($i=1; $i<6; $i++):?>

                  <span class="ulp-star-item <?php echo 'i_' . $i;?>" data-star_num="<?php echo $i;?>"><i class="fa-ulp fa-star-o-ulp ulp-star-unselected" ></i></span>

              <?php endfor;?>

          </div>

          <input type="hidden" name="rating" value="" class="js-ulp-course-rating" />

        </div>

        <div class="">

            <button type="submit" class="ulp-add-new-review-bttn"><?php _e('Add Review', 'ulp');?></button>

        </div>

    </form>

</div>

