<?php include('header.php');?>

<section class="pt-3 pb-3 page-info section-padding border-bottom bg-white">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <a href="<?=base_url();?>"><strong><span class="mdi mdi-home"></span> Home</strong></a>
                <span class="mdi mdi-chevron-right"></span> <a href="#">FAQ</a>
            </div>
        </div>
    </div>
</section>
		
		
<section class="faq-page section-padding">
   <div class="container">
      <div class="row">
         <div class="col-lg-10 mx-auto">
            <div class="row">
               <div class="col-lg-12 col-md-12">
                  <div class="card card-body">
                     <div class="accordion" id="accordionExample">
                         
                         <?php  
                             $i=0;
                                if(isset($faq)) {                       
                                    foreach ($faq as $row) {
                                        $i++;
                                        ?>
                                        <div class="card <?php if($i != 1){ ?>mb-2 mt-2<?php }else{?>mb-0<?php }?>">
                                           <div class="card-header" id="heading<?php echo $i;?>">
                                              <h6 class="mb-0">
                                                 <a href="#" data-toggle="collapse" data-target="#collapse<?php echo $i;?>" aria-expanded="true" aria-controls="collapse<?php echo $i;?>">
                                                 <i class="icofont icofont-question-square"></i> <?php echo $row['faq_title'];?>
                                                 </a>
                                              </h6>
                                           </div>
                                           <div id="collapse<?php echo $i;?>" class="collapse <?php if($i==1){ echo "show";}?>" aria-labelledby="heading<?php echo $i;?>" data-parent="#accordionExample">
                                              <div class="card-body">
                                                 <?php echo $row['faq_content'];?>
                                              </div>
                                           </div>
                                        </div>
                            <?php 
                                    }
                                }
                            ?>
                        
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </div>
   </div>
</section>
<?php include('footer.php');?>