<div class="ads">
    <?= $settings['coupon_top_ad'] ?>
</div>
<div class="card">
    <div class="card-header">
        <h4 class="card-title">Redeem coupon</h4>
    </div>
    <div class="card-body">
        <form action="<?= site_url('coupon/redeem') ?>" method="POST">
            <?php
            if (isset($_SESSION['message'])) {
                echo $_SESSION['message'];
            }
            ?>
           
           <input type="hidden" name="<?= $csrf_name ?>" id="token" value="<?= $csrf_hash ?>">
            <label>Don't Have Coupon Code? <a href="https://discord.gg/TWfykjZR" target="_blank" rel="noreferrer noopener">Click</a> To Get It Free.</label>
            <div class="input-group mb-4">
                <div class="input-group-prepend">
                    <span class="input-group-text">
                        <i class="fas fa-file"></i>
                    </span>
                </div>
                <input type="text" class="form-control" name="code" placeholder="Enter your coupon code" aria-label="Coupon code" aria-describedby="coupon-icon" autocomplete="off">
            </div>
            <div class="mb-2">
                <?= $captchaDisplay ?>
            </div>
			<br>
			<center>
			<div class="ads">
    <?= $settings['coupon_bottom_ad'] ?>
</div>
</center>           <script src='//tags.orquideassp.com/tag/35052'></script> 
            <button type="submit" class="btn btn-success btn-block">Redeem Coupon</button>
        </form>
    </div>
</div>
<div class="ads">
    <?= $settings['coupon_footer_ad'] ?>
</div>


