
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      
    </section>

    <!-- Main content -->
    <section class="content">
      <div class="row">
        <div class="col-xs-12">
         
          <!-- /.box -->

          <div class="box">
            <div class="box-body">
              <div class="box-header with-border">
        <h3 class="box-title">View Deals</h3>   
      </div>
      <br/>
            
			<?php
              $success = $this->session->flashdata('success');
               if(isset($success)){  ?>
            <div class="alert alert-success">
              <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
              <?php echo $this->session->flashdata('success');?>
          </div>
          <?php } ?>
		  <?php
              $error = $this->session->flashdata('error');
               if(isset($error)){  ?>
            <div class="alert alert-danger">
              <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
              <?php echo $this->session->flashdata('error');?>
          </div>
          <?php } ?>
              <table id="example1" class="table table-bordered table-striped">
                <thead>
                <tr>
                  <th>Code Id</th>
                  <th>Name</th>
                  <th>Title</th>
                  
                  <th>Actions</th>
                </tr>
                </thead>
                <tbody>
                  <?php 
                  $counter = 1; 
                 foreach ($users_rows as $rows) { ?>
                <tr>
                  <td><?php echo $counter ; ?></td>
                  <td><a href="<?php echo base_url('admin/Add_deal/detail/').$rows->id;  ?>"><?php echo $rows->name ; ?></a></td>
                  <td><?php echo $rows->title; ?></td>
                  
                  
                  <td>
				  <a href="<?php echo base_url('admin/Add_deal/detail/').$rows->slug; ?>" class="btn btn-xs btn-info"><i class="fa fa-eye" aria-hidden="true"></i></a>
          <a href="<?php echo base_url('admin/Add_deal/update/').$rows->slug; ?>" class="btn btn-xs btn-primary"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a>
          <a href="<?php echo base_url('admin/Add_deal/del/').$rows->slug; ?>" class="btn btn-xs btn-danger"><i class="fa fa-close" aria-hidden="true"></i></a>
				  </td>
                </tr>
                <?php 
                $counter++;
              } ?>
                </tfoot>
              </table>
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
        <!-- /.col -->
      </div>
      <!-- /.row -->
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->