 <div class="card custom-sadow" id="FAQ">
     <div class="card-header">
         <h3 class="card-title"><i class="fa fa-question-circle" aria-hidden="true"></i> &nbsp;&nbsp;FAQ</h3>
     </div>
     <div class="card-body ">
         <?php
            $faq_d = 0;

            $all_faq = $this->products_model->get_all_faq_by_course($product->prd_id);
            foreach ($all_faq as $key => $faq) {
                $faq_d += count(json_decode($faq->prd_faq_content));
            }
            $a = 1;
            foreach ($all_faq as $key => $faq) : ?>
             <div class="mb-4">
                 <h5 class=""><?php echo $a; ?>. <?php echo $faq->prd_faq_title; ?></h5>
                 <?php for ($c = 0; $c < count(json_decode($faq->prd_faq_content)); $c++) :
                        $faq_co = json_decode($faq->prd_faq_content)[$c]; ?>
                     <p class="mb-0"><i class="fa fa-arrow-right" aria-hidden="true"></i> <?php echo $faq_co; ?> </p>
                 <?php endfor; ?>
             </div>
         <?php $a++;
            endforeach; ?>
     </div>
     <?php include 'button.php';?>
 </div>