<section>
	<div class="gap black-layer opc9">
		<div class="fixed-bg2" style="background-image: url(<?=base_url();?>agung/assets/images/pg-tp-bg.jpg);"></div>
		<div class="container">
			<div class="pg-tp-wrp text-center">
				<div class="pg-tp-inr">
				<h1 itemprop="headline">Saldo <?=$jenis;?></h1>
					<ol class="breadcrumb">
					<li class="breadcrumb-item"><a href="<?=base_url();?>" title="" itemprop="url">Home</a></li>
					<li class="breadcrumb-item"><a href="#" title="" itemprop="url">Saldo <?=$jenis;?></a></li>
					</ol>
				</div>
			</div>
		</div>
</div>
</section>


<!-- Blog Start -->
<section>
<div class="gap">
<div class="container">
<div class="blog-detail-wrp">
<div class="row">
<div class="col-md-8">
				<div class="table-responsive">
				    <table class="table table-bordered  table-striped table-hover">
					  <thead>
						<tr>
						  <th scope="col">No</th>
						  <th scope="col">Jenis</th>
						  <th scope="col">Pendapatan</th>
						  <th scope="col">Pengeluaran</th>
						  <th scope="col">Saldo</th>
						</tr>
					  </thead>
					  <tbody>
					  <?php $no=$saldo_akhir=0; foreach($this->profil->saldo_jenis($id) as $saldo) : $no++; $saldo_akhir=$saldo_akhir+$saldo->saldo; ?>
						<tr>
						  <th class="text-center"><?=$no;?></th>
						  <td><a href="<?=base_url();?>index.php/saldo/detail/<?=$saldo->id;?>/<?=alamat($saldo->sub_jenis);?>"><?=$saldo->sub_jenis;?></a></td>
						  <td class="text-right"><?=number_format($saldo->d);?></td>
						  <td class="text-right"><?=number_format($saldo->k);?></td>
						  <td class="text-right"><?=number_format($saldo->saldo);?></td>
						</tr>
					  <?php endforeach;?>
					  </tbody>
					  <thead>
						<tr>
						  <th scope="col" colspan="4">Saldo Akhir</th>
						  <th class="text-right">Rp. <?=number_format($saldo_akhir);?></th>
						</tr>
					  </thead>
					</table>
					
				    
                </div>
				</div>
				<?=$this->load->view('theme/at_menu.php');;?>
				
            </div>
        </div></div></div>
    </section>
