<div class="col-sm-12 col-12 p-0">
 <ul class="list-group">
 <?php							
                       
						$where1 = "content_type='Message'";
						$this->db->where($where1);
					    $query2 = $this->main_model->homecontent();
                        foreach($query2 as $row2):
						?>
  <li class="list-group-item" id="featureheads"><?php echo $row2['content_option']; ?></li>
</ul>
<li class="list-group-item p-0 pt-2" id="padd">
  <a href="demo/message-from-head.html"><center><img src="<?php echo base_url();?>admin/uploads/<?php echo $row2['home_image']; ?>" class="img-fluid" style="max-height: 200px;padding-bottom:5px;"></center></a>
  <center><span class="head"><?php echo $row2['title']; ?><br><a href="<?php echo site_url('home/headteachers'); ?>" class="btn btn-success btn-sm btn-block">বিস্তারিত</a></span></center>
</li>
 <?php endforeach; ?> 
</div>