<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-3" style="padding:10px 0">Quiz Name</div>
    <div class="col-sm-3" style="padding:10px 0">Quiz Type</div>
    <div class="col-sm-2" style="padding:10px 0"> Question</div>
    <div class="col-sm-2" style="padding:10px 0">Time</div>
    <div class="col-sm-2" style="padding:10px 0">Action</div>

</div>
<div class="col-sm-12"><br></div> 

<?php
foreach ($all_quiz as $v_quiz) {
    $quiz_id = $v_quiz->quiz_id;
    $quiz_status = $v_quiz->quiz_status;
    $url = $v_quiz->url;
    $quiz_pulication_status = $v_quiz->quiz_pulication_status;
    ?>

    <div class="col-sm-12 gray text-center" >

        <div class="col-sm-3" style="padding:5px 0">
            <a href="<?php echo base_url() . 'quiz/' . $v_quiz->url; ?>" target="_blank">
                <?php echo $v_quiz->quiz_name; ?>
            </a>
        </div>
        <div class="col-sm-3" style="padding:5px 0">
            <?php echo $v_quiz->topic_name; ?>
        </div>
        <div class="col-sm-2" style="padding:10px 0"><?php echo $quiz_result[$v_quiz->quiz_id]->quiz_total_question; ?></div>
        <div class="col-sm-2" style="padding:10px 0">
            <?php
            $quiz_total_time = 0;
            if ($v_quiz->quiz_random_static == 1) {
                $quiz_total_time = ($quiz_questions[$v_quiz->quiz_id][0]->time_limit * 60) * $v_quiz->total_number_of_question;
            } else {
                foreach ($quiz_questions[$v_quiz->quiz_id] as $value) {
                    $quiz_total_time += $value->time_limit;
                }
                $quiz_total_time = $quiz_total_time * 60;
            }
            echo $this->cf->sec2view($quiz_result[$v_quiz->quiz_id]->quiz_finish_time) . ' / ' . $this->cf->sec2view($quiz_total_time);
            ?>
        </div>

        <div class="col-sm-2" style="padding:10px 0">
    <!--                            <a href="<?php // echo base_url()          ?>quiz/view-learner-grade"><i class="fa  fa-sun-o" title="View Grade"></i></a>&nbsp;&nbsp;
            <a href="<?php // echo base_url()          ?>quiz/view-learner-certificate"><i class="fa  fa-certificate" title="View Certificate"></i></a>&nbsp;&nbsp;-->
            <a href="<?php echo base_url() . 'quiz/' . $v_quiz->quiz_public_id . '/result'; ?>"><i class="fa  fa-th" title="Details Quiz Result"></i></a>&nbsp;&nbsp;
            <a href="<?php echo base_url() . 'quiz/' . $v_quiz->quiz_public_id . '/start-quiz'; ?>" target="_blank"><i class="fa  fa-reply" title="Retake"></i></a>
            <!--<a href="<?php //echo base_url().'change-group-status';  ?>" onclick="change_status(<?php echo $v_quiz->quiz_id; ?>)" target="_blank"><i class="fa  fa-user-plus" title="active"></i></a>-->
    <!--                             <a href="javascript:;" target="_blank"><i class="fa  fa-user-times" title="active"></i></a>
             <a href="javascript:;"><i class="fa fa-refresh fa-spin" title="Pending"></i></a>
             <a href="javascript:;"><i class="fa fa-refresh fa-spin" title="Pending"></i></a>-->
        </div>
    </div>
    <div class="col-sm-12"><br></div> 
    <?php
}
echo $pagination_link;
?>
