
<?php $__env->startPush('title'); ?>
    <?php echo e(__('FAQ')); ?>

<?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>

    <section class="breadcrumb-section bg-main-color py-30 py-sm-150">
        <div class="breadcrumb-content">
            <h4 class="title"><?php echo e(__("Faq's")); ?></h4>
            <ol class="breadcrumb sf-inner-breadcrumb justify-content-center">
                <li class="breadcrumb-item"><a href="<?php echo e(route('frontend')); ?>"><?php echo e(__("Home")); ?></a></li>
                <li class="breadcrumb-item active"><a href=""><?php echo e(__("Faq")); ?></a></li>
            </ol>
        </div>
    </section>
    <!-- Frequently Asked Questions are start -->


    <?php if(count($faqCategory) > 0): ?>

        <section class="py-sm-150 py-30 ">
            <!-- title area start -->











            <!-- title area end -->
            <div class="container">
                <div class="row justify-content-center">
                    <div class="col-lg-7">
                        <div class="text-center pb-55">
                            <h4 class="lh-sm-57 lh-44 landing-section-title"><?php echo e($section->title); ?></h4>
                            <p class="fs-18 fw-400 lh-28 text-para-text pt-16"><?php echo e($section->description); ?></p>
                        </div>
                    </div>
                </div>
                <div class="row rg-20">
                    <div class="col-lg-4">
                        <div class="navigation-part">
                            <h3 class="fs-24 fw-600 lh-38 text-title-black pb-20 text-center text-lg-start"><?php echo e(__('Quick Navigation')); ?></h3>
                            <div class="navigation-button">
                                <nav>
                                    <div class="nav nav-tabs zTab-reset zTab-vertical-one flex-row flex-lg-column flex-wrap flex-lg-nowrap justify-content-center g-20" id="nav-tab" role="tablist">
                                        <?php $__currentLoopData = $faqCategory; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $faqCategorys): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <button class="nav-link <?php echo e($key==0?'active':''); ?>" id="nav-<?php echo e($key); ?>-tab"
                                                    data-bs-toggle="tab"
                                                    data-bs-target="#nav-<?php echo e($key); ?>" type="button" role="tab"
                                                    aria-controls="nav-<?php echo e($key); ?>"
                                                    aria-selected="<?php echo e($key==0?'true':'false'); ?>"><?php echo e($faqCategorys->title); ?></button>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>
                                </nav>

                            </div>
                        </div>
                    </div>
                    <div class="col-lg-8">
                        <div class="tab-content" id="nav-tabContent">
                            <?php $__currentLoopData = $faqCategory; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=> $cate_item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php $category_faq_counter = 0; ?>
                                <div class="tab-pane fade show <?php echo e($key==0?'active':''); ?>" id="nav-<?php echo e($key); ?>" role="tabpanel"
                                     aria-labelledby="nav-<?php echo e($key); ?>-tab">


                                        <div class="accordion zAccordion-reset zAccordion-one" id="accordionExample<?php echo e($key); ?>">
                                            <?php $__currentLoopData = $faqs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key2 => $faq): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <?php if($cate_item->id == $faq->faq_category_id ): ?>
                                                    <div class="accordion-item">
                                                        <h2 class="accordion-header">
                                                            <button class="accordion-button <?php echo e($category_faq_counter==0?'':'collapsed'); ?>" type="button"
                                                                    data-bs-toggle="collapse" data-bs-target="#collapse<?php echo e($key2); ?>"
                                                                    aria-expanded="<?php echo e($category_faq_counter==0?'true':'false'); ?>"
                                                                    aria-controls="collapse<?php echo e($key2); ?>">
                                                                <?php echo e($faq->question); ?>

                                                            </button>
                                                        </h2>
                                                        <div id="collapse<?php echo e($key2); ?>" class="accordion-collapse collapse <?php echo e(($category_faq_counter === 0) ? 'show' : ''); ?>"
                                                             data-bs-parent="#accordionExample<?php echo e($key); ?>">
                                                            <div class="accordion-body">
                                                                <?php echo e($faq->answer); ?>

                                                            </div>
                                                        </div>
                                                    </div>
                                                    <?php $category_faq_counter = $category_faq_counter + 1; ?>
                                                    <?php else: ?>
                                                    <?php $category_faq_counter = 0; ?>
                                                <?php endif; ?>

                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </div>

                                </div>

                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


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

    <?php else: ?>
        <div class="text-center py-5 my-5"><h3>No Data found</h3></div>
    <?php endif; ?>


  <!-- Frequently Asked Questions are end -->
<?php $__env->stopSection(); ?>

<?php echo $__env->make('tenant.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home6/metawebd/metagrievance.metawebdevelopment.cloud/resources/views/tenant/faqs.blade.php ENDPATH**/ ?>