<?php $__env->startSection('pagename'); ?>
- <?php echo e(__('FAQ')); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('meta-keywords', "$be->faq_meta_keywords"); ?>
<?php $__env->startSection('meta-description', "$be->faq_meta_description"); ?>


<?php $__env->startSection('breadcrumb-title', convertUtf8($bs->faq_title)); ?>
<?php $__env->startSection('breadcrumb-subtitle', convertUtf8($bs->faq_subtitle)); ?>
<?php $__env->startSection('breadcrumb-link', __('FAQS')); ?>


<?php $__env->startSection('content'); ?>
  <!--   FAQ section start   -->
  <section class="faq-area-v1 pt-120 pb-120">
    <div class="container">
      <div class="row">



          <?php if($bex->faq_category_status == 1): ?>
                <?php if(count($categories) > 0): ?>
                <div class="col-lg-3">
                    <div class="sidebar-widget-area">
                    <div class="widget categories-widget">
                        <ul class="nav nav-tabs" id="myTab">
                        <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <li class="nav-item" role="presentation">
                            <a class="nav-link <?php echo e($loop->iteration == 1 ? 'show active' : ''); ?>" data-toggle="tab" href="<?php echo e('#category' . $category->id); ?>" role="tab" aria-selected="true"><?php echo e($category->name); ?></a>
                            </li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </ul>
                    </div>
                    </div>
                </div>

                <div class="col-lg-9">
                    <div class="faq-details-wrapper">
                    <div class="tab-content">
                        <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="tab-pane <?php echo e($loop->iteration == 1 ? 'show active' : ''); ?> fade" id="<?php echo e('category' . $category->id); ?>">
                            <div class="accordion" id="<?php echo e('accordion' . $category->id); ?>">
                            <?php
                                $qas = \App\Faq::where('category_id', $category->id)->orderBy('serial_number', 'ASC')->get();
                            ?>

                            <?php $__currentLoopData = $qas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $qa): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="card mb-30">
                                <a class="collapsed card-header" id="heading1" href="#" data-toggle="collapse" data-target="<?php echo e('#collapse' . $qa->id); ?>" aria-expanded="<?php echo e($loop->iteration == 1 ? 'true' : 'false'); ?>" aria-controls="<?php echo e('collapse' . $qa->id); ?>">
                                    <?php echo e($qa->question); ?><span class="toggle_btn"></span>
                                </a>
                                <div id="<?php echo e('collapse' . $qa->id); ?>" class="collapse <?php echo e($loop->iteration == 1 ? 'show' : ''); ?>" aria-labelledby="heading1" data-parent="<?php echo e('#accordion' . $category->id); ?>">
                                    <div class="card-body">
                                    <p><?php echo e($qa->answer); ?></p>
                                    </div>
                                </div>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                        </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                    </div>
                </div>
                <?php endif; ?>

          <?php else: ?>

            <?php if(count($faqs) == 0): ?>
            <div class="col-lg-8 offset-lg-2 py-y bg-light">
                <h3 class="text-center"><?php echo e(__('No FAQ Found!')); ?></h3>
            </div>
            <?php else: ?>
            <div class="col-lg-12">
                <div class="faq-section py-0">
                    <div class="row">
                        <div class="col-lg-6">
                           <div class="accordion" id="accordionExample1">
                              <?php for($i=0; $i < ceil(count($faqs)/2); $i++): ?>
                              <div class="card">
                                 <div class="card-header" id="heading<?php echo e($faqs[$i]->id); ?>">
                                    <h2 class="mb-0">
                                       <button class="btn btn-link collapsed btn-block text-left" type="button" data-toggle="collapse" data-target="#collapse<?php echo e($faqs[$i]->id); ?>" aria-expanded="false" aria-controls="collapse<?php echo e($faqs[$i]->id); ?>">
                                       <?php echo e(convertUtf8($faqs[$i]->question)); ?>

                                       </button>
                                    </h2>
                                 </div>
                                 <div id="collapse<?php echo e($faqs[$i]->id); ?>" class="collapse" aria-labelledby="heading<?php echo e($faqs[$i]->id); ?>" data-parent="#accordionExample1">
                                    <div class="card-body">
                                       <?php echo e(convertUtf8($faqs[$i]->answer)); ?>

                                    </div>
                                 </div>
                              </div>
                              <?php endfor; ?>
                           </div>
                        </div>
                        <div class="col-lg-6">
                           <div class="accordion" id="accordionExample2">
                              <?php for($i=ceil(count($faqs)/2); $i < count($faqs); $i++): ?>
                              <div class="card">
                                 <div class="card-header" id="heading<?php echo e($faqs[$i]->id); ?>">
                                    <h2 class="mb-0">
                                       <button class="btn btn-link collapsed btn-block text-left" type="button" data-toggle="collapse" data-target="#collapse<?php echo e($faqs[$i]->id); ?>" aria-expanded="false" aria-controls="collapse<?php echo e($faqs[$i]->id); ?>">
                                       <?php echo e(convertUtf8($faqs[$i]->question)); ?>

                                       </button>
                                    </h2>
                                 </div>
                                 <div id="collapse<?php echo e($faqs[$i]->id); ?>" class="collapse" aria-labelledby="heading<?php echo e($faqs[$i]->id); ?>" data-parent="#accordionExample2">
                                    <div class="card-body">
                                       <?php echo e(convertUtf8($faqs[$i]->answer)); ?>

                                    </div>
                                 </div>
                              </div>
                              <?php endfor; ?>
                           </div>
                        </div>
                     </div>
                </div>
            </div>
            <?php endif; ?>

          <?php endif; ?>




      </div>
    </div>
  </section>
  <!--   FAQ section end   -->
<?php $__env->stopSection(); ?>

<?php echo $__env->make("front.$version.layout", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/linknsbh/sabel-eltaqwa.com/core/resources/views/front/faq.blade.php ENDPATH**/ ?>