<section class="sptb bonus-section" id="bonus" style="background-color: #ddd;">
    <div class="container">
        <div class="section-title d-lg-none">
            <h2><?php echo $heading['title']; ?></h2>
        </div>
        <div class="row">
            <div class="col-sm-6 mb-4">

                <?php
                $this->db->where('cr_id', $course->course_bonus_content_image);
                $bonusImg = $this->db->get('course_resource')->row();
                ?>
                <img src="<?php echo base_url(); ?><?php echo $bonusImg->cr_image; ?>">
            </div>
            <div class="col-sm-6">
                <div class="section-title d-none d-lg-block">
                    <h2><?php echo $heading['title']; ?></h2>
                </div>
                <p class="lead"><?php echo $heading['paragraph']; ?> </p>
                <div class="">
                    <ul class="fs-15">
                        <li class="py-2">
                            <h3>What’s the latest?</h3>
                        </li>

                        <?php
                        $all_bonus_conten = json_decode($course->course_bonus_content, true);
                        foreach ($all_bonus_conten as $key => $bonus_conten): ?>
                            <li class="py-2"><i class="fe fe-check me-3"></i><?php echo $bonus_conten; ?></li>
                        <?php endforeach; ?>
                    </ul>
                </div>
            </div>
        </div>
        <?php include 'button.php'; ?>
    </div>
</section>