<?php
include_once("include/main.inc.php"); 
$faq = mysqli_query($GLOBALS['dbconn'], "select * from faq_tbl");
$page_metatitle="Simplex Furniture - Faq";
$page_metakey="Simplex Furniture - Faq";
$page_metadesc="Simplex Furniture - Faq";
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <?php include "app_top.php"; ?>
</head>

<body>

    <?php include "app_header.php"; ?>

    <section class="heading_banner" style="background-image: url(<?=theme_url;?>/images/faqs.jpg)">
        <div class="container">
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 text-center">
                    <h1 class="cat_title">FAQs</h1>
                    <div class="clearfix"></div>
                   
                </div>
            </div>
        </div>
    </section>

    <div class="inner_breadcrumb hidden_xs">
        <div class="container">
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                    <ul class="breadcrumb">
                        <li><a href="<?=site_url;?>" title="Home">Home</a></li>
                        <li class="active">FAQs</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>


    <section class="about_page">
        <div class="container">
        <h2 class="title_2">FAQs</h2>
        <div class="clearfix"></div>
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                    <div class="right_side">
                        
                        <div class="wps_right">
                          
                            <div class="accordion" id="accordionExample">



                            <?php
                                $i = 1;
                                while ($faq_res = mysqli_fetch_array($faq)) { ?>

                                <div class="accordion-item">
                                    <h3 class="accordion-header" id="heading_<?= $i ?>">
                                        <span class="accordion-button" role="button" data-bs-toggle="collapse" data-bs-target="#faq_<?= $i ?>" aria-expanded="true" aria-controls="heading_<?= $i ?>"><?= $faq_res['question'] ?>
                                        </span>
                                    </h3>
                                    <div id="faq_<?= $i ?>" class="accordion-collapse collapse <?php if ($i == 1){echo 'show'; } ?>" aria-labelledby="heading_<?= $i ?>" data-bs-parent="#accordionExample">
                                        <div class="accordion-body">
                                            <p><?= $faq_res['answer'] ?></p>
                                        </div>
                                    </div>
                                </div>


                                <?php $i++;  } ?>
                            </div>
                            <div class="clearfix"></div>

                        </div>
                    </div>
                </div>

            </div>
        </div>
    </section>


    <?php include "app_testimonials_new.php"; ?>
    
   <?php include "app_clients_new.php"; ?>
    <?php include "app_footer.php"; ?>
    <?php include "app_bottom.php"; ?>
</body>

</html>