<?php if(isset($settings['is_coupon']) && $settings['is_coupon']==1): ?>
<div class="row justify-content-center">
	<div class="col-lg-8">
		<?php if(d_auth('is_discount')==TRUE): ?>
			<div class="discount_area mb-20">
				<p><b><?= lang('discount'); ?>: <span><?=  d_auth('percent_price');?></span> <?= get_currency('icon');?></b></p>
				<h5><?= lang('grand_total'); ?>: <span><?=  d_auth('total_price');?></span> <?= get_currency('icon');?></h5>
			</div>	
			<?php $total_price = d_auth('total_price'); ?>
		<?php else: ?>
			<?php $total_price = $package['price']; ?>
		<?php endif;?>
		<?php if(d_auth('is_discount')==FALSE): ?>
			<form action="<?= base_url('admin/profile/check_coupon_code') ;?>" method="post" class="mb-20 mt-10" id="couponForm">
				<input type="hidden" name="<?= $this->security->get_csrf_token_name(); ?>" value="<?= $this->security->get_csrf_hash(); ?>">
				<div class="cupponForm">
					<div class="reg_msg"></div>
					<div class="input-group mb-3">
						<input type="text" name="coupon_code" class="form-control" placeholder="Coupon Code" aria-label="Recipient's username" aria-describedby="basic-addon2">
						<div class="input-group-append">
							<input type="hidden" name="price" value="<?= isset($package['price'])?html_escape($package['price']):'';?>">
							<button class="btn btn-secondary" type="submit"><i class="icofont-check-alt fz-18"></i> <?= lang('apply'); ?></button>
						</div>
					</div>
				</div>
			</form>
		<?php endif;?>
	</div>
</div>
<?php endif;?>