<?php $this->load->view('admin/message'); ?>
<?php $this->load->view('admin/error'); ?>
<?php function buatrp($angka) { $jadi = "" . number_format($angka,0,',','.'); return $jadi; } ?>

<div class="row">


	 <div class="col-md-6">
		<div class="box box-widget widget-user-2">
			<div class="widget-user-header bg-red">
				<table>
					<tr>
						<td><i class="fa fa-group fa-5x" style="width: 20px;"></i></td>
						<td>
							<h3 class="widget-user-username">Kunjungan</h3>
	              			
	              			<h5 class="widget-user-desc">Penunjang Medis</h5>
	              			<h5 class="widget-user-desc">Bulan <?php echo ConvertBulan(date('m')); ?> <?php echo date('Y'); ?></h5>
	              		</td>
					</tr>
				</table>
            </div>
            <div class="box-footer no-padding">
            	<ul class="nav nav-stacked">
	               <?php foreach ($data_kunjungan_penunjang as $row): ?>
            			<li><a target="_blank" href="<?php echo base_url(); ?>home/chart_kunjungan_penunjang_medis/<?php echo $row->Category; ?>"><?php echo  $row->Category; ?> <span class="badge bg-red pull-right"><?php echo buatrp($row->Jumlah); ?></span></a></li>
            		<?php endforeach ?>
              	</ul>
            </div>
        </div>
	</div>

	<div class="col-md-6">
		<div class="box box-widget widget-user-2">
			<div class="widget-user-header bg-orange">
				<table>
					<tr>
						<td><i class="fa fa-line-chart  fa-5x" style="width: 20px;"></i></td>
						<td>
							<h3 class="widget-user-username">Pendapatan</h3>
	              			
	              			<h5 class="widget-user-desc">Penunjang Medis</h5>
	              			<h5 class="widget-user-desc">Bulan <?php echo ConvertBulan(date('m')); ?> <?php echo date('Y'); ?></h5>
	              		</td>
					</tr>
				</table>
            </div>
            <div class="box-footer no-padding">
            	<ul class="nav nav-stacked">
	               <?php foreach ($data_pendapatan_penunjang as $row): ?>
            			<li><a target="_blank" href="<?php echo base_url(); ?>home/chart_pendapatan_penunjang_medis/<?php echo $row->Category; ?>"><?php echo  $row->Category; ?> <span class="badge bg-orange pull-right"><?php echo buatrp($row->Jumlah); ?></span></a></li>
            		<?php endforeach ?>
              	</ul>
            </div>
        </div>
	</div>

<div class="row">
	


</div>