   
<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> Student Information</h6>
                <a href="<?php echo site_url('everbright/student_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>S/L</th>                        
                        <th>Picture</th>   
						<th>Class-Shift-Sec-ID-BG</th>
						<th>UI-Name-DOB</th>
						<th>Guardian</th>
						<th>Number</th>
						
						
                        <th>Edit</th>
                    </tr></thead>
                    <tbody>
                        <?php 
						$i=1;
                        $query = $this->main_model->student();
                        foreach($query as $row):
                        ?>
                        <tr>
						<td> <?php echo $i; ?>
						   <td><img width="60" src="<?php echo base_url();?>uploads/<?php echo $row['thumb_image']; ?>"></td>
                           
							<td>
							
							<?php 
									$query111 = $this->main_model->sclass();
									foreach($query111 as $row123):
								?>
								<?php if($row['class_name']==$row123['scid']): ?><?php echo $row123['name']; ?><?php endif; ?>
                            <?php endforeach; ?>
							
							(<?php echo $row['s_session']; ?>) 
							<br><?php echo $row['stID']; ?>-<?php if($row['shift_name']==1): ?><?php echo 'A'; ?><?php else: ?><?php echo 'B'; ?><?php endif; ?>
							</td>
							 <td><font style="color:#009; font-weight:bold; "><?php echo $row['jbID']; ?></font><br><?php echo $row['name']; ?><br><?php echo $row['dob']; ?></td>
							<td><?php echo $row['f_name']; ?><br><?php echo $row['m_name']; ?></td>
							<td><?php echo $row['mobile']; ?></td>

                           <td class="center">
                                <a href="<?php echo site_url('everbright/student_edit/'.$row['sID']); ?>" class="btn btn-icon"><i class="fa fa-edit"></i> Edit</a>
								<a href="<?php echo site_url('everbright/student_edit_picture/'.$row['sID']); ?>" class="btn btn-icon"><i class="fa fa-edit"></i> Picture</a>
                                <a href="<?php echo site_url('everbright/student_delete/'.$row['sID']); ?>" class="btn btn-icon"><i class="fa fa-try"></i> Delete</a>
								<a target="_blank" href="http://nbksmadrasah.edu.bd/student_id_card.php?sID=<?php echo $row['sID']; ?>" class="btn btn-icon"><i class="fa fa-edit"></i> ID Card</a>
                                
                            </td>
                        </tr>
						<?php $i=$i+1; ?>
                        <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>