<div class="container">
 <div class="col-sm-12 col-12" id="mainpage">
   <div class="row">

    <div class="col-sm-9 col-12">
        

      <ul class="list-group p-0">
       

      <li class="list-group-item">
        <div class="col-sm-12 col-12 p-0">
            <ul class="list-group p-0">
                <li class="list-group-item font-weight-bold bg-success text-light" id="about">শিক্ষকবৃন্দের তথ্য</li>
              </ul>
          <div class="row">
               <?php $i=1;?>
<?php
    $query = $this->main_model->teacher();
    foreach ($query as $row):
        ?>
                                    <div class="col-sm-6 col-12 mt-3" data-aos="fade-right" data-aos-duration="2000">
              <table class="table table-bordered "id="studenttable">
                <tr>
                 <td colspan="2">
                  <center><img src="<?php echo base_url();?>admin/uploads/<?php echo $row['image']; ?>" class="img-fluid rounded" id="" style="max-height: 100px"><br></center>
                </td>
              
              </tr>
              
               <tr>
                  <th>নাম</th>
                <td><?php echo $row['name']; ?></td>
              </tr>

              <tr>
                <th>পদবী</th>
                <td>
				
				<?php 
									$query111 = $this->main_model->desig();
									foreach($query111 as $row123):
								?>
								<?php if($row['designation']==$row123['did']): ?><?php echo $row123['name']; ?><?php endif; ?>
                            <?php endforeach; ?>
				
				
				</td>
              </tr>
              <tr>
                <th>মোবাইল</th>
                <td><?php echo $row['contact']; ?></td>
              </tr>

              <tr>
                <th>ইমেইল</th>
                <td><?php echo $row['email']; ?></td>
              </tr>

              <tr>
                <td colspan="3"><center><a href="<?php echo site_url('home/teacherdetails/'.$row['tid']); ?>" class="btn btn-outline-success btn-sm">DETAILS</a></center></td> 
              </tr>               
            </table>
          </div>
                        
              <?php $i++; ?>
                             <?php endforeach; ?>            


        </div>
      </div>
    
    </li>
  </ul>
  <br>
  
 
</div>