<div class="col-sm-12 gray_ttc" style="border-bottom: 2px solid #8CC73F;padding-top: 10px;padding-bottom: 10px;font-weight: bold">
    <div class="col-sm-8 text-left col-sm-offset-1">Title</div>
    <div class="col-sm-3 text-center">Certification</div>
</div>
<div class="col-sm-12"><br></div> 

<div class="col-sm-12 padding-zero">
    <?php
        $row_count = 0;
        foreach($learner as $course) {
        $row_count++;
    ?>
    <div class="row <?php echo ($row_count%2 == 0)? 'gray' : 'white' ;?> text-left">        
        <div class="col-sm-8 col-sm-offset-1 learner_course" style="padding-top: 10px ">
            <a href="<?php echo base_url($course->course_url)?>" target="_blank">
                <?php echo $course->course_name; ?>
            </a>
        </div>

        <div class="col-sm-3 text-center" style="padding-top: 10px">
            <?php if(isset($course->student_certificate_id)){?>
            <a href="<?php echo base_url("view-certificate/$course->student_roll_number")?>" target="_blank" title="View Certificate">
                <i class="fa fa-graduation-cap" aria-hidden="true"></i>
            </a>
            <?php } ?>
        </div>        
    </div> 
    <?php } ?>
    
    
    <?php
        if(empty($learner)){
           echo 'There is no course'; 
        }
        
        echo $learner_pagination;
    ?>  
    <div class="col-sm-12"><br></div>
</div>
