<?php
if ($question_info) {
    $question_status = $question_info->question_status;
    $question_id = $question_info->question_id;
    ?>

    <div class="col-sm-3" style="padding:10px 0">
        <?php
        $question_details = $question_info->question_details;
        $question_details = str_replace('<', '&lt', $question_details);
        $question_details = str_replace('>', '&gt', $question_details);
        echo $question_details;
        ?>
    </div>
    <div class="col-sm-1" style="padding:10px 0"><?php echo $question_info->points_per_answer; ?></div>
    <div class="col-sm-1" style="padding:10px 0"><?php echo $question_info->time_limit; ?></div>
    <div class="col-sm-4" style="padding:10px 0">
        <?php
        $c_answer = $currect_answer->question_option;
        $c_answer = str_replace('<', '&lt', $c_answer);
        $c_answer = str_replace('>', '&gt', $c_answer);
        echo $c_answer;
        ?>
    </div>

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

    <?php
    if ($question_status == 0) {
        ?>
        <a href="javascript:void(0)" onclick="return checkForAction('<?php echo base_url() . 'activate-question/' . $question_id; ?>', 'Active', <?php echo $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 $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 $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 $question_id; ?>)">
            <i class="fa fa-trash-o" title="Delete"></i>
        </a>&nbsp;&nbsp;
    <?php } ?>

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