<section class="sptb bg-white pt-0" id="get_certified">
    <div class="container">
        <div class="section-title">
            <h2><?php echo $heading['title']; ?></h2>
            <p class="fs-22 lead"><?php echo $heading['sub_title']; ?></p>
        </div>
        <div id="small-categories" class="owl-carousel client-carousel">
            <?php 
            $all_certified_from = json_decode($course->course_certified_from_data, true);
            foreach ($all_certified_from as $key => $certified_from) : 
            $this->db->where('cr_id', $certified_from);
            $imageData = $this->db->get('course_resource')->row();
            
            
            ?>
                <div class="item">
                    <div class="client-img small-cat-img">
                        <img src="<?php echo base_url() ?><?php echo $imageData->cr_image; ?>" alt="<?php echo $imageData->cr_name; ?>">
                    </div>
                </div>
            <?php endforeach; ?>
        </div>
    </div>
</section>
