This commit is contained in:
2022-05-31 17:28:07 -04:00
parent de6288fc3a
commit a4ba2da5ed
2 changed files with 17 additions and 0 deletions
+6
View File
@@ -30,6 +30,12 @@ class Dash extends Users_Controller {
redirect(home);
} else {
// load the Dash model now
$this->load->model('coupon_model');
$activeCouponResult = $this->coupon_model->loadMemberActiveCoupons($_SESSION['member_id'] ,$fliters=[]);
$_SESSION['coupon'] = $activeCouponResult->num_rows();
// print_r($_SESSION);
$this->load->model('dash_model');
$out = $this->dash_model->getDashData($data);
@@ -4,6 +4,17 @@ setlocale(LC_MONETARY, 'en_NG');
?>
<!--begin::Row-->
<div class="row g-5 g-xl-8">
<?php
if ( isset($_SESSION['coupon']) && $_SESSION['coupon'] > 0 )
{
?>
<div class="col-xl-3 bg-light-danger rounded p-5 mb-7" style="text-align: center;">
<a href="/coupons/"> <h5 class="no-margin"> You have credit coupons</h5></a>
</div>
<?php
}
?>
<?php
if ( isset($_SESSION['wallet']) && $_SESSION['wallet'] == true)
{