    <?php
        $mdl = base64_decode($param3);
        $mdlEx = explode('-', $mdl);
    ?>
    <div class="modal-body">
        <div class="modal-header mdl-header">
            <h6 class="title text-white"><?php echo getEduAppGTLang('choices');?></h6>
        </div>
        <div class="ui-block-content">
            <?php if($param2 == 'add'):?>
            <form action="<?php echo base_url();?>admin/activities/choice" method="POST">
                <input type="hidden" value="<?php echo $mdlEx[0];?>" name="class_id">
                <input type="hidden" value="<?php echo $mdlEx[1];?>" name="section_id">
                <input type="hidden" value="<?php echo $mdlEx[2];?>" name="subject_id">
                <input type="hidden" value="create" name="method">
                <div class="form-group mb-3">
                    <label><?php echo getEduAppGTLang('question');?>:</label>
                    <textarea class="form-control" name="question" required=""></textarea>
                </div>
                <div class="checkbox-wrapper-4">
                    <input class="inp-cbx" id="showToStudents" name="status" value="1" type="checkbox"/>
                    <label class="cbx" for="showToStudents"><span>
                        <svg width="12px" height="10px">
                            <use xlink:href="#check-4"></use>
                        </svg>
                        </span><span><?php echo getEduAppGTLang('show_message');?>.</span>
                    </label>
                    <svg class="inline-svg">
                        <symbol id="check-4" viewbox="0 0 12 10">
                            <polyline points="1.5 6 4.5 9 10.5 1"></polyline>
                        </symbol>
                    </svg>
                </div>
                <label><?php echo getEduAppGTLang('options');?>:</label>
                <div id="choice_entry">
                    <div class="input-group mb-2">   
                        <input class="form-control" name="options[]" placeholder="<?php echo getEduAppGTLang('option');?>" type="text">
                        <button class="btn btn-sm btn-danger bulk text-center" href="javascript:void(0);" onclick="deleteChoiceItem(this)"><i class="picons-thin-icon-thin-0056_bin_trash_recycle_delete_garbage_empty"></i></button>
                    </div>
                </div>
                <div id="choice_entry_append"></div>
                <br>
                <center><a href="javascript:void(0);" class="btn btn-rounded btn-success btn-sm" onclick="append_choice_entry()">+ <?php echo getEduAppGTLang('more_options');?></a></center><br>
                <div class="row">
                    <div class="col col-lg-12 col-md-12 col-sm-12 col-12">
                        <button class="btn btn-rounded btn-primary " type="submit"><?php echo getEduAppGTLang('create');?></button>
                    </div>
                </div>
            </form>
            <?php else:?>
            <?php 
                $dataQ = $this->db->get_where('activity', array('activity_id' => $param3))->result_array();
                foreach($dataQ as $rm):
            ?>
            <form action="<?php echo base_url();?>admin/activities/choice/<?php echo $param3;?>" method="POST">
                <input type="hidden" value="<?php echo $rm['class_id'];?>" name="class_id">
                <input type="hidden" value="<?php echo $rm['section_id'];?>" name="section_id">
                <input type="hidden" value="<?php echo $rm['subject_id'];?>" name="subject_id">
                <input type="hidden" value="update" name="method">
                <div class="form-group mb-3">
                    <label><?php echo getEduAppGTLang('question');?>:</label>
                    <textarea class="form-control" name="question" required=""><?php echo $rm['title'];?></textarea>
                </div>
                <div class="checkbox-wrapper-4">
                    <input class="inp-cbx" id="showToStudents" name="status" <?php if($rm['status'] == 1) echo 'checked';?> value="1" type="checkbox"/>
                    <label class="cbx" for="showToStudents"><span>
                        <svg width="12px" height="10px">
                            <use xlink:href="#check-4"></use>
                        </svg>
                        </span><span><?php echo getEduAppGTLang('show_message');?>.</span>
                    </label>
                    <svg class="inline-svg">
                        <symbol id="check-4" viewbox="0 0 12 10">
                            <polyline points="1.5 6 4.5 9 10.5 1"></polyline>
                        </symbol>
                    </svg>
                </div>
                <label><?php echo getEduAppGTLang('options');?>:</label>
                <div id="bulk_add_form">
                    <?php 
                        $options = explode(',', $rm['description']);
                        for($i = 0; $i < count($options)-1; $i++):
                    ?>
                    <div class="input-group mb-2">   
                        <input class="form-control" name="options[]" value="<?php echo $options[$i];?>" type="text">
                        <button class="btn btn-sm bulk btn-danger text-center" type="button" onclick="deleteChoiceItem(this)"><i class="picons-thin-icon-thin-0056_bin_trash_recycle_delete_garbage_empty"></i></button>
                    </div>
                    <?php endfor;?>
                    <div id="choice_entry">
                        <div class="input-group mb-2">   
                            <input class="form-control" name="options[]" placeholder="<?php echo getEduAppGTLang('option');?>" type="text">
                            <button class="btn btn-sm btn-danger bulk text-center" type="button" onclick="deleteChoiceItem(this)"><i class="picons-thin-icon-thin-0056_bin_trash_recycle_delete_garbage_empty"></i></button>
                        </div>
                    </div>
                    <div id="choice_entry_append"></div>
                </div>
                <br>
                <center><a href="javascript:void(0);" class="btn btn-rounded btn-success btn-sm" onclick="append_choice_entry()">+ <?php echo getEduAppGTLang('more_options');?></a></center><br>
                <div class="row">
                    <div class="col col-lg-12 col-md-12 col-sm-12 col-12">
                        <button class="btn btn-rounded btn-primary " type="submit"><?php echo getEduAppGTLang('update');?></button>
                    </div>
                </div>
            </form>
            <?php endforeach;?>
            <?php endif;?>
        </div>
    </div>
    <script src="<?php echo base_url();?>public/style/js/subject.js"></script>