    <?php
        $mdl = base64_decode($param2);
        $query = $this->crud->checkReview($mdl);
    ?>
    <div class="modal-body">
        <div class="modal-header mdl-header">
            <h6 class="title text-white"><?php echo getEduAppGTLang('make_your_review');?></h6>
        </div>
        <div class="ui-block-content">
            <?php if(count($query) == 0):?>
            <form action="<?php echo base_url();?>student/subject_dashboard/review" method="POST">
                <input type="hidden" value="<?php echo $param2;?>" name="subject_id">
                <input type="hidden" value="<?php echo $param3;?>" name="data">
                <div class="row">
                    <div class="col-sm-12">
                        <div class="contn mb-4">
                            <div class="container__items">
                                <input type="radio" name="stars" value="5.0" id="st5">
                                <label for="st5">
                                    <div class="star-stroke">
                                        <div class="star-fill"></div>
                                    </div>
                                    <div class="label-description" data-content="5"></div>
                                </label>
                                <input type="radio" name="stars" value="4.0" id="st4">
                                <label for="st4">
                                    <div class="star-stroke">
                                        <div class="star-fill"></div>
                                    </div>
                                    <div class="label-description" data-content="4"></div>
                                </label>
                                <input type="radio" name="stars" value="3.0" id="st3">
                                <label for="st3">
                                    <div class="star-stroke">
                                        <div class="star-fill"></div>
                                    </div>
                                    <div class="label-description" data-content="3"></div>
                                </label>
                                <input type="radio" name="stars" value="2.0" id="st2">
                                <label for="st2">
                                    <div class="star-stroke">
                                        <div class="star-fill"></div>
                                    </div>
                                    <div class="label-description" data-content="2"></div>
                                </label>
                                <input type="radio" required="" value="1.0" name="stars" id="st1">
                                <label for="st1">
                                    <div class="star-stroke">
                                        <div class="star-fill"></div>
                                    </div>
                                    <div class="label-description" data-content="1"></div>
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="col col-lg-12 col-md-12 col-sm-12 col-12">
                        <div class="form-group label-floating">
                            <label class="control-label"><?php echo getEduAppGTLang('enter_your_comment');?></label>
                            <textarea class="form-control" name="comment" required></textarea>
                        </div>
                    </div>
                    <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('submit');?></button>
                    </div>
                </div>
            </form>
            <?php else:?>
            <?php 
                foreach($query as $rm):
            ?>
            <div class="row">
                <div class="col-sm-12 mb-4 text-center">
                    <svg class="align-sub" xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 32 32"><path fill="#fcd53f" d="m18.7 4.627l2.247 4.31a2.27 2.27 0 0 0 1.686 1.189l4.746.65c2.538.35 3.522 3.479 1.645 5.219l-3.25 2.999a2.225 2.225 0 0 0-.683 2.04l.793 4.398c.441 2.45-2.108 4.36-4.345 3.24l-4.536-2.25a2.282 2.282 0 0 0-2.006 0l-4.536 2.25c-2.238 1.11-4.786-.79-4.345-3.24l.793-4.399c.14-.75-.12-1.52-.682-2.04l-3.251-2.998c-1.877-1.73-.893-4.87 1.645-5.22l4.746-.65a2.23 2.23 0 0 0 1.686-1.189l2.248-4.309c1.144-2.17 4.264-2.17 5.398 0"/></svg>
                    <?php echo $rm['star'];?>/5.0
                </div>
                <div class="col col-lg-12 col-md-12 col-sm-12 col-12">
                    <div class="form-group label-floating">
                        <label class="control-label"><?php echo getEduAppGTLang('description');?></label>
                        <textarea class="form-control" disabled><?php echo $rm['comment'];?></textarea>
                    </div>
                </div>
            </div>
            <?php endforeach;?>
            <?php endif;?>
        </div>
    </div>