<div class="container">
 <div class="col-sm-12 col-12" id="mainpage">
  <div class="row">
<?php
    $query = $this->main_model->classroutine_info($id);
    foreach ($query as $row):
        ?>
               
				

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

      <ul class="list-group p-0">
       <li class="list-group-item font-weight-bold bg-success text-light" id="about"><?php echo $row['title']; ?></li>
       <li class="list-group-item">

        <h6><a href="<?php echo base_url();?>admin/uploads/<?php echo $row['thumb_image']; ?>" class="btn btn-sm btn-primary float-right" download="<?php echo $row['title']; ?>"> Download</a></h6>

                <div class='embed-responsive' style='padding-bottom:150%'>
          <object data="<?php echo base_url();?>admin/uploads/<?php echo $row['thumb_image']; ?>" type='application/pdf' width='100%' height='100%'></object>
        </div>
              </li>  

      <span></span>

      <div class="addthis_inline_share_toolbox"></div>


      

    </ul>
    <br>

  </div>
  
    <?php endforeach; ?>