<?php include VIEWPATH . 'front/bundle_course_components/cta.php';?>
<section class="sptb bg-white">
    <div class="container bg-style">
        <div class="row">
            <div class="col-lg-12 col-md-12">
                <div class="section-title text-center">
                    <h2><?php echo $heading['title']; ?></h2>
                </div>
                <div class="line-with-circle">
                    <div class="line"></div>
                    <div class="circle"></div>
                </div>
            </div>
            <div class="col-xl-12 col-lg-12 col-md-12">
                <div class="border-0 br-7 course-details ">
                    <div class="row">
                        <div class="col-sm-12">
                            <div class="panel-group1" id="accordion2">
                                <?php
                                $all_course_faq =  json_decode($data->bundile_faq_content, true);
                                $b = 1;
                                foreach ($all_course_faq as $key => $faq): ?>
                                    <div class="panel panel-default mb-4 border p-0">
                                        <div class="panel-heading1">
                                            <h4 class="panel-title1"> <a class="accordion-toggle collapsed" data-bs-toggle="collapse" data-parent="#accordion2" href="#faq_<?php echo $key; ?>" aria-expanded="false"><?php echo $b; ?>. <?php echo $faq['faq_qns'] ?></a> </h4>
                                        </div>
                                        <div id="faq_<?php echo $key; ?>" class="panel-collapse active collapse" role="tabpanel" aria-expanded="false" style="">
                                            <div class="panel-body bg-white">
                                                <p><?php echo $faq['faq_ans'] ?></p>
                                            </div>
                                        </div>
                                    </div>
                                <?php $b++;
                                endforeach; ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>