<?php
/**
* @author : Zul Zolkaffly (24/08/2016)
*/
?>
<!-- FINANCIAL PERFORMANCE -->
<div class="box box-warning">
	<div class="box-header with-border">
		<h3 class="box-title">Prestasi 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">Keterangan</th>
					<th>
						Tahun : <span class="year_curr"><?php echo ($years && $years[0]) ? $years[0] : NULL; ?></span>
					</th>
					<th>
						Tahun Sebelum : <span class="year_prev"><?php echo ($years && $years[1]) ? $years[1] : NULL; ?></span>
					</th>
				</tr>
				<tr><th>RM</th><th>RM</th></tr>
			</thead>
			
			<tbody>
				<tr>
					<td>Revenue</td>
					<td><?php echo number_format(1234567.89,2); ?></td>
					<td><?php echo number_format(1234567.89,2); ?></td>
				</tr>
				<tr>
					<td>Gross Profit</td>
					<td><?php echo number_format(1234567.89,2); ?></td>
					<td><?php echo number_format(1234567.89,2); ?></td>
				</tr>
				<tr>
					<td>Profit Before Taxation</td>
					<td><?php echo number_format(1234567.89,2); ?></td>
					<td><?php echo number_format(1234567.89,2); ?></td>
				</tr>
				<tr>
					<td>Working Capital</td>
					<td><?php echo number_format(1234567.89,2); ?></td>
					<td><?php echo number_format(1234567.89,2); ?></td>
				</tr>
				<tr>
					<td>Equity</td>
					<td><?php echo number_format(1234567.89,2); ?></td>
					<td><?php echo number_format(1234567.89,2); ?></td>
				</tr>
			</tbody>
		</table>
	</div>

</div>

<!-- FINANCIAL PERFORMANCE RATIO -->
<div class="box box-warning">
	<div class="box-header with-border">
		<h3 class="box-title">Nisbah Prestasi 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-6">Nisbah</th>
					<th colspan="2" class="col-md-4 text-center">Audit</th>
					<th rowspan="2" class="col-md-2 text-center">% Variasi</th>
				</tr>
				<tr>
					<th class="col-md-2 text-center">
						Tahun : <span class="year_curr"><?php echo ($years && $years[0]) ? $years[0] : NULL; ?></span>
					</th>
					<th class="col-md-2 text-center">
						Tahun Sebelum : <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>
					<td class="text-center">27%</td>
				</tr>
				<tr>
					<td>Cash</td>
					<td class="text-center">1.23</td>
					<td class="text-center">2.44</td>
					<td class="text-center">27%</td>
				</tr>
				<tr>
					<td>Asset Turnover</td>
					<td class="text-center">1.23</td>
					<td class="text-center">2.44</td>
					<td class="text-center">27%</td>
				</tr>
				<tr>
					<td>Trade Receivables Turnover</td>
					<td class="text-center">1.23</td>
					<td class="text-center">2.44</td>
					<td class="text-center">27%</td>
				</tr>
				<tr>
					<td>Trade Payables Turnover</td>
					<td class="text-center">1.23</td>
					<td class="text-center">2.44</td>
					<td class="text-center">27%</td>
				</tr>
				<tr>
					<td>Debt</td>
					<td class="text-center">1.23</td>
					<td class="text-center">2.44</td>
					<td class="text-center">27%</td>
				</tr>
				<tr>
					<td>Gross Profit Margin</td>
					<td class="text-center">1.23</td>
					<td class="text-center">2.44</td>
					<td class="text-center">27%</td>
				</tr>
				<tr>
					<td>Operating Margin</td>
					<td class="text-center">1.23</td>
					<td class="text-center">2.44</td>
					<td class="text-center">27%</td>
				</tr>
				<tr>
					<td>Net Profit Margin</td>
					<td class="text-center">1.23</td>
					<td class="text-center">2.44</td>
					<td class="text-center">27%</td>
				</tr>
				<tr>
					<td>Return of Equity</td>
					<td class="text-center">1.23</td>
					<td class="text-center">2.44</td>
					<td class="text-center">27%</td>
				</tr>
			</tbody>
		</table>
	</div>

</div>