   
<div class="row">
    <div class="col-sm-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h6 class="panel-title"><i class="fa fa-table"></i> Board Result Information</h6>
                <a href="<?php echo site_url('everbright/result_add'); ?>" class="pull-right btn btn-circle btn-xs btn-default"><i class="fa fa-plus"></i>Add</a>
            </div>
            <div class="datatable">
                <table class="table table-bordered table-hover">
                    <thead><tr>
                        <th>Sl</th>                        
                        <th>Class</th> 
						<th>Pass Year</th>
						<th>Total Student</th>
						<th>A+</th>
						<th>A</th>
						<th>A-</th>
						<th>B</th>
						<th>C</th>
						<th>D</th>
						<th>Pass(%)</th>
                        <th>Action</th>
                    </tr></thead>
                    <tbody>
                        <?php 
						$i=1;
                        $query = $this->main_model->result();
                        foreach($query as $row):
                        ?>
                        <tr>
                            <td><?php echo $i; ?></td>
                            <td><?php echo $row['class']; ?></td>
							<td><?php echo $row['pass_year']; ?></td>
							<td><?php echo $row['total_stu']; ?></td>
							<td><?php echo $row['aplus']; ?></td>
							<td><?php echo $row['normala']; ?></td>
							<td><?php echo $row['aminus']; ?></td>
							<td><?php echo $row['normalb']; ?></td>
							<td><?php echo $row['normalc']; ?></td>
							<td><?php echo $row['normald']; ?></td>
							<td><?php echo $row['percentage']; ?></td>
                           <td class="center">
                                <a href="<?php echo site_url('everbright/result_edit/'.$row['id']); ?>" class="btn btn-icon"><i class="fa fa-edit"></i> Edit</a>
                                <a href="<?php echo site_url('everbright/result_delete/'.$row['id']); ?>" class="btn btn-icon"><i class="fa fa-try"></i> Delete</a>
                            </td>
                        </tr>
                        <?php $i=$i+1; endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>