<?php
/**
* @author : Zul Zolkaffly (24/08/2016)
*/
?>
<!-- FINANCIAL RATIO -->
<div class="box box-warning">
	<div class="box-header with-border">
		<h3 class="box-title">Nisbah Kewangan</h3>
		<div class="box-tools pull-right">
			<button class="btn btn-success btn-sm" onClick="do_print()"><i class="fa fa-print"></i>&nbsp;Cetak</button>
			<button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
		</div>
	</div>
	
	<div class="box-body">
		<table id="balance" class="table table-bordered table-striped datatables">
			<thead>
				<tr>
					<th rowspan="2" class="col-md-8">Ratio</th>
				</tr>
				<tr>
					<th class="col-md-2 text-center">
						Tahun Sekarang<br />Sehingga 31/12/<span class="year_curr"><?php echo ($years && $years[0]) ? $years[0] : NULL; ?></span>
					</th>
					<th class="col-md-2 text-center">
						Tahun Sebelum<br />Sehingga 31/12/<span class="year_prev"><?php echo ($years && $years[1]) ? $years[1] : NULL; ?></span>
					</th>
				</tr>
			</thead>
			
			<tbody>
				<tr>
					<td>Current</td>
					<td class="text-center">1.23</td>
					<td class="text-center">2.44</td>
				</tr>
				<tr>
					<td>Cash</td>
					<td class="text-center">1.23</td>
					<td class="text-center">2.44</td>
				</tr>
				<tr>
					<td>Asset Turnover</td>
					<td class="text-center">1.23</td>
					<td class="text-center">2.44</td>
				</tr>
				<tr>
					<td>Trade Receivables Turnover</td>
					<td class="text-center">1.23</td>
					<td class="text-center">2.44</td>
				</tr>
				<tr>
					<td>Trade Payables Turnover</td>
					<td class="text-center">1.23</td>
					<td class="text-center">2.44</td>
				</tr>
				<tr>
					<td>Debt</td>
					<td class="text-center">1.23</td>
					<td class="text-center">2.44</td>
				</tr>
			</tbody>
		</table>
	</div>

</div>



<!-- INCOME STATEMENT RATIO -->
<div class="box box-warning">
	<div class="box-header with-border">
		<h3 class="box-title">Nisbah Keuntungan</h3>
		<div class="box-tools pull-right">
			<button class="btn btn-success btn-sm" onClick="do_print()"><i class="fa fa-print"></i>&nbsp;Cetak</button>
			<button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
		</div>
	</div>
	
	<div class="box-body">
		<table id="balance" class="table table-bordered table-striped datatables">
			<thead>
				<tr>
					<th rowspan="2" class="col-md-8">Ratio</th>
				</tr>
				<tr>
					<th class="col-md-2 text-center">
						Tahun Sekarang<br />Sehingga 31/12/<span class="year_curr"><?php echo ($years && $years[0]) ? $years[0] : NULL; ?></span>
					</th>
					<th class="col-md-2 text-center">
						Tahun Sebelum<br />Sehingga 31/12/<span class="year_prev"><?php echo ($years && $years[1]) ? $years[1] : NULL; ?></span>
					</th>
				</tr>
			</thead>
			
			<tbody>
				<tr>
					<td>Gross Profit Margin</td>
					<td class="text-center">1.23</td>
					<td class="text-center">2.44</td>
				</tr>
				<tr>
					<td>Operating Margin</td>
					<td class="text-center">1.23</td>
					<td class="text-center">2.44</td>
				</tr>
				<tr>
					<td>Net Profit Margin</td>
					<td class="text-center">1.23</td>
					<td class="text-center">2.44</td>
				</tr>
				<tr>
					<td>Return of Equity</td>
					<td class="text-center">1.23</td>
					<td class="text-center">2.44</td>
				</tr>
			</tbody>
		</table>
	</div>

</div>