<div class="col-sm-10">
    <div class="row ">
        <div class="col-sm-12 " style="padding: 0">
            <div class="col-sm-12" >
                <h3>
                    Total Grade Information
                </h3>
                <hr>
            </div>

            <div class="col-sm-12" >
                <div class="col-sm-12 gray_ttc text-center" style="border-bottom: 2px solid #8CC73F;padding-top: 10px;padding-bottom: 10px;font-weight: bold">
                    <div class="col-sm-3" style="padding:10px 0">Quiz Name</div>
                    <div class="col-sm-3" style="padding:10px 0">Total Grade </div>
                    <div class="col-sm-2" style="padding:10px 0">Total Number</div>
                    <div class="col-sm-4" style="padding:10px 0">Action</div>
                </div>
                <div class="col-sm-12"><br></div> 

                <?php
                if ($all_quizes) {
                    foreach ($all_quizes as $v_quiz) {
                        ?>
                        <div class="col-sm-12 gray text-center" >

                            <div class="col-sm-3" style="padding:10px 0"><a href="<?php echo base_url() ?>view-test"><?php echo $v_quiz->quiz_name; ?></a></div>
                            <div class="col-sm-3" style="padding:10px 0">
                                <?php
                                foreach ($quiz_grades[$v_quiz->quiz_id] as $v_grade) {
                                    echo $v_grade->grade_name . '(' . $v_grade->grade_number . '), ';
                                    $grade_total_number = $v_grade->grade_total_number;
                                }
                                ?>
                            </div>
                            <div class="col-sm-2" style="padding:10px 0"><?php echo $grade_total_number; ?></div>

                            <div class="col-sm-4" style="padding:10px 0">

                                <a href="<?php echo base_url() . 'super-admin/quiz/' . $v_quiz->url . '/edit-grade' ?>"><i class="fa fa-edit" title="Edit"></i></a>
                                <span>&nbsp;&nbsp;</span>

                                <a href="<?php echo base_url() . 'super-admin/quiz/' . $v_quiz->url . '/grade-details' ?>"><i class="fa  fa-th" title="View Grade"></i></a>
                            </div>
                        </div>
                        <div class="col-sm-12"><br></div> 
                            <?php
                        }
                    }
                    ?>
            </div>
        </div><!-- /.row gray -->
    </div>
</div>