<div id="change">
    <div class="col-sm-10 col-sm-offset-3 main col-md-10 col-md-offset-2 main">
        <div class="container col-sm-8 col-sm-offset-2 col-md-offset-0 col-md-12" id="res">
            <div class="row">

            </div>

            <hr>
            <div class="">
                <a href="<?php echo base_url(); ?>super_admin">Dashboard</a>->>
                <a href="<?php echo base_url(); ?>super_admin_quiz/manage_quiz"><span>Quiz List</span></a>->>
                <!--<a href="<?php echo base_url(); ?>super_admin_quiz/quiz_information/<?php // echo $member_info->group_id;                  ?>">Quiz Information</a>->>-->
                <span>Edit Group Member</span>
                <div>
                    <?php
                    $message = $this->session->userdata('message');
                    if ($message) {
                        echo $message;
                    }
                    ?>
                </div>
            </div>
            <hr>

            <div class="span11 right">
                <div class="col-lg-6 col-md-4" >
                    <h4> Quiz Information</h4> </div>
                <div class="col-lg-2 col-md-2">
                </div>
                <div class="col-lg-4 col-md-4">
                    <a class="btn btn-sm btn-primary" href="<?php echo base_url(); ?>super_admin/export_student_list_csv">Export</a>
                    <input type="submit" class="btn btn-sm btn-primary" data-toggle="modal" data-target="#importFile" value="Import">
                    <input type="submit" value="Print" id="change_role_button" class="btn btn-sm btn-success"  data-toggle="modal" data-target="#print" onclick="printPreview('student_list');">
                    <a href="#" onclick="sendMailToStudent();" class="btn btn-sm btn-success">Email</a>
                    <a href="#" onclick="sendMailToStudent();" class="btn btn-sm btn-success"> SMS </a>
                </div>
            </div>
            <!--    
            Only List with Pagination 
            Change Status / Edit / Delete
            -->
            <div class="table-responsive col-lg-11 col-md-8 col-sm-7" id="student_list">
                <div class="row">
                    <div class="col-sm-5">
                        <div class="span12">
                            <div class="col-sm-5">Quiz Title</div>
                            <div class="col-sm-5"><?php echo $quiz_info->quiz_name; ?></div>
                        </div>
                        <br>
                        <br>
                        <br>
                        <div class="span12">
                            <div class="col-sm-5">Type</div>
                            <div class="col-sm-5"><?php echo $quiz_info->quiz_type; ?></div>
                        </div>
                        <br>
                        <br>
                        <br>
                        <div class="span12">
                            <div class="col-sm-5">Description</div>
                            <div class="col-sm-5"><?php echo $quiz_info->quiz_description; ?></div>
                        </div>
                        <br>
                        <br>
                        <br>
                        <div class="span12">
                            <div class="col-sm-5">URL</div>
                            <div class="col-sm-5"><?php echo $quiz_info->url; ?></div>
                        </div>
                        <br>
                        <br>
                        <div class="span12">
                            <div class="col-sm-5">Category</div>
                            <div class="col-sm-5"><?php // echo $quiz_info->category_name;                  ?> (Categorized by Course category)</div>
                        </div>
                        <br>
                        <br>

                    </div>

                    <div class="col-sm-7">
                        <div class="span12">
                            <div class="col-sm-5">Topic Specification</div>
                            <div class="col-sm-5"><?php echo $quiz_info->topic_name; ?></div>
                        </div>
                        <br>
                        <br>
                        <div class="span12">
                            <div class="col-sm-5">Number of Question</div>
                            <div class="col-sm-5"><?php echo $quiz_info->total_number_of_question; ?></div>
                        </div>
                        <br>
                        <br>
                        <br>
                        <div class="span12">
                            <div class="col-sm-5">Time</div>
                            <div class="col-sm-5"><?php echo $quiz_info->total_time; ?></div>
                        </div>
                        <br>
                        <br>
                        <div class="span12">
                            <div class="col-sm-5">Status</div>
                            <div class="col-sm-5"><?php
                                if ($quiz_info->quiz_status == 1) {
                                    echo 'Active';
                                } else if ($quiz_info->quiz_status == 2) {
                                    echo 'Archive';
                                } else if ($quiz_info->quiz_status == 0) {
                                    echo 'Archived';
                                }
                                ?></div>
                        </div>
                        <br>
                        <br>
                        <div class="span12">
                            <div class="col-sm-5">Taken </div>
                            <div class="col-sm-5"><?php echo $quiz_info->quiz_taken_number; ?></div>
                        </div>
                        <br>
                        <br>
                        <div class="span12">
                            <div class="col-sm-5">Quiz Publication Status</div>
                            <div class="col-sm-5"><?php
                                if ($quiz_info->quiz_pulication_status == 1) {
                                    echo 'Active';
                                } else if ($quiz_info->quiz_pulication_status == 2) {
                                    echo 'Archive';
                                } else if ($quiz_info->quiz_pulication_status == 3) {
                                    echo 'Archived';
                                } else if ($quiz_info->quiz_pulication_status == 4) {
                                    foreach ($group_permission as $v_group) {
                                        ?>
                                        <a href="<?php echo base_url() . $v_group->group_id; ?>"><p><?php echo $v_group->group_name; ?> </p></a>
                                        <?php
                                    }
                                }
                                ?></div>
                        </div>
                        <br>
                        <br>

                        <div class="col-sm-10 col-md-10">Group Public URL:</div>
                        <a href="<?php echo base_url() . 'group/' . $quiz_info->url; ?>"><div class="col-sm-3 col-md-6"><?php echo base_url() . 'group/' . $quiz_info->url; ?></div></a>

                    </div>
                </div>

                <div class="row" style="margin-top: 30px;">
                    <div class="col-sm-12">
                        <h4>Quiz Questions</h4>
                        <?php
                        $i = 0;
                        foreach ($quiz_all_question as $v_question) {
                            $i++;
                            ?>
                            <div class="col-sm-10">
                                <div class="col-sm-2" style="background-color: green">Question<?php echo $i; ?></div><br>
                                <div class="col-sm-12"><?php echo $v_question->question_details; ?></div>
                                <?php foreach ($question_option[$v_question->question_id] as $v_option) { ?>
                                    <div class="col-sm-3">
                                        <div class="col-sm-12" <?php
                                        if ($v_option->question_option_status == 1) {
                                            echo "style='background-color: limegreen'";
                                        }
                                        ?>><?php echo $v_option->question_option; ?></div>
                                    </div>
                                <?php } ?>
                            </div><br>
                            <br>
                            <div class="col-sm-2"><button> Edit</button></div>
                            <br>
                        <?php } ?>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>