<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 EXPORT OPPORTUNITY</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 EXPORT OPPORTUNITY</li>
      </ol>
    </div>
  </div>
</div>
<div class="col-12 ">
  <div class="card mt-4">
    <div class="card-body">
    <form id="form-filter" class="form-material">
        <div class="row">
          <div class="col-md-3">
            <div class="form-group">
              <label class="control-label">SORT BY</label>
              <select class="form-control" id="sortby" name="sortby">
                <option value="">SELECT OPTION</option>
                <option value="createdDate">DATE</option>
                <option value="country">COUNTRY</option>
              </select>
            </div>
          </div>
          <div class="col-md-3">
            <div class="form-group">
              <label class="control-label">SORT ORDER</label>
              <select class="form-control" id="sortorder" name="sortorder">
                <option value="">SELECT OPTION</option>
                <option value="ASC">ASCENDING</option>
                <option value="DESC">DESCENDING</option>
              </select>
            </div>
          </div>
        </div>
        <div class="row">
          <div class="col-md-3 offset-1">
            <button class="btn btn-block btn-rounded btn-outline-success" id="btn-filter">FILTER</button>
          </div>
          <div class="col-md-3">
            <button class="btn btn-block btn-rounded btn-outline-danger" id="btn-reset">RESET</button>
          </div>

          <?php if(in_array("10.2",$rights)){ ?>
          <div class="col-md-4 offset-1">
            <a class="btn btn-block btn-rounded btn-outline-success" href="<?php echo base_url(); ?>business/add">ADD BUSINESS LEADS
            </a>  
          </div>
          <?php } ?>
        </div>
      </form>

      <table id="businessTable" class="table table-striped table-bordered text-center" cellspacing="0" width="100%">
        <thead>
          <tr>
            <th>UPDATE</th>
            <th>DELETE</th>
            <th>ORGANISATION</th>
            <th>NAME</th>
            <th>COUNTRY</th>
            <th>EMAIL</th>
            <!-- <th>PRODUCT</th> -->
            <th>STATUS</th>
            <th>MODIFIED BY</th>
            <th>MODIFIED DATE</th>
          </tr>
        </thead>
        <tbody>
        </tbody>
      </table>
    </div>
  </div>
</div>