<?php //print_r($usertype);exit; ?>
    <section class="content-header">
      <h1>
        Email Activity Log
      </h1>
      <ol class="breadcrumb">
        <li><a href="<?php echo base_url().'admin';?>"><i class="fa fa-dashboard"></i> Home</a></li>
        <li class="active">List</li>
      </ol>
    </section>

    <section class="content">
      <div class="row">
        <?php echo $this->utility->showMsg();?>
        <div class="col-xs-12">
          <div class="box">
            <div class="box-header">
              <h3 class="box-title">Management</h3>
              </div>
               
              <div></div>
            <!-- /.box-header -->
            <div class="box-body">
            <!-- <form action="" method="post">
              <div class="form-group">
                <div class="row">
                 <div class="col-sm-4">
                    <label class="col-sm-4 control-label">Search By Email</label>

                    <div class="col-sm-8">
                        <input type="text" name="email" id="email" value="<?php if($this->input->post('email')){ echo $this->input->post('email'); }?>">

                    </div>
                 </div> 
                 <div class="col-sm-4">
                            <div class="col-sm-8">
                                <input type="submit" class="btn btn-black " value="Search" id="add">
                            </div>
                         </div>
                        </div>
                      </div>
            </form> -->
               
              <table id="example1" class="table table-bordered table-striped">
                <thead>
                <tr>
                  <th>#</th>
                  <th>Email</th>
                  <th>Subject</th>
                  <th>Date & Time</th>
                  <th>Opens</th>
                  <th>Clicks</th>
                  <th>Status</th>
                </tr>
                </thead>
                 <?php if(count($activity)>0)
                {?>
                <tbody>
                <?php
                $i=1;
                foreach ($activity as $data) 
                {
                  if($data['email']!='info@anexus.ch' && $data['email']!='info@castleevents.com' && $data['email']!='mk@anexus.es'  && $data['email']!='pdp@anexus.ch'  && $data['email']!='jobs@anexus.ch')
                  {
                ?>
                <tr>
                    <td><?php echo $i;?></td>
                    <td><?php echo $data['email']; ?></td>
                    <td><?php echo $data['subject']; ?></td>
                    <td><?php echo $data['date']; ?></td>
                    <td><?php echo $data['opens']; ?></td>
                    <td><?php echo $data['clicks']; ?></td>
                    <td><?php echo $data['state']; ?></td>
                </tr>
                <?php $i++; } } ?>
                <?php }else{echo $activity; } ?>
                <tfoot>
               
                </tfoot>
              </table>
              
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
        <!-- /.col -->
      </div>
      <!-- /.row -->
    </section>



    
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/12.1.6/css/intlTelInput.css">
<script>
  $(function () {
    $("#example1").DataTable();
  });
</script>
