<?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-green">
				<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">Rawat Inap Berdasarkan Penjamin</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_penjamin_by_company as $row): ?>
            			<li><a target="_blank" href="<?php echo base_url(); ?>home/chart_kunjungan_penjamin_ranap/<?php echo $row->CompanyCode; ?>"><?php echo  $row->CompanyName; ?> <span class="badge bg-green 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-blue">
				<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">Rawat Inap Berdasarkan Penjamin</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_penjamin_by_company as $row): ?>
            			<li><a target="_blank" href="<?php echo base_url(); ?>home/chart_pendapatan_penjamin_ranap/<?php echo $row->CompanyCode; ?>"><?php echo  $row->CompanyName; ?> <span class="badge bg-blue pull-right"><?php echo buatrp($row->Jumlah); ?></span></a></li>
            		<?php endforeach ?>
	            
              	</ul>
            </div>
        </div>
	</div>	

<div class="row">
	


</div>