   
<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> Individual SMS Information</h6>
                <a href="<?php echo site_url('everbright/individualsms_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>Serial</th>
 <th>Date</th>
<th>Time</th>   
                        <th>Mobile</th>  
<th>SMS</th>						
                        <th>Action</th>
                    </tr></thead>
                    <tbody>
                        <?php 
						$i=1;
                        $query = $this->main_model->individualsms();
                        foreach($query as $row):
                        ?>
						<?php  $fnames=$row['date']; 
				 $fs=explode(" ",$fnames);
				 $fname=$fs[0];
				?>
				<?php $f=explode("-",$fname); ?>
                        <tr>
                            <td><?php echo $i; ?></td>
							<td><?php echo $f[2].'-'.$f[1].'-'.$f[0]; ?></td>
							<td><?php echo $fs[1]; ?></td>
                            <td><?php echo $row['mobile_number']; ?></td>
							<td><?php echo $row['sms']; ?></td>
                           <td class="center">
                               
                                <a href="<?php echo site_url('everbright/individualsms_delete/'.$row['id']); ?>" class="btn btn-icon"><i class="fa fa-try"></i> Delete</a>
                            </td>
                        </tr>
						<?php $i=$i+1; ?>
                        <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>