<?php if($this->session->userdata('level')=='1'){ ?>
	<div class="row">
		<div class="col-xl-12 table-responsive" style="min-height:400px;">
			<table class="table table-bordered table-sm table-hover table-condensed" id="list_user">
				<thead>
					<tr>
						<th width="50px" style="text-align:center;">No</th>
						<!-- th>
							<div class="badge" style="font-size:12px;text-align:center;">FOTO IDENTITAS</div>
						</th-->
						<th>
							<div class="badge" style="font-size:12px;text-align:center;">NAMA PENGUNJUNG</div>
						</th>
						<th>
							<div class="badge" style="font-size:12px;text-align:center;">KONTAK</div>
						</th>
						<th>
							<div class="badge" style="font-size:12px;text-align:center;">JENIS LAYANAN</div>
						</th>
						<th>
							<div class="badge" style="font-size:12px;text-align:center;">PERIHAL BANTUAN</div>
						</th>
						<th>
							<div class="badge" style="font-size:12px;text-align:center;">BANTUAN MELALUI</div>
						</th>
						<th>
							<div class="badge" style="font-size:12px;text-align:center;">WAKTU MENGHUBUNGI</div>
						</th>
					</tr>
				</thead>
				<tbody>
					<?php $start=1;foreach ($pengunjung as $pp) { 
						if($pp->bantuan == '1'){
							$bantuan = 'CHAT';
							}else if($pp->bantuan == '2'){
							$bantuan = 'VOICE CALL';
							}else if($pp->bantuan == '3'){
							$bantuan = 'VIDEO CALL';
							}else{
							$bantuan = 'BELUM PILIH';
						}
					?>
					<tr>
						<td align="center"><?php echo $start++ ?></td>
						<!-- td align="center"><a href="<?=base_url('data_dukung/'.$pp->file_ktp);?>" target="_blank"><img src="<?=base_url('data_dukung/'.$pp->file_ktp);?>" class="img img-thumbnail" style="max-height:100px;"></a></td-->
						<td>
							<?php echo $pp->p_nama ?>
						</td>
						<td>
							<?php echo $pp->p_hp; ?>
						</td>
						<td>
							<b><?php echo $pp->l_nama_jenis_layanan ?></b><br/>
							<?php echo $pp->l_layanan ?>
						</td>
						<td><?php echo $pp->catatan ?></td>
						<td style="text-align:center;"><?php echo $bantuan ?></td>
						<td style="text-align:center;"><?php echo date('d-m-Y / H:i:s',strtotime($pp->waktu)) ?></td>
					</tr>
					<?php } ?>	
				</tbody>
			</table>
		</div>
	</div>
<?php } ?>							