<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>Upload File Perbaikan</h2>
							<?php if ($this->session->userdata('admin_level') == "User"){ ?>
					 <a href="<?php echo base_URL(); ?>admin/perbaikan/<?php echo $this->uri->segment(3)?>/add"> <i class="btn btn-info"> Tambah File 	</i></a>
							<?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>Keterangan Perbaikan</th>
                                        <th>File</th>
										 <th>Status</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->ket?></td>
										
										<td>
										<?="<b></b><i><a href='".base_URL()."upload/perbaikan/".$b->file."' target='_blank' </a>" ?>
										<button data-toggle="tooltip" data-placement="left" target='_blank' title="Download File" class="btn"><i class="notika-icon notika-sent" > </i></button>
										
										</td>
										<td><?php  echo $b->status?></td>
										
								<td>  
								<?php if ($b->status == "Menunggu Verifikasi" or $b->status == "Perbaikan") { ?>
								<?php if ($this->session->userdata('admin_level') == "User"){ ?>
								<a href="<?=base_URL()?>admin/perbaikan/<?php echo $this->uri->segment(3)?>/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/perbaikan/<?php echo $this->uri->segment(3)?>/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/perbaikan/<?php echo $this->uri->segment(3)?>/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>
	
	