<style>
table{
  margin: 0 auto;
  width: 100%;
  clear: both;
  border-collapse: collapse;
  table-layout: fixed; 
  word-wrap:break-word; 
}
</style>
<?php
  $admin = $this->session->userdata('admin');
  $arr = $admin['rights'];
  $rights = explode(",",$arr);
?>
<div class="row page-titles">
  <div class="col-md-5 align-self-center">
    <h4 class="text-themecolor">MANAGE BANNERS</h4>
  </div>
  <div class="col-md-7 align-self-center text-right">
    <div class="d-flex justify-content-end align-items-center">
      <ol class="breadcrumb">
        <li class="breadcrumb-item"><a href="<?php echo base_url();?>admin/dashboard">HOME</a></li>
        <li class="breadcrumb-item active">MANAGE BANNERS</li>
      </ol>
    </div>
  </div>
</div>
<div class="col-12 ">
  <div class="card mt-4">
    <div class="card-body">
      <?php if(in_array("1.2",$rights)){ ?>
        <div class="col-md-4 offset-8">
          <a href="<?php echo base_url(); ?>banner/add" class="btn btn-block btn-rounded btn-outline-success">ADD BANNER</a>  
        </div>
      <?php } ?>

      <table id="bannerTable" class="table table-striped table-bordered text-center" cellspacing="0" width="100%">
        <thead>
          <tr>
            <th>EDIT</th>
            <th>DELETE</th>
            <th>STATUS</th>
            <th>IMAGE</th>
            <th>MODIFIED BY</th>
            <th>MODIFIED DATE</th>
          </tr>
        </thead>
        <tbody>
        </tbody>
      </table>
    </div>
  </div>
</div>