<?php $this->load->view("top"); ?>
<section class="banner_category" style="background-image: url('<?php echo theme_url(); ?>images/listing/faq-backdrop.jpg');">
		<div class="container">
			<!-- <h2 class="banner_subtitle">check out over <span>200+</span></h2> -->
			<h1 class="banner_title"><?php echo $title; ?></h1>
		</div>
	</section>
<div class="page_breadcrumbs">
		<div class="container">
			<ul>
			  <li><a href="<?php echo site_url(); ?>">Home</a></li>
              <li><?php echo $title; ?></li>
			</ul>
		</div>
	</div>





<div class="container">
  <div class="faq-container"> 
      <h3 class="title-text3 text-center">Frequently Asked Questions</h3>
      <div id="accordion">
          <?php $sn=1; 
                foreach ($res as $key => $value) { 
               ?>
               <div class="card">
          <div class="card-header" id="heading1">
            <h5 class="mb-0">
              <button class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapse<?php echo $sn; ?>" aria-expanded="false" aria-controls="collapse<?php echo $sn; ?>" >
               <?php print_r($value['faq_question']); ?></button>
            </h5>
          </div>
          <div id="collapse<?php echo $sn; ?>" class="collapse <?php if($sn==1){ echo 'in'; } ?>" aria-labelledby="heading1" data-parent="#accordion" style="">
            <div class="card-body"> <p><?php print_r($value['faq_answer']); ?> </p></div>
          </div>
        </div>          
          <?php $sn++; } ?>
      </div>
    </div>
  </div>

  



<?php $this->load->view("bottom"); ?>
