<div class="page-content">
    <div class="breadcrumb-section">
    <ul class="breadcrumb">
      <li class="breadcrumb-item"><a href="<?php echo base_url().'AdminDashboard'; ?>"> <i class="fa fa-home" aria-hidden="true"></i> Dashboard</a></li>
      <li class="breadcrumb-item"><a href="">Audit Trail List</a></li>
    </ul>
     <div class="clearfix"></div>
  </div>

    <div class="form_section">
        <form action method="get">
            <div class="container-fluid">
             <?php if ($this->session->flashdata('fail')!='') { ?>

               <div class="alert alert-danger">
                  <?php echo $this->session->flashdata('fail'); ?>
               </div>

            <?php } ?>
            <?php if ($this->session->flashdata('success')!='') { ?>

               <div class="alert alert-success">
                  <?php echo $this->session->flashdata('success'); ?>
               </div>

            <?php } ?>
                <div class="row">
                    <div class="form-content">

                        <div class="form-row category-form">
                            <h2>Search</h2>

                            <div class="form-content-inner">

                                <div class="col-md-12 col-sm-12">
                                    <div class="form-group form-left">

                                        <label for="name"> Search </label>
                                        <input  type="text" class="form-control" id="Search-field" name="Search" placeholder="Enter Search Key">
                                    </div>
                                </div>
                                <div class="clearfix"></div>

                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </form>

    </div>
    <div class="search-result">
        <div class="container-fluid">
            <div class="row">

                <div class="col-md-12">
                    <div class="table-responsive">

                        <div class="search-result-table">
                            <table class="table table-bordered table-striped table-datatable">
                                <thead class="thead-inverse">
                                    <tr>
                                        <th>Sl No.</th>
                                        <th>User Name</th>
                                        <th>Action</th>
                                        <th>Time</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php
                                    if(isset($recordSet) && !empty($recordSet))
                                    {
                                        $start=0;
                                        for($i=0;$i<count($recordSet);$i++)
                                           { $start++;
                                            ?>
                                            <tr>
                                                <td scope="row"><?php echo $start; ?></td>
                                                <td><?php echo $recordSet[$i]['user_name'];?></td>
                                                <td><?php echo $recordSet[$i]['action'];?></td>
                                                <td><?php echo $recordSet[$i]['action_time'];?></td>
                                    </tr>
                                    <?php }
                                }
                                else
                                { 
                                  ?>
                                  <tr>
                                      <td  colspan="9" align="center" valign="middle" class="blue-block">No Records Found</td>
                                  </tr>
                                  <?php }?> 
                              </tbody>
                              <tfoot>
                              </tfoot>
                          </table>
                      </div>
                  </div>
              </div>
        </div>
    </div>
</div>

</div>
