<!DOCTYPE html>
<html lang="en">
	<head>
		<?php $this->load->view('main/head');?>
		<!-- bootstrap & fontawesome -->
		<link rel="stylesheet" href="dek/assets/css/bootstrap.css" />
		<link rel="stylesheet" href="dek/assets/css/font-awesome.css" />

		<!-- page specific plugin styles -->
		

		<!-- text fonts -->
		<link rel="stylesheet" href="dek/assets/css/ace-fonts.css" />

		<!-- ace styles -->
		<link rel="stylesheet" href="dek/assets/css/ace.css" class="ace-main-stylesheet" id="main-ace-style" />
		
		<!-- ace settings handler -->
		<script src="dek/assets/js/ace-extra.js"></script>
	</head>

	<body class="no-skin">
		<!-- #section:basics/navbar.layout -->
		<?php $this->load->view('main/menu_ndhuwur');?>

		<!-- /section:basics/navbar.layout -->
		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>

			<!-- #section:basics/sidebar.horizontal -->
			<?php $this->load->view('main/top_menu');?>

			<!-- /section:basics/sidebar.horizontal -->
			<div class="main-content">
				<div class="main-content-inner">
					<div class="page-content">
						<!-- #section:settings.box -->
						
						<!-- /section:settings.box -->
						<div class="page-header">
							<h1>
								Keuangan
								<small>
									<i class="ace-icon fa fa-angle-double-right"></i>
									Omset/Income 
								</small>
							</h1>
						</div><!-- /.page-header -->

						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->
								<h3 class="header smaller lighter blue text-center">Rekap Pendapatan dari Pasien Sudah Pulang
										</h3>
								<div class="row">									
									<div class="col-sm-6">
										<div class="widget-box transparent">
											<div class="widget-header widget-header-flat">
												<h4 class="widget-title lighter">
													<i class="ace-icon fa fa-star orange"></i>
													Rawat Inap
												</h4>

												<div class="widget-toolbar">
													<a href="#" data-action="collapse">
														<i class="ace-icon fa fa-chevron-up"></i>
													</a>
												</div>
											</div>

											<div class="widget-body">
												<div class="widget-main no-padding">
												<?php if(sizeof($setomsetri)>0){ ?>
													<table class="table table-bordered table-striped">
														<thead class="thin-border-bottom">
															<tr>
																<th>
																	<i class="ace-icon fa fa-caret-right blue"></i> Penjamin
																</th>

																<th>
																	<i class="ace-icon fa fa-caret-right blue"></i> Qty Px
																</th>

																<th class="">
																	<i class="ace-icon fa fa-caret-right blue"></i> Sub Total(Rp)
																</th>
																<th class="hidden-480">
																	<i class="ace-icon fa fa-caret-right blue"></i> %
																</th>
															</tr>
														</thead>

														<tbody>
															<tr>
																<td>Umum</td>

																<td>
																	<b class="green"><?php echo $pxumum;?></b>
																</td>
																<td>
																	<b class="green">Rp <?php echo number_format($rpumum,0,',','.');?></b>
																</td>

																<td class="hidden-480">
																	<span class="label label-success arrowed"><?php echo $rpumum!=0? round($rpumum/$totri,2)*100:0;?> %</span>
																</td>
															</tr>

															<tr>
																<td>BPJS</td>

																<td>
																	<b class="blue"><?php echo $pxbpjs;?></b>
																</td>
																<td>
																	<b class="blue">Rp <?php echo number_format($rpbpjs,0,',','.');?></b>
																</td>

																<td class="hidden-480">
																	<span class="label label-info arrowed"><?php echo $rpbpjs!=0? round($rpbpjs/$totri,2)*100:0;?> %</span>
																</td>
															</tr>

															<tr>
																<td>Asuransi Lainnya</td>

																<td>
																	<b class="orange"><?php echo $pxlainya;?></b>
																</td>
																<td>
																	<b class="orange">Rp <?php echo number_format($rplainya,0,',','.');?></b>
																</td>
  
																<td class="hidden-480">
																	<span class="label label-warning arrowed"><?php echo $rplainya!=0? round($rplainya/$totri,2)*100:0;?> %</span>
																</td>
															</tr>

															<tr>
																<td><strong>Total</strong></td>
																<td><strong>				
																	<b class="red"><?php echo $jmlpxri;?></b>
																</strong></td>
																<td><strong>
																	<b class="red">Rp <?php echo number_format($totri,0,',','.');?></b>
																</strong></td>

																<td class="hidden-480">
																	<span class="label label-danger arrowed-right arrowed"><?php echo $totri!=0? round($totri/$totri,2)*100:0;?> %</span>
																</td>
															</tr>
														</tbody>
													</table>
												<?php }else{ ?>
													Data Belum Tersedia
												<?php } ?>
												</div><!-- /.widget-main -->
											</div><!-- /.widget-body -->
										</div><!-- /.widget-box -->
									</div><!-- /.col -->
									<div class="col-sm-6">
										<div class="widget-box transparent">
											<div class="widget-header widget-header-flat">
												<h4 class="widget-title lighter">
													<i class="ace-icon fa fa-star green"></i>
													Rawat Jalan
												</h4>

												<div class="widget-toolbar">
													<a href="#" data-action="collapse">
														<i class="ace-icon fa fa-chevron-up"></i>
													</a>
												</div>
											</div>

											<div class="widget-body">
												<div class="widget-main no-padding">
													<table class="table table-bordered table-striped">
														<thead class="thin-border-bottom">
															<tr>
																<th>
																	<i class="ace-icon fa fa-caret-right blue"></i> Item
																</th>

																<th>
																	<i class="ace-icon fa fa-caret-right blue"></i>Jumlah Px
																</th>

																<th class="hidden-480">
																	<i class="ace-icon fa fa-caret-right blue"></i> Rp
																</th>
																<th class="hidden-480">
																	<i class="ace-icon fa fa-caret-right blue"></i> %
																</th>
															</tr>
														</thead>

														<tbody>
															<tr>
																<td>Umum</td>

																<td>				
																	<b class="green">$19.99</b>
																</td>
																<td>
																	<b class="blue">$16.45</b>
																</td>

																<td class="hidden-480">
																	<span class="label label-info arrowed-right arrowed-in">on sale</span>
																</td>
															</tr>

															<tr>
																<td>BPJS</td>

																<td>
																	<b class="blue">$16.45</b>
																</td>
																<td>
																	<b class="blue">$16.45</b>
																</td>

																<td class="hidden-480">
																	<span class="label label-success arrowed-in arrowed-in-right">approved</span>
																</td>
															</tr>

															<tr>
																<td>Asuransi Lainya</td>

																<td>
																	<b class="blue">$15.00</b>
																</td>
																<td>
																	<b class="blue">$16.45</b>
																</td>

																<td class="hidden-480">
																	<span class="label label-danger arrowed">pending</span>
																</td>
															</tr>

															<tr>
																<td>Total</td>

																<td>				
																	<b class="green">$19.99</b>
																</td>
																<td>
																	<b class="blue">$16.45</b>
																</td>

																<td class="hidden-480">
																	<span class="label label-info arrowed-right arrowed-in">on sale</span>
																</td>
															</tr>
														</tbody>
													</table>
												</div><!-- /.widget-main -->
											</div><!-- /.widget-body -->
										</div><!-- /.widget-box -->
									</div><!-- /.col -->
								</div>
								<!-- PAGE CONTENT ENDS -->
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content -->
				</div>
			</div><!-- /.main-content -->

			<?php $this->load->view('main/footer');?>

			<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
			</a>
		</div><!-- /.main-container -->
		<!-- basic scripts -->

		<!--[if !IE]> -->
		<script type="text/javascript">
			window.jQuery || document.write("<script src='dek/assets/js/jquery.js'>"+"<"+"/script>");
		</script>
		<!-- <![endif]-->
	
		<script type="text/javascript">
			if('ontouchstart' in document.documentElement) document.write("<script src='dek/assets/js/jquery.mobile.custom.js'>"+"<"+"/script>");
		</script>
		<script src="dek/assets/js/bootstrap.js"></script>

		<!-- page specific plugin scripts -->
		

		<!-- ace scripts -->
		<script src="dek/assets/js/ace/elements.scroller.js"></script>
		<script src="dek/assets/js/ace/elements.colorpicker.js"></script>
		<script src="dek/assets/js/ace/elements.fileinput.js"></script>
		<script src="dek/assets/js/ace/elements.typeahead.js"></script>
		<script src="dek/assets/js/ace/elements.wysiwyg.js"></script>
		<script src="dek/assets/js/ace/elements.spinner.js"></script>
		<script src="dek/assets/js/ace/elements.treeview.js"></script>
		<script src="dek/assets/js/ace/elements.wizard.js"></script>
		<script src="dek/assets/js/ace/elements.aside.js"></script>
		<script src="dek/assets/js/ace/ace.js"></script>
		<script src="dek/assets/js/ace/ace.ajax-content.js"></script>
		<script src="dek/assets/js/ace/ace.touch-drag.js"></script>
		<script src="dek/assets/js/ace/ace.sidebar.js"></script>
		<script src="dek/assets/js/ace/ace.sidebar-scroll-1.js"></script>
		<script src="dek/assets/js/ace/ace.submenu-hover.js"></script>
		<script src="dek/assets/js/ace/ace.widget-box.js"></script>
		<script src="dek/assets/js/ace/ace.settings.js"></script>
		<script src="dek/assets/js/ace/ace.settings-rtl.js"></script>
		<script src="dek/assets/js/ace/ace.settings-skin.js"></script>
		<script src="dek/assets/js/ace/ace.widget-on-reload.js"></script>
		<script src="dek/assets/js/ace/ace.searchbox-autocomplete.js"></script>
		<!-- the following scripts are used in demo only for onpage help and you don't need them -->
		<link rel="stylesheet" href="dek/assets/css/ace.onpage-help.css" />
		<link rel="stylesheet" href="dek/docs/assets/js/themes/sunburst.css" />

		<script type="text/javascript"> ace.vars['base'] = '..'; </script>
		<script src="dek/assets/js/ace/elements.onpage-help.js"></script>
		<script src="dek/assets/js/ace/ace.onpage-help.js"></script>
		<script src="dek/docs/assets/js/rainbow.js"></script>
		<script src="dek/docs/assets/js/language/generic.js"></script>
		<script src="dek/docs/assets/js/language/html.js"></script>
		<script src="dek/docs/assets/js/language/css.js"></script>
		<script src="dek/docs/assets/js/language/javascript.js"></script>
	</body>
</html>
