<div class="data-table-area">
        <div class="container">
            <div class="row">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <div class="data-table-list">
                        <div class="basic-tb-hd">
                            <h2>Permohonan PSB</h2>
							<?php if (empty($data) == TRUE) { ?>
							<?php if ($this->session->userdata('admin_level') == "User"){ ?>
					 <a href="<?php echo base_URL(); ?>admin/mohon/add"> <i class="btn btn-info"> Tambah Data 	</i></a>
							<?php } ?>
							<?php } ?>
						 <?php echo $this->session->flashdata("k");?>
                        <div class="table-responsive">
                            <table id="data-table-basic" class="table table-striped">
                                <thead>
                                    <tr>
                                        <th>Nomor</th>
                                        <th>Nama</th>
                                        <th>Produk</th>
										<th>Jenis</th>
										<th>Alamat</th>
										<th>Tanggal Pengajuan</th>
										<th>Status</th>
										<th>Keterangan</th>
										<th>File Lampiran</th>
								
                                        <th>Action</th>
                                  
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                       <?php 
										if (empty($data)) {
										echo "<tr></tr>";
														} else {
										$no 	= ($this->uri->segment(4) + 1);
										foreach ($data as $b) {
										?> 
										<td><?php  echo $no?></td>
										<td><?php  echo $b->pemilik?></td>
										<td><?php  echo $b->produk?></td>
										<td><?php  echo $b->jenis?></td>
										<td><?php  echo $b->alamat?></td>
										<td><?php  echo $b->tgl?></td>
										<td><?php  echo $b->status?></td>
										<td><?php  echo $b->ket?></td>
										<td>	<?="<b> 1. </b><i><a href='".base_URL()."upload/mohon/".$b->file1."' target='_blank'>".$b->file1."</a>"?><br>
												<?="<b>2.  </b><i><a href='".base_URL()."upload/mohon/".$b->file2."' target='_blank'>".$b->file2."</a>"?><br>
												<?="<b>3.  </b><i><a href='".base_URL()."upload/mohon/".$b->file3."' target='_blank'>".$b->file3."</a>"?><br>
												<?="<b>4.  </b><i><a href='".base_URL()."upload/mohon/".$b->file4."' target='_blank'>".$b->file4."</a>"?><br>
												<?="<b>5.  </b><i><a href='".base_URL()."upload/mohon/".$b->file5."' target='_blank'>".$b->file5."</a>"?><br>
												<?="<b>6.  </b><i><a href='".base_URL()."upload/mohon/".$b->file6."' target='_blank'>".$b->file6."</a>"?><br>
												<?="<b>7.  </b><i><a href='".base_URL()."upload/mohon/".$b->file7."' target='_blank'>".$b->file7."</a>"?><br>
												<?="<b>8.  </b><i><a href='".base_URL()."upload/mohon/".$b->file8."' target='_blank'>".$b->file8."</a>"?><br>
												<?="<b>9.  </b><i><a href='".base_URL()."upload/mohon/".$b->file9."' target='_blank'>".$b->file9."</a>"?>
												
										</td>
										
										
								<td> 
								<?php if ($b->status == "Menunggu Verifikasi" or $b->status == "Tunda") { ?>
								<?php if ($this->session->userdata('admin_level') == "User"){ ?>
								
								<a href="<?=base_URL()?>admin/mohon/edt/<?php echo $b->id?>" </a> <span class="btn btn-success success-icon-notika btn-reco-mg btn-button-mg">edit</span>
									
										<a href="<?=base_URL()?>admin/mohon/del/<?php echo $b->id?>" onclick="return confirm('Hapus Data?')" </a> <span class="btn btn-warning warning-icon-notika btn-reco-mg btn-button-mg">delete</span>
								<?php } ?>
									<?php } ?>
								<?php if ($this->session->userdata('admin_level') == "Admin"){ ?>
									 <a href="<?=base_URL()?>admin/mohon/edt_ver/<?php echo $b->id?>" </a> <span class="btn btn-success success-icon-notika btn-reco-mg btn-button-mg">Verifikasi</span>
								<?php }  ?>
									</td>
									
									</tr>
									
                                   <?php 
			$no++;
			}
		}
		?>
                                </tbody>
                                
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
	