<div class="table-responsive">
	<table class="table table-sm table-striped table-hover">
		<thead>
			<tr>
				<th scope="col">#</th>
				<th scope="col" class="text-left">TANGGAL</th>
				<th scope="col" class="text-left">NO_TRANSAKSI</th>
				<th scope="col">KETERANGAN</th>
				<th scope="col">NILAI</th>
				<th class="w-2 text-right" width="20%">AKSI</th>
			</tr>
		</thead>
		<tbody>
			<?php if(!empty($result)){
				$no=$this->uri->segment(3)+1;
				foreach ($result as $item){
					
					echo "<tr><td class='text-center'>$no</td>
					<td class='text-left'>".date("d/n/Y", strtotime($item->tgl))."</td>
					<td class='text-left'>".$item->no_trans."</td>
					<td class='text-left'>".$item->keterangan."</td>
					<td class='text-left'>".rp($item->nominal)."</td>
					<td class='text-right w-20'>
					<div class='btn-group btn-group-sm' role='group'>
					<a href='".base_url('journal/detail/').encrypt_url($item->id_jurnal)."' class='btn btn-success'>
					<span class='icon text-white-50'>
					<i class='fa fa-fw fa-eye'></i>
					</span>
					 Detail 
					</a>
					<a href='".base_url('journal/edit/').encrypt_url($item->id_jurnal)."' class='btn btn-info'>
					<span class='icon text-white-50'>
					<i class='fa fa-fw fa-edit'></i>
					</span>
					 Edit 
					</a>
					<button type='button' data-toggle='modal' data-target='#confirm-delete'  class='btn btn-danger btn-sm add_bahan flat' data-id='".encrypt_url($item->id_jurnal)."'><i class='fa fa-trash'></i> Hapus</button>
					
					</div>
					</td>
					</tr>";
					$no++;
				} }else{ ?>
				<tr>
					<td colspan="7">Data belum ada</td>
				</tr>
			<?php } ?>
		</tbody>
	</table>
	<nav aria-label="Page navigation" class="mt-2">
		<?php 
			echo $this->ajax_pagination->create_links(); 
		?>
	</nav>
</div><!-- /.card-body -->
