<!DOCTYPE html>
<html lang="en">

<head>
	<?php $this->load->view('_partials/head.php'); ?>
</head>

<body>

	<?php //$this->load->view('_partials/navbar.php'); ?>

	<div class="container">
		<h1>List Saldo Akhir</h1>
		<ul>
        <table id='tabelku' width='50%' class='table table-bordered table-hover'>
                    <head>
                    <tr bgcolor='#e5e5e5'>
                     
                    <td align='right'>Id_Master</td>
                    <td align='right'>customers_nama </td>
                    <td align='right'>nomor SPO </td>
                    <td align='right'>waktu pencatatan SPO </td>
                    <td align='right'>nomor SO </td>
                    <td align='right'>waktu pencatatan SO </td>
                    <td align='right'>Nomor PKD </td>
                    <td align='right'>waktu pencatatan PKD </td>
                    <td align='right'>Nomor SPD </td>
                    <td align='right'>waktu pencatatan SPD </td>
                    <td align='right'>id link ke tabel transaksi </td>

                </tr>
                    </head>

                    <body>
                    
                    <?php
                    $ctr = -1;
                     foreach ($datamodel as $dataview) :
                     $ctr++;?>
                     <tr bgcolor='#ffffff'>
                     <td align='right'>
                        <?=  $dataview->id_master ? html_escape($dataview->id_master) : "--" ?>		
                    </td>
                    <td align='right'>
                        <?=  $dataview->customers_nama ? html_escape($dataview->customers_nama) : "--" ?>		
                    </td>
                    <td align='right'>
                        <?=  $dataview->nomer_spo ? html_escape($dataview->nomer_spo) : "--" ?>		
                    </td>
                    <td align='right'>
                        <?=  $dataview->dtime_spo ? html_escape($dataview->dtime_spo) : "--" ?>		
                    </td>
                    <td align='right'>
                        <?=  $dataview->nomer_so ? html_escape($dataview->nomer_so) : "--" ?>		
                    </td>
                    <td align='right'>
                        <?=  $dataview->dtime_so ? html_escape($dataview->dtime_so) : "--" ?>		
                    </td>
                    <td align='right'>
                        <?=  $dataview->nomer_pkd ? html_escape($dataview->nomer_pkd) : "--" ?>		
                    </td>
                    <td align='right'>
                        <?=  $dataview->dtime_pkd ? html_escape($dataview->dtime_pkd) : "--" ?>		
                    </td>
                    <td align='right'>
                        <?=  $dataview->nomer_spd ? html_escape($dataview->nomer_spd) : "--" ?>		
                    </td>
                    <td align='right'>
                        <?=  $dataview->dtime_spd ? html_escape($dataview->dtime_spd) : "--" ?>		
                    </td>
                    <td align='right'>
                        <?=  $dataview->id_transaksi ? html_escape($dataview->id_transaksi) : "--" ?>		
                    </td>
                    
                          
                    
                         </tr>
                         
                    <?php endforeach ?>
                    
                     
                     
                    </body>
</table>

			 
		</ul>
		<?php echo('jmldata produk: <br>'); 
		var_dump($jmldata);
		
		?>

		<div class= "pagination">
			<?=  $this->pagination->create_links(); ?>
			</div>
	</div>

	<?php $this->load->view('_partials/footer.php'); ?>
</body>

</html>
