<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">Question Name</div>
    <div class="col-sm-1" style="padding:10px 0">Marks</div>
    <div class="col-sm-1" style="padding:10px 0">Time</div>
    <div class="col-sm-4" style="padding:10px 0">Correct Answer</div>
    <div class="col-sm-3" style="padding:10px 0">Action</div>

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

<?php
if ($mcq) {
    $i = 0;
    foreach ($mcq as $v_question) {
        ?>
        <div class="col-sm-12 <?php
        if ($i % 2 == 0) {
            echo 'gray';
        } else {
            echo 'white';
        }
        ?> text-center" >

            <div id="actions<?php echo $v_question->question_id; ?>">
                <div class="col-sm-3 tinymce-img-responsive" style="padding:10px 0">
                    <?php
                    $question_details = $v_question->question_details;
                    // echo $question_details;
                    echo $this->utility_model->view_tinyMce_information($quiz_creator, $quiz_url, $question_details);
                    ?>
                </div>
                <div class="col-sm-1" style="padding:10px 0"><?php echo $v_question->points_per_answer; ?></div>
                <div class="col-sm-1" style="padding:10px 0"><?php echo $v_question->time_limit; ?></div>
                <div class="col-sm-4 tinymce-img-responsive" style="padding:10px 0">
                    <?php
                    $c_answer = $mcq_currect_answer[$v_question->question_id]->question_option;
                    //echo $c_answer;
                    echo $this->utility_model->view_tinyMce_information($quiz_creator, $quiz_url, $c_answer);
                    ?>
                </div>

                <div class="col-sm-3" style="padding:10px 0" >

                    <a href="<?php echo base_url() . $quiz_info->url . '/edit-multiple-choice-question/' . $v_question->question_id ?>"><i class="fa fa-edit" title="Edit"></i>
                    </a>
                    <span>&nbsp;&nbsp;</span>

                    <?php
                    $question_status = $v_question->question_status;
                    $question_id = $v_question->question_id;
                    if ($question_status == 0) {
                        ?>
                        <a href="javascript:void(0)" onclick="return checkForAction('<?php echo base_url() . 'activate-question/' . $v_question->question_id; ?>', 'Active', <?php echo $v_question->question_id; ?>)">
                            <i class="fa  fa-user-plus" title="Active"></i>
                        </a>&nbsp;&nbsp;
                    <?php } else if ($question_status == 1) { ?>
                        <a href="javascript:void(0)" onclick="return checkForAction('<?php echo base_url() . 'inactivate-question/' . $question_id; ?>', 'Inactive', <?php echo $v_question->question_id; ?>)">
                            <i class="fa  fa-user-times" title="Inactive"></i>
                        </a>&nbsp;&nbsp;
                    <?php } else if ($question_status == 2) { ?>
                        <a href="javascript:void(0)" onclick="return checkForAction('<?php echo base_url() . 'activate-question/' . $question_id; ?>', 'Active', <?php echo $v_question->question_id; ?>)">
                            <i class="fa  fa-user-plus" title="Active"></i>
                        </a>&nbsp;&nbsp;
                    <?php } ?>

                    <?php if ($question_status != 2) { ?>
                        <a  href="javascript:void(0)" onclick="return checkForAction('<?php echo base_url() . 'archive-question/' . $question_id; ?>', 'Delete', <?php echo $v_question->question_id; ?>)">
                            <i class="fa fa-trash-o" title="Delete"></i>
                        </a>&nbsp;&nbsp;
                    <?php } ?>

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

        <?php
        $i++;
    }
} else {
    echo 'You do not have any Multiple Choise question for this Quiz';
}
echo $multiple_choice_pagination_link;
?>
