<div class="container">
	<?php if((!empty($month)) && (!empty($year))): ?>
		<div class="row">
			<div class="col-4 mx-auto py-5 text-center">
				<img src="<?php echo base_url('assets/images/logo/salihin-logo.png'); ?>" class="img img-fluid">
				<h5 class="text-uppercase mt-3"><b>Claim <?php echo $year; ?> - <?php echo $submisson_month; ?></b></h5>
			</div>
		</div>
		<?php $grand_total = 0; ?>
		<?php if(!empty($reports)) foreach($reports as $key => $report): ?>
		<div class="row">
			<div class="col-8">
				<b><u><?php echo $report['business_entity_name']; ?></u></b>
			</div>
		</div>
			<?php $subtotal = 0; ?>
			<?php if(!empty($report['claims'])) foreach($report['claims'] as $inner_key => $claim): ?>
				<div class="row">
					<div class="col-8">
					&emsp;<?php echo $claim['name']; ?>
					</div>
					<div class="col-4 text-right">
						<?php echo number_format($claim['monthly_claim'],2); $subtotal += $claim['monthly_claim']; ?>
					</div>
				</div>
			<?php endforeach;?>
		<div class="row">
			<div class="col-8 text-uppercase">
				<b>sub total</b>
			</div>
			<div class="col-4 text-right" style="border-top:1px solid; border-bottom:double;">
				<?php echo number_format($subtotal,2); $grand_total += $subtotal; ?>
			</div>
		</div>

		<br>
		<?php endforeach;?>

		<div class="row">
			<div class="col-8 text-uppercase">
				<b>total</b>
			</div>
			<div class="col-4 text-right" style="border-top:1px solid; border-bottom:double;">
				<?php echo number_format($grand_total,2); ?>
			</div>
		</div>
	<?php endif; ?>
</div>