<style>
    #loading_image{
        padding: 0px;
        height: 300px;
        position: absolute;
        z-index: 1;
        width: 100%;
        line-height: 300px;
    }
</style>
<?php
//$this->load->library('ForeignExchange');
//$fx = new ForeignExchange('BDT', 'USD');
?>
<div class="col-sm-8">
    <div class="row gray">
        <div class="col-sm-12">
            <ul class="nav nav-tabs">
                <li id="learnerFreeCourse" class="<?php
                if ($learner_tab == 'free') {
                    echo 'active';
                }
                ?>"><a data-toggle="tab" href="#view_free_course">Course <?php
                            if ($total_free_courses != '0') {
                                echo ' (' . $total_free_courses . ')';
                            }
                            ?></a></li>

                   <!--   <li id="learnerPaidCourse" class="<?php
              //  if ($learner_tab == 'paid') {
                   // echo 'active';
               // }
                ?>"><a data-toggle="tab" href="#view_paid_course">Paid Course<?php
                          //  if ($total_paid_courses != '0') {
                               // echo ' (' . $total_paid_courses . ')';
                         //   }
                            ?></a></li>

                <li id="learnerRegisterCourse" class="<?php
               // if ($learner_tab == 'registration') {
                   // echo 'active';
               // }
                ?>"><a data-toggle="tab" href="#view_register_course">Registration<?php
                           // if ($total_register_courses != '0') {
                              //  echo ' (' . $total_register_courses . ')';
                           // }
                            ?></a></li>  -->
            </ul>

            <div style="padding: 0px;opacity: 1; display: none" id="loading_image">
                <img src="<?php echo base_url() ?>image/course-loader.gif" 
                     height="60" width="60" style="margin: 20% 45%;">
            </div>
            <input type="hidden" id="courseViewUrl" value="<?php echo base_url('user/learner-course-view'); ?>">
        </div>



        <div class="col-sm-12">
            <div class="tab-content">
                <div id="view_free_course" class="tab-pane <?php
                if ($learner_tab == 'free') {
                    echo 'active';
                }
                ?>">
                    <div class="col-sm-12 gray_ttc text-center" style="border-bottom: 2px solid #8CC73F;padding-top: 10px;padding-bottom: 10px;font-weight: bold">
                        <div class="col-sm-9">Title</div>
                        <div class="col-sm-3">Action</div>
                    </div>
                    <div class="col-sm-12"><br></div> 

                    <div class="col-sm-12 padding-zero" id=view_learner_free_course>
                        <?php
                        if ($total_free_courses > 0) {
                            if ($sess_course_info) {
                                ?>
                                <div class="col-sm-12 padding-zero text-center" style="background-color: #D3EDB0;">
                                    <div class="col-sm-12">
                                        <div class="col-sm-9" style="padding-top: 10px ">
                                            <a href="<?php echo base_url() . $sess_course_info->url; ?>" target="_blank" >
                                                <span id="courseNameView<?php echo $sess_course_info->url ?>">
                                                    <?php
                                                    if (strlen($sess_course_info->course_name) > 50) {
                                                        echo mb_substr($sess_course_info->course_name, 0, 50, 'utf-8');
                                                    } else {
                                                        echo $sess_course_info->course_name;
                                                    }
                                                    ?>
                                                </span>
                                            </a>
                                            <?php
                                            if (strlen($sess_course_info->course_name) > 50) {
                                                echo '<span id="moreCourseNameView' . $sess_course_info->url . '" style="cursor:pointer;padding-right: 10px;">>>></span>';
                                            }
                                            ?>
                                            <input type="hidden" id="hiddenCourseName<?php echo $sess_course_info->url ?>" value="<?php echo $sess_course_info->course_name ?>">
                                        </div>


                                        <div class="col-sm-3 text-center" style="padding-top: 10px">
                                            <!--<a href="<?php // echo base_url() . 'course/' . $course_value->url . '/schedule'                                                        ?>">-->
                                                <!--<i class="fa fa-calendar" title="View Schedule"></i>-->
                                                &nbsp;&nbsp;&nbsp;
                                            <!--</a>-->
                                            <!--<a href="javascript:;<?php // echo base_url() . 'course/' . $value->url . '/certificate'                                                                           ?>">-->
                                                <!--<i class="fa  fa-graduation-cap" title="View Certificate"></i>-->
                                                &nbsp;&nbsp;&nbsp;
                                            <!--</a>-->
                                            <!--<a href="<?php // echo base_url() . $course_value->url;                                                     ?>">-->
                                                <!--<i class="fa  fa  fa-lightbulb-o fa-lg" title="View quiz"></i>-->
                                                &nbsp;&nbsp;&nbsp;
                                            <!--</a>-->
                                            <a href="javascript:void(0)"  data-toggle="modal" data-target="#deleteFreeCourse<?php echo $sess_course_info->url; ?>" >
                                                <i class="fa  fa-remove" title="Cancel"></i>
                                            </a>&nbsp;&nbsp;&nbsp;
                                        </div>
                                    </div>
                                    <div class="modal" style="" id="deleteFreeCourse<?php echo $sess_course_info->url; ?>" tabindex="-1" role="dialog" aria-labelledby="changeRole" aria-hidden="true">
                                        <?php
                                        $status_message1 = 'Are you sure you want to Cancel this Course Registration?';
                                        $status_function_name1 = 'cancelCourseStatus(&quot;' . base_url('course/cancel-learner-registration') . '&quot;,&quot;' . $sess_course_info->student_roll_number . '&quot;,&quot;registration&quot;)';
                                        $this->cf->get_status_modal($status_function_name1, $status_message1);
                                        ?>
                                    </div>
                                    <div class="col-sm-12"><br></div>
                                </div>
                                <?php
                            }
                            $i = 0;
                            foreach ($free_courses as $course_value) {
                                $i++;
                                ?>
                                <div class="col-sm-12 white text-center">
                                    <div class="col-sm-9" style="padding-top: 10px ">
                                        <a href="<?php echo base_url() . $course_value->url; ?>" target="_blank" >
                                            <span id="courseNameView<?php echo $course_value->url ?>">
                                                <?php
                                                if (strlen($course_value->course_name) > 50) {
                                                    echo mb_substr($course_value->course_name, 0, 50, 'utf-8');
                                                } else {
                                                    echo $course_value->course_name;
                                                }
                                                ?>
                                            </span>
                                        </a>
                                        <?php
                                        if (strlen($course_value->course_name) > 50) {
                                            echo '<span id="moreCourseNameView' . $course_value->url . '" style="cursor:pointer;padding-right: 10px;">>>></span>';
                                        }
                                        ?>
                                        <input type="hidden" id="hiddenCourseName<?php echo $course_value->url ?>" value="<?php echo $course_value->course_name ?>">
                                    </div>

                                    <div class="col-sm-3" style="padding-top: 10px">
                                        <!--<a href="<?php // echo base_url() . 'course/' . $course_value->url . '/schedule'                                                          ?>">-->
                                            <!--<i class="fa fa-calendar" title="View Schedule"></i>-->
                                            &nbsp;&nbsp;&nbsp;
                                        <!--</a>-->

                                        <!--<a href="javascript:;<?php // echo base_url() . 'course/' . $value->url . '/certificate'                                                                             ?>">-->
                                            <!--<i class="fa  fa-graduation-cap" title="View Certificate"></i>-->
                                            &nbsp;&nbsp;&nbsp;
                                        <!--</a>-->

                                        <!--<a href="<?php // echo base_url() . $course_value->url;                                                       ?>">-->
                                            <!--<i class="fa  fa  fa-lightbulb-o fa-lg" title="View quiz"></i>-->
                                            <!--&nbsp;&nbsp;&nbsp;-->
                                        <!--</a>-->
                                        <a href="javascript:void(0)"  data-toggle="modal" data-target="#deleteFreeCourse<?php echo $course_value->url; ?>" >
                                            <i class="fa  fa-remove" title="Cancel"></i>
                                        </a>&nbsp;&nbsp;&nbsp;
                                    </div>

                                </div>
                                <div class="modal" style="" id="deleteFreeCourse<?php echo $course_value->url; ?>" tabindex="-1" role="dialog" aria-labelledby="changeRole" aria-hidden="true">
                                    <?php
                                    $status_message1 = 'Are you sure you want to Cancel this Course Registration?';
                                    $status_function_name1 = 'cancelCourseStatus(&quot;' . base_url('course/cancel-learner-registration') . '&quot;,&quot;' . $course_value->student_roll_number . '&quot;,&quot;free&quot;)';
                                    $this->cf->get_status_modal($status_function_name1, $status_message1);
                                    ?>
                                </div>
                                <div class="col-sm-12"><br></div>
                                <?php
                            }
                            echo $free_course_paginzation_link;
                        } else {?>
                            <p>You do not get enrollment in any course! <a href="<?php echo base_url().'course'?>" target="_blank">Course Registration</a></p>
                        <?php                        
                        }
                        ?>
                    </div>
                </div>




                <!--menu 1 Tab-->
                <div id="view_paid_course" class="tab-pane <?php
                if ($learner_tab == 'paid') {
                    echo 'active';
                }
                ?>">


                    <div class="col-sm-12 gray_ttc text-center" style="border-bottom: 2px solid #8CC73F;padding-top: 10px;padding-bottom: 10px;font-weight: bold">
                        <div class="col-sm-2">Image</div>
                        <div class="col-sm-4">Title</div>
                        <div class="col-sm-2">Course Price</div>
                        <div class="col-sm-2">Payment Status</div>
                        <div class="col-sm-2">Action</div>
                    </div>
                    <div class="col-sm-12"><br></div> 
                    
                    <div class="col-sm-12 padding-zero" id=view_learner_paid_course>
                        <?php
                        if ($total_paid_courses > 0) {
                            if ($sess_course_info) {
                                foreach ($random_number as $random_num){
                                    if($sess_course_info->course_id == $random_num['course_id'] && ($random_num['payment_status'] == 1 || $random_num['payment_status'] == 2)){ 
                                ?>
                                <div class="col-sm-12 padding-zero" style="background-color: #D3EDB0;">
                                    <div class="col-sm-12 text-left">
                                        <div class="col-sm-6" style="padding-top: 10px ">
                                            <a href="<?php echo base_url() . $sess_course_info->url; ?>" target="_blank" >
                                                <span id="courseNameView<?php echo $sess_course_info->url ?>">
                                                    <?php
                                                    if (strlen($sess_course_info->course_name) > 50) {
                                                        echo mb_substr($sess_course_info->course_name, 0, 50, 'utf-8');
                                                    } else {
                                                        echo $sess_course_info->course_name;
                                                    }
                                                    ?>
                                                </span>
                                            </a>
                                            <?php
                                            if (strlen($sess_course_info->course_name) > 50) {
                                                echo '<span id="moreCourseNameView' . $sess_course_info->url . '" style="cursor:pointer;padding-right: 10px;">>>></span>';
                                            }
                                            ?>
                                            <input type="hidden" id="hiddenCourseName<?php echo $sess_course_info->url ?>" value="<?php echo $sess_course_info->course_name ?>">
                                        </div>

                                        <div class="col-sm-2" style="padding-top: 10px">
                                            <?php
                                                if (isset($random_num['paid_amount'])) {
                                                    echo $random_num['paid_amount'];
                                                } else {
                                                    echo 'None';
                                                }
                                            ?>
                                        </div>
                                        <div class="col-sm-2 form-group" style="padding-top: 10px">
                                        <strong>
                                            <?php
                                            switch ($random_num['payment_status']) {
                                                case 1:
                                                    echo 'Paid';
                                                    break;
                                                case 2:
                                                    echo 'Partial Paid';
                                                    break;
                                                case 3:
                                                    echo 'Unpaid';
                                                    break;
                                                case 4:
                                                    echo 'Drop';
                                                    break;
                                                case 5:
                                                    echo 'Cancel';
                                                    break;
                                                case 6:
                                                    echo 'Pending';
                                                    break;
                                                case 7:
                                                    echo 'Refund Request';
                                                    break;
                                                case 8:
                                                    echo 'Refunded';
                                                    break;
                                                default :
                                                    echo 'None';
                                                    break;
                                            }
                                            ?>
                                        </strong>
                                    </div>
                                    <div class="col-sm-2 padding-zero text-center">
                                        <a href="<?php echo base_url('user/view-invoice/' . $random_num['random_number']); ?>" target="_blank"><i class="fa fa-dollar"></i></a>&nbsp;

                                        <?php
                                        if (in_array($random_num['payment_status'], [1, 2])) {
                                            ?>
                                            <a href="javascript:void(0)" id="refundRequestInvoice<?php echo $random_num['random_number']; ?>"><i class="fa fa-arrow-right" title="Refund Request" aria-hidden="true"></i></a>
                                        <?php } ?>
                                        <a href="javascript:void(0)" id="cancelInvoice<?php echo $random_num['random_number']; ?>"><i class="glyphicon glyphicon-remove"></i></a>
                                    </div>
                                    </div>
                                    <div class="modal" style="" id="deleteFreeCourse<?php echo $sess_course_info->url; ?>" tabindex="-1" role="dialog" aria-labelledby="changeRole" aria-hidden="true">
                                        <?php
                                        $status_message1 = 'Are you sure you want to Cancel this Course Registration?';
                                        $status_function_name1 = 'cancelCourseStatus(&quot;' . base_url('course/cancel-learner-registration') . '&quot;,&quot;' . $sess_course_info->student_roll_number . '&quot;,&quot;registration&quot;)';
                                        $this->cf->get_status_modal($status_function_name1, $status_message1);
                                        ?>
                                    </div>
                                    <div class="col-sm-12"><br></div>
                                </div>
                                <?php
                                    }
                                }
                            }
                            $j = 0;
                            foreach ($paid_courses as $course_value) {
                                foreach ($random_number as $random_num){
                                    ++$j;
                                    if($course_value->course_id == $random_num['course_id'] && ($random_num['payment_status'] == 1 || $random_num['payment_status'] == 2)){ 
                                ?>
                                <div class="col-sm-12 <?php echo ($j % 2) ? 'gray' : 'white'; ?> text-left">
                                    <div class="col-sm-6" style="padding-top: 10px ">
                                        <a href="<?php echo base_url() . $course_value->url; ?>" target="_blank" >
                                            <span id="courseNameView<?php echo $course_value->url ?>">
                                                <?php
                                                if (strlen($course_value->course_name) > 50) {
                                                    echo mb_substr($course_value->course_name, 0, 50, 'utf-8');
                                                } else {
                                                    echo $course_value->course_name;
                                                }
                                                ?>
                                            </span>
                                        </a>
                                        <?php
                                        if (strlen($course_value->course_name) > 50) {
                                            echo '<span id="moreCourseNameView' . $course_value->url . '" style="cursor:pointer;padding-right: 10px;">>>></span>';
                                        }
                                        ?>
                                        <input type="hidden" id="hiddenCourseName<?php echo $course_value->url ?>" value="<?php echo $course_value->course_name ?>">
                                    </div>

                                    <div class="col-sm-3" style="padding-top: 10px">
                                        <?php
                                        if ($price_info[$course_value->student_id]->price_currency == 1) {
                                            
                                            //echo 'BDT ' . $price_info[$course_value->student_id]->price . ' / USD ' . $this->tt_currency->set($price_info[$course_value->student_id]->price, 'BDT', 'USD')->convert_currency()->get();
                                            echo 'BDT ' . $price_info[$course_value->student_id]->price;
                                        } else if ($price_info[$course_value->student_id]->price_currency == 2) {
                                            
                                            //echo 'BDT ' . $this->tt_currency->set($price_info[$course_value->student_id]->price, 'USD', 'BDT')->convert_currency()->get() . ' / USD ' . $price_info[$course_value->student_id]->price;
                                            echo ' USD ' . $price_info[$course_value->student_id]->price;
                                        }
                                        ?>
                                    </div>
                                    <div class="col-sm-2 form-group" style="padding-top: 10px">
                                        <strong>
                                            <?php
                                            switch ($random_num['payment_status']) {
                                                case 1:
                                                    echo 'Paid';
                                                    break;
                                                case 2:
                                                    echo 'Partial Paid';
                                                    break;
                                                case 3:
                                                    echo 'Unpaid';
                                                    break;
                                                case 4:
                                                    echo 'Drop';
                                                    break;
                                                case 5:
                                                    echo 'Cancel';
                                                    break;
                                                case 6:
                                                    echo 'Pending';
                                                    break;
                                                case 7:
                                                    echo 'Refund Request';
                                                    break;
                                                case 8:
                                                    echo 'Refunded';
                                                    break;
                                                default :
                                                    echo 'None';
                                                    break;
                                            }
                                            ?>
                                        </strong>
                                    </div>
                                    <div class="col-sm-2 padding-zero text-center">
                                        <a href="<?php echo base_url('user/view-invoice/' . $random_num['random_number']); ?>" target="_blank"><i class="fa fa-dollar"></i></a>&nbsp;

                                        <?php
                                        //if (in_array($random_num['payment_status'], [1, 2])) {
                                            ?>
<!--                                            <a href="javascript:void(0)" id="refundRequestInvoice<?php //echo $random_num['random_number']; ?>"><i class="fa fa-arrow-right" title="Refund Request" aria-hidden="true"></i></a>-->
                                        <?php //} ?>
                                        <a href="javascript:void(0)" id="cancelInvoice<?php echo $random_num['random_number']; ?>"><i class="glyphicon glyphicon-remove"></i></a>
                                    </div>
                                </div>
                                <div class="modal" style="" id="deleteFreeCourse<?php echo $course_value->url; ?>" tabindex="-1" role="dialog" aria-labelledby="changeRole" aria-hidden="true">
                                    <?php
                                    $status_message1 = 'Are you sure you want to Cancel this Course Registration?';
                                    $status_function_name1 = 'cancelCourseStatus(&quot;' . base_url('course/cancel-learner-registration') . '&quot;,&quot;' . $course_value->student_roll_number . '&quot;,&quot;registration&quot;)';
                                    $this->cf->get_status_modal($status_function_name1, $status_message1);
                                    ?>
                                </div>
                                <div class="col-sm-12"><br></div> 
                                    <?php
                                    }
                                }
                            }
                            echo $paid_course_paginzation_link;
                            } else {?>
                                <p>You do not paid for any course!<a href="<?php echo base_url().'course'?>" target="_blank">Course Registration</a></p>
                           <?php
                           }
                            ?>
                    </div>

                    
                </div>

                <!--Menu 2 Tab ...-->




                <div id="view_register_course" class="tab-pane <?php
                if ($learner_tab == 'registration') {
                    echo 'active';
                }
                ?>">
                    <div class="col-sm-12 gray_ttc text-center" style="border-bottom: 2px solid #8CC73F;padding-top: 10px;padding-bottom: 10px;font-weight: bold">
                        <div class="col-sm-6">Title</div>
                        <div class="col-sm-3">Course Price</div>
                        <div class="col-sm-1">Payment Status</div>
                        <div class="col-sm-2">Action</div>
                    </div>
                    <div class="col-sm-12"><br></div> 

                    <div class="col-sm-12 padding-zero" id=view_learner_register_course>
                        <?php
                        if ($total_register_courses > 0) {
                            if ($sess_course_info) {
                                foreach ($random_number as $random_num){
                                    if($sess_course_info->course_id == $random_num['course_id'] && $random_num['payment_status'] == 3){ 
                                ?>
                                <div class="col-sm-12 padding-zero" style="background-color: #D3EDB0;">
                                    <div class="col-sm-12 text-left">
                                        <div class="col-sm-6" style="padding-top: 10px ">
                                            <a href="<?php echo base_url() . $sess_course_info->url; ?>" target="_blank" >
                                                <span id="courseNameView<?php echo $sess_course_info->url ?>">
                                                    <?php
                                                    if (strlen($sess_course_info->course_name) > 50) {
                                                        echo mb_substr($sess_course_info->course_name, 0, 50, 'utf-8');
                                                    } else {
                                                        echo $sess_course_info->course_name;
                                                    }
                                                    ?>
                                                </span>
                                            </a>
                                            <?php
                                            if (strlen($sess_course_info->course_name) > 50) {
                                                echo '<span id="moreCourseNameView' . $sess_course_info->url . '" style="cursor:pointer;padding-right: 10px;">>>></span>';
                                            }
                                            ?>
                                            <input type="hidden" id="hiddenCourseName<?php echo $sess_course_info->url ?>" value="<?php echo $sess_course_info->course_name ?>">
                                        </div>

                                        <div class="col-sm-3" style="padding-top: 10px">
                                            <?php
                                            if ($sess_price_info->price_currency == 1) {
                                                
                                                //echo 'BDT ' . $sess_price_info->price . ' / USD ' . $this->tt_currency->set($sess_price_info->price, 'BDT', 'USD')->convert_currency()->get();
                                                echo 'BDT ' . $sess_price_info->price;
                                            } else if ($sess_price_info->price_currency == 2) {
                                                
                                                //echo 'BDT ' . $this->tt_currency->set($sess_price_info->price, 'USD', 'BDT')->convert_currency()->get() . ' / USD ' . $sess_price_info->price;
                                                echo ' USD ' . $sess_price_info->price;
                                            }
                                            ?>
                                        </div>
                                        <div class="col-sm-1" style="padding-top: 10px">Unpaid</div>
                                        <div class="col-sm-2 text-center" style="padding-top: 10px">
                                            <a href="<?php 
                                                if($sess_course_info->course_id == $random_num['course_id']){
                                                    echo base_url('user/view-invoice/' . $random_num['random_number']); 
                                                } ?>" target="_blank">
                                                <i class="fa  fa  fa-money" title="View Invoice"></i>
                                            &nbsp;&nbsp;
                                            </a>
                                            <a href="javascript:void(0)"  data-toggle="modal" data-target="#deleteFreeCourse<?php echo $sess_course_info->url; ?>" >
                                                <i class="fa  fa-remove" title="Cancel"></i>
                                            </a>&nbsp;&nbsp;&nbsp;
                                        </div>
                                    </div>
                                    <div class="modal" style="" id="deleteFreeCourse<?php echo $sess_course_info->url; ?>" tabindex="-1" role="dialog" aria-labelledby="changeRole" aria-hidden="true">
                                        <?php
                                        $status_message1 = 'Are you sure you want to Cancel this Course Registration?';
                                        $status_function_name1 = 'cancelCourseStatus(&quot;' . base_url('course/cancel-learner-registration') . '&quot;,&quot;' . $sess_course_info->student_roll_number . '&quot;,&quot;registration&quot;)';
                                        $this->cf->get_status_modal($status_function_name1, $status_message1);
                                        ?>
                                    </div>
                                    <div class="col-sm-12"><br></div>
                                </div>
                                <?php
                                    }
                                }   
                            }
                            $j = 0;
                            foreach ($register_courses as $course_value) {
                                foreach ($random_number as $random_num){
                                    ++$j;
                                    if($course_value->course_id == $random_num['course_id'] && $random_num['payment_status'] == 3){ 
                                ?>
                                <div class="col-sm-12 <?php echo ($j % 2) ? 'gray' : 'white'; ?> text-left">
                                    <div class="col-sm-6" style="padding-top: 10px ">
                                        <a href="<?php echo base_url() . $course_value->url; ?>" target="_blank" >
                                            <span id="courseNameView<?php echo $course_value->url ?>">
                                                <?php
                                                if (strlen($course_value->course_name) > 50) {
                                                    echo mb_substr($course_value->course_name, 0, 50, 'utf-8');
                                                } else {
                                                    echo $course_value->course_name;
                                                }
                                                ?>
                                            </span>
                                        </a>
                                        <?php
                                        if (strlen($course_value->course_name) > 50) {
                                            echo '<span id="moreCourseNameView' . $course_value->url . '" style="cursor:pointer;padding-right: 10px;">>>></span>';
                                        }
                                        ?>
                                        <input type="hidden" id="hiddenCourseName<?php echo $course_value->url ?>" value="<?php echo $course_value->course_name ?>">
                                    </div>

                                    <div class="col-sm-3" style="padding-top: 10px">
                                        <?php
                                        if ($price_info[$course_value->student_id]->price_currency == 1) {
                                            
                                            //echo 'BDT ' . $price_info[$course_value->student_id]->price . ' / USD ' . $this->tt_currency->set($price_info[$course_value->student_id]->price, 'BDT', 'USD')->convert_currency()->get();
                                            echo 'BDT ' . $price_info[$course_value->student_id]->price;
                                        } else if ($price_info[$course_value->student_id]->price_currency == 2) {
                                            
                                            //echo 'BDT ' . $this->tt_currency->set($price_info[$course_value->student_id]->price, 'USD', 'BDT')->convert_currency()->get() . ' / USD ' . $price_info[$course_value->student_id]->price;
                                            echo ' USD ' . $price_info[$course_value->student_id]->price;
                                        }
                                        ?>
                                    </div>
                                    <div class="col-sm-1" style="padding-top: 10px">Unpaid</div>
                                    <div class="col-sm-2 text-center" style="padding-top: 10px">
                                        <a href="<?php 
                                            if($course_value->course_id == $random_num['course_id']){
                                                    echo base_url('user/view-invoice/' . $random_num['random_number']); 
                                            } ?>" target="_blank">
                                            <i class="fa  fa  fa-money" title="View Invoice"></i>
                                            &nbsp;&nbsp;
                                        </a>
                                        <a href="javascript:void(0)"  data-toggle="modal" data-target="#deleteFreeCourse<?php echo $course_value->url; ?>" >
                                            <i class="fa  fa-remove" title="Cancel"></i>
                                        </a>&nbsp;&nbsp;&nbsp;
                                    </div>
                                </div>
                                <div class="modal" style="" id="deleteFreeCourse<?php echo $course_value->url; ?>" tabindex="-1" role="dialog" aria-labelledby="changeRole" aria-hidden="true">
                                    <?php
                                    $status_message1 = 'Are you sure you want to Cancel this Course Registration?';
                                    $status_function_name1 = 'cancelCourseStatus(&quot;' . base_url('course/cancel-learner-registration') . '&quot;,&quot;' . $course_value->student_roll_number . '&quot;,&quot;registration&quot;)';
                                    $this->cf->get_status_modal($status_function_name1, $status_message1);
                                    ?>
                                </div>
                                <div class="col-sm-12"><br></div> 
                                    <?php
                                }
                                
                                            }
                                            
                                            }

                                echo $register_course_paginzation_link;
                            } else {?>
                                <p>You do not get enrollment in any paid course! <a href="<?php echo base_url().'course'?>" target="_blank">Course Registration</a></p>
                            <?php                            
                            }
                            ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="<?php echo base_url() ?>front_end_resource/course/learner_course_list.js"></script>
