
<div class="page-header">
	<h3 class="page-title">
		<span class="page-title-icon bg-gradient-danger text-black mr-2">
			<i class="mdi mdi-home"></i>
		</span>
		Refer Bonus Earned Reports
	</h3>

</div>
<div class="row">
	<div class="col-md-4 stretch-card grid-margin">
		<div class="card bg-gradient-warning card-img-holder shadow text-black">
			<div class="card-body">
				<img src="<?= base_url() ?>app-assets/images/dashboard/circle.svg" class="card-img-absolute" alt="circle-image" />
				<h4 class="font-weight-normal mb-3">Today Refered
					<i class="mdi mdi-calendar-clock mdi-48px float-right"></i>
				</h4>
				<h2 class="mb-5">৳ <?= $today->total_earn==null ? "0" : $today->total_earn ?></h2>
				<h6 class="card-text">Total Transection <?= $today->total_job?></h6>
			</div>
		</div>
	</div>
	<div class="col-md-4 stretch-card grid-margin">
		<div class="card bg-gradient-warning card-img-holder shadow text-black">
			<div class="card-body">
				<img src="<?= base_url() ?>app-assets/images/dashboard/circle.svg" class="card-img-absolute" alt="circle-image" />
				<h4 class="font-weight-normal mb-3">Last 7 day Refered
					<i class="mdi mdi-calendar mdi-48px float-right"></i>
				</h4>
				<h2 class="mb-5">৳ <?= $svn_day->total_earn==null ? "0" : $svn_day->total_earn ?></h2>
				<h6 class="card-text">Total Refer Member <?=$svn_day->total_job?></h6>
			</div>
		</div>
	</div>
	<div class="col-md-4 stretch-card grid-margin">
		<div class="card bg-gradient-warning card-img-holder shadow text-black">
			<div class="card-body">
				<img src="<?= base_url() ?>app-assets/images/dashboard/circle.svg" class="card-img-absolute" alt="circle-image" />
				<h4 class="font-weight-normal mb-3">Last 30 day Refered
					<i class="mdi mdi-calendar-multiple-check mdi-48px float-right"></i>
				</h4>
				<h2 class="mb-5">৳ <?= $thirty_day->total_earn==null ? "0" : $thirty_day->total_earn ?></h2>
				<h6 class="card-text">Total Refer Member <?=$thirty_day->total_job?></h6>
			</div>
		</div>
	</div>
</div>

<div class="row">
	<div class="col-12 stretch-card grid-margin">
		<div class="card bg-gradient-warning card-img-holder shadow text-black">
			<div class="card-body">
				<img src="<?= base_url() ?>app-assets/images/dashboard/circle.svg" class="card-img-absolute" alt="circle-image" />
				<h4 class="font-weight-normal mb-3">Total Refer_member and Earned
					<i class="mdi mdi-counter mdi-48px float-right"></i>
				</h4>
				<h2 class="mb-5">৳ <?= $total->total_earn==null ? "0" : $total->total_earn-($myPaidReferBonus ? $myPaidReferBonus : 0) ?></h2>
				<h6 class="card-text">Total Refer Member <?=$total->total_job?></h6>
			</div>
		</div>
	</div>
</div>
