<?php
include('include/main.inc.php');
$web_det_query = "Select * from admin_details where slno = '1'";
$res_web = $dbconn->query($web_det_query);
$web_details = $res_web->fetch_assoc();

$page_metatitle = $web_details['companyName'].' - FAQs';
$page_metadesc = $web_details['companyName'].' - FAQs';
$page_metakey = $web_details['companyName'].' - FAQs';

?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><?= $page_metatitle ?></title>
    <meta name="description" content="<?= $page_metadesc ?>">
    <meta name="keywords" content="<?= $page_metakey ?>">
    <?php include "app_top.php"; ?>
</head>

<body>

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

    <section class="heading_banner" style="background-image: url(<?= site_url; ?>/designer/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">
                            <p>We have earned a reputation for quality and safety and we are known for our uncompromising approach to product development and quality. Our motto is to provide excellent quality scaffolding accessories and formworks at affordable prices.</p>
                            <div class="accordion" id="accordionExample">
                                <?php $sel_faq_query = "Select * from faq_tbl order by slno asc";
                                    $res_faq = $dbconn->query($sel_faq_query);
                                    if($res_faq->num_rows > 0){
                                        $sno = 0;
                                        while($faqs = $res_faq->fetch_assoc()){
                                            $sno++;
                                ?>
                                <div class="accordion-item">
                                    <h3 class="accordion-header" id="heading_1">
                                        <span class="accordion-button <?= ($sno == 1) ? '': 'collapsed'; ?>" role="button" data-bs-toggle="collapse" data-bs-target="#faq_<?= $sno; ?>" aria-expanded="<?= ($sno == 1) ? 'true': 'false'; ?>" aria-controls="heading_<?= $sno; ?>"><?= $faqs['question']; ?>
                                        </span>
                                    </h3>
                                    <div id="faq_<?= $sno; ?>" class="accordion-collapse collapse <?= ($sno == 1) ? 'show': ''; ?>" aria-labelledby="heading_<?= $sno; ?>" data-bs-parent="#accordionExample">
                                        <div class="accordion-body">
                                            <p><?= $faqs['answer']; ?></p>
                                        </div>
                                    </div>
                                </div>
                                <?php } } ?>
                            </div>
                            <div class="clearfix"></div>

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

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


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

</html>