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

<section class="banner_category" style="background-image: url('<?php echo theme_url(); ?>images/listing-banner.jpg');">
    <div class="container">
        <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(); ?>" title="Home">Home</a></li>
            <li><?php echo $title; ?></li>
        </ul>
    </div>
</div>


<?php if (is_array($res) && !empty($res)) { ?>
    <section class="faq-area pt-100 pb-70">
        <div class="container">
            <div class="section-title">
                <h2>Frequently Asked Questions</h2>

            </div>
            <div class="faq-bg">
         <div class="faq-accordion">
                      
        <div class="accordian details-accordian">
              <ul>
                   <?php
                        foreach ($res as $key => $value) {
                            if ($key == 0) {
                                $sel = 'active';
                                $class = 'show';
                            } else {
                                $sel = '';
                                $class = '';
                            }
                            ?> 
                <li>
                    
 

                    <h4 class="title"><span class="fa fa-plus" aria-hidden="true"></span> <?php echo $value['faq_question']; ?></h4>
                    <div class="ac-dropdown tab-content">
                    <?php echo html_entity_decode($value['faq_answer']); ?>
                  <?php if($value['video_link']) {?> 
				  <div class="text-center"> 
				  <iframe  src="https://www.youtube.com/embed/<?=$value['video_link']?>"  width="500" height="450" title="YouTube video player" allowfullscreen></iframe>
					</div><?php } ?>
                    </div>
                </li>
                   <?php } ?>
             </ul>
        </div>
        <div class="clearfix"></div>
          
        </div>
                  
                </div>
            </div>
        
    </section>
<?php } ?>

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