<html>
<head>
    
<div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
           
          </div><!-- /.col -->
         
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <section class="content">
      <div class="container-fluid">
        <div class="row">
          <div class="col-12">
            
            <!-- /.card -->

            <div class="card">
              <div class="card-header">
                <h3 class="card-title"><?php echo $this->session->flashdata("k");?></h3>
                <h3 class="card-title"><?php echo $this->session->flashdata("kk");?></h3>
              </div>
              <!-- /.card-header -->
              <div class="card-body">
              <table  id="example1" class="table table-bordered table-striped">
                  <thead>
                  <tr>
                    <th>No</th>
                    <th>Nama Usaha</th>
                    <th>Nama Pemilik</th>
                    <th>Telp</th>
                    <th>Jenis Produk</th>
                    <th>Nama Produk</th>
                    <th>Lintas Sektor</th>
                    <th>Aksi</th>
                  </tr>
                           
                  </thead>
                  <tbody >
                  <tr>
                  <?php 
                  if (empty($data)) {
                    echo "<tr></tr>";
                  } else {
                    $no 	= ($this->uri->segment(4) + 1);
                    foreach ($data as $b) {
                  ?>
                  <td> 
                <?=$no?>
                 
                </td>
                 <td> 
                <?=$b->nama_usaha?>
                 
                </td>
                  
                  <td>
                  <?=$b->nama_pemilik?>
                  </td>
                    
                  <td>
                    <?=$b->telp?> 
                  </td>

                  <td>
                     <?=$b->jenis_produk?>
                    </td>
                    <td>
                    <?=$b->nama_produk?>
                   </td>
                    <td>
                    <?=$b->linsek?>
                   </td>
                   
                    <td class="text-center py-0 align-middle">
                      <div class="btn-group btn-group-sm">
                     
                      <?php if ($b->hitung < 7)  { ?> <!-- Acton Operator -->
											  <a class="btn btn-info " href="<?=base_URL()?>sistem/progres_detail/<?php echo encrypt_url ($b->id_proses)?>">Input Progres</a>
                   
								 
											 <?php } ?>
                   
                   
                       <?php if ($b->hitung == 7)  { ?> <!-- Acton Operator -->
											  <a class="btn btn-info disabled" href="<?=base_URL()?>sistem/progres_detail/<?php echo encrypt_url ($b->id_proses)?>">Input Progres</a>
                   
								 
											 <?php } ?>
                      </div>
                    </td>
                       
                </tr>
                  
                  <?php 
			$no++;
			}
		}
		?> 
                  </tbody>
                 
                </table>
              </div>
              <!-- /.card-body -->
            </div>
            <!-- /.card -->
          </div>
          <!-- /.col -->
        </div>
        <!-- /.row -->
      </div>
      <!-- /.container-fluid -->
    </section>
  
    	
