<?php
    $faqs = $course_details->faqs ? json_decode($course_details->faqs, true) : [];
?>
<div class="ps-box p-0 shadow-none">
    <h4 class="g-title mb-15"><?php echo e(get_phrase('FAQ')); ?></h4>
    <?php if(count($faqs) > 0): ?>
        <div class="faq p-0">
            <div class="accordion" id="accordionExample">
                <?php $__currentLoopData = $faqs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $faq): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="accordion-item">
                        <h2 class="accordion-header">
                            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
                                data-bs-target="#collapse_<?php echo e($key); ?>" aria-expanded="true"
                                aria-controls="collapse_<?php echo e($key); ?>"><?php echo e(ucfirst($faq['title'] ?? '')); ?>

                            </button>
                        </h2>
                        <div id="collapse_<?php echo e($key); ?>" class="accordion-collapse collapse"
                            data-bs-parent="#accordionExample">
                            <div class="accordion-body">
                                <ul class="faqs">
                                    <li>
                                        <a href="#"
                                            class="d-flex mb-4 justify-content-between align-items-center">
                                            <p class="d-flex">
                                                <?php echo e(ucfirst($faq['description'] ?? '')); ?>

                                            </p>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        </div>
    <?php else: ?>
        <p class="text-center"><?php echo e(get_phrase('FAQ area empty')); ?></p>
    <?php endif; ?>
</div><?php /**PATH /var/www/payraty/lms_main/resources/views/frontend/default/course/faq_area.blade.php ENDPATH**/ ?>