<section class="sptb learning-method-div" id="methodology" style="background-color: #ddd;">
    <div class="container">
        <div class="row">
            <div class="section-title">
                <h2><?php echo $heading['title']; ?></h2>
                <p class="fs-22 lead"><?php echo $heading['sub_title']; ?></p>
            </div>
        </div>
        <div class="col-sm-12 mt-5">
            <div class="row">
                <?php
                $all_learning_methodology = json_decode($course->course_learning_methodology, true);
                $a = 1;
                foreach ($all_learning_methodology as $key => $learning_methodology):
                    $this->db->where('cr_id', $learning_methodology);
                    $imageData = $this->db->get('course_resource')->row();
                ?>
                    <div class="col-sm-3 col-12">
                        <div class="et_pb_text_inner text-center">
                            <div class="learning-pedagogy">
                                <div class="learning-step"><?php echo $a; ?></div>
                                <h6 class="mb-4"><?php echo $imageData->cr_name; ?></h6>
                                <p><img decoding="async" class="learning-methodology-image" width="246" height="161" src="<?php echo base_url(); ?><?php echo $imageData->cr_image; ?>" alt="<?php echo $imageData->cr_name; ?>"></p>
                                <p class="learning-format-description pb-5"><?php echo $imageData->cr_description; ?></p>
                            </div>
                        </div>
                    </div>
                <?php $a++;
                endforeach; ?>
            </div>
        </div>
        <?php include 'button.php'; ?>
    </div>
</section>