    <div class="modal-body">
        <div class="modal-header mdl-header">
            <h6 class="title text-white"><?php echo getEduAppGTLang('choice_results');?></h6>
        </div>
        <div class="ui-block-content">
            <?php 
                $dataQ = $this->db->get_where('activity', array('activity_id' => $param2))->result_array();
                foreach($dataQ as $rm):
            ?>
                <div class="form-group mb-3">
                    <label class="text-bold"><?php echo getEduAppGTLang('question');?>:</label>
                    <p><?php echo $rm['title'];?></p>
                    <hr>
                </div>
                <div class="row">
                    <div class="col-sm-6">
                    <?php 
                        $this->db->where('activity_id', $rm['activity_id']);
                        $this->db->where('activity_id', $rm['activity_id']);
                        $polls = $this->db->count_all_results('subject_poll_response');
                        $array = ( explode(',' , $rm['description']));
                        $questions = count($array)-1;
                        $op = 0;
                        for($i = 0 ; $i<count($array)-1; $i++):
                    ?>
                        <div class="col-sm-12">
                            <div class="os-progress-bar">
                                <div class="bar-labels">
                                    <div class="bar-label-left">
                                    <?php 
                                        $this->db->where('answer', $array[$i]);
                                        $this->db->where('activity_id', $rm['activity_id']);
                                        $res = $this->db->count_all_results('subject_poll_response');
                                    ?>
                                        <span><?php echo $array[$i];?></span>
                                    </div>
                                    <?php 
                                        if($res > 0 && $polls > 0)
                                        {
                                            $response = $res/$polls;
                                            $response2 = $response*100;
                                        }else{
                                            $response2 = 0;
                                        }
                                    ?>
                                    <div class="bar-label-right">
                                        <span class="color-primary"><?php echo round($response2);?>/100%</span>
                                    </div>
                                </div>         
                                <div class="progress">
                                    <div aria-valuemax="100" aria-valuemin="0" aria-valuenow="33" class="progress-bar progress-bar-striped bg-success" role="progressbar" style="width: <?php echo $response2;?>%"></div>
                                </div>
                            </div>
                        </div>
                    <?php endfor;?>
                    </div>
                    <div class="col-sm-6">
                        <div class="el-legend">
                        <?php 
                            $this->db->where('activity_id', $rm['activity_id']);
                            $polls = $this->db->count_all_results('subject_poll_response');
                            $array = ( explode(',' , $rm['description']));
                            $questions = count($array)-1;
                            $op = 0;
                            for($i = 0 ; $i<count($array)-1; $i++):
                        
                            $this->db->where('answer', $array[$i]);
                            $this->db->where('activity_id', $rm['activity_id']);
                            $res = $this->db->count_all_results('subject_poll_response');
                        ?>
                            <div class="legend-value-w">
                                <div class="legend-pin bgpin"></div>
                                <small class="legend-value"><?php echo $array[$i];?> 
		                            <small class="gi">- <?php echo $res;?> <?php echo getEduAppGTLang('students');?>.</small>
                                </small>
                            </div>
                        <?php endfor;?>
                        </div>
                    </div>
                    <div class="col-sm-12">
                        <hr>
                        <label><?php echo getEduAppGTLang('students');?></label>
                        <div class="table-responsive">
                            <table class="table table-lightborder">
                                <thead>
                                    <tr>
                                        <th><?php echo getEduAppGTLang('name');?></th>
                                        <th><?php echo getEduAppGTLang('date');?></th>
                                    </tr>
                                </thead>
                                <tbody>
                                <?php 
                                    $this->db->where('activity_id', $rm['activity_id']);
                                    $this->db->order_by('id', 'desc');
                                    $pollss = $this->db->get('subject_poll_response')->result_array();
                                    foreach($pollss as $ro):?>
                                    <tr>
                                        <td><img width="18px" src="<?php echo $this->crud->get_image_url('student', $ro['student_id']);?>"> <?php echo $this->crud->get_name('student', $ro['student_id']);?></td>
                                        <td><?php echo $ro['date'];?></td>
                                    </tr>
                                    <?php endforeach;?>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            <?php endforeach;?>
        </div>
    </div>