<div class="content-header">
  <div>
    <h4 class="content-title"><?php echo $title; ?></h4>
  </div>
</div><!-- content-header -->
<div class="content-body">
	<?php if($this->session->flashdata('flash')): ?>
	<div class="alert alert-success"><?php echo $this->session->flashdata('flash'); ?></div>
	<?php endif; ?>
	<a href="admin/akses/new" class="btn btn-primary mb-2"><i class="fas fa-plus"></i></a>
	<table id="myTable" class="table">
    <thead>
      <tr>
      	<th class="wd-5p">No</th>
      	<th>Nama</th>
		<th>Email</th>
		<th>Foto</th>
		<th>Opsi</th>
      </tr>
    </thead>
    <tbody>
    	<?php $i = 1; ?>
		<?php foreach($akses as $aks): ?>
		<tr>
			<td><?php echo $i; ?>.</td>
			<td><?php echo $aks['admin_nama']; ?></td>
			<td><?php echo $aks['admin_email']; ?></td>
			<td><img src="assets/admin/img/<?php echo $aks['admin_foto']; ?>" width="50" alt="<?php echo $aks['admin_foto']; ?>"></td>
			<td>
				<a href="admin/akses/edit/<?php echo $aks['admin_id']; ?>" class="btn btn-sm btn-warning"><i class="fa fa-edit"></i> Edit</a>
				<?php if('6d3d96d6a22f6874d724fa3761d1b323' == $aks['admin_id']) { ?>
				<?php }else { ?>
				<a href="admin/akses/hapus/<?php echo $aks['admin_id']; ?>" class="btn btn-sm btn-danger" onclick="return confirm('Yakin data ini akan dihapus?');"><i class="fa fa-trash"></i> Hapus</a>
				<?php } ?>
			</td>
		</tr>
		<?php $i++; ?>
		<?php endforeach; ?>
    </tbody>
  </table>
  <small class="text-info">Semua password akun admin di buat otomatis 12345</small>
</div><!-- content-body -->