<section class="sptb marketing-tool bg-white" id="mar_tool">
    <div class="container">
        <div class="row">
            <div class="section-title">
                <h2><?php echo $heading['title']; ?></h2>
                <p class="fs-22 lead mt-5"><?php echo $heading['sub_title']; ?> </p>
            </div>
            <div class="row">
                <?php
                $all_marketing_tools = json_decode($course->course_marketing_tools, true);
                foreach ($all_marketing_tools as $key => $marketing_tool):
                    $this->db->where('cr_id', $marketing_tool);
                    $imageData = $this->db->get('course_resource')->row();

                ?>
                    <div class="col-sm-2 col-6 mb-3">
                        <div class="image-border">
                            <img src="<?php echo base_url() ?><?php echo $imageData->cr_image; ?>" alt="<?php echo $imageData->cr_name; ?>">
                        </div>
                    </div>
                <?php endforeach; ?>
            </div>
        </div>
        <?php include 'button.php'; ?>
    </div>
</section>