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

    <main>

        <!-- Start pg_header -->
    <?php echo $__env->make('web.layouts.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

            <!-- ---------- pg_news_content ----------- -->
            <section class="pg_courses_accordion section_padding">
                <div class="container">
                    <div class="section_head mb-5">
                        <h3 class="mb-2"> <?php echo e($title); ?> </h3>
                        <p> <?php echo e(__('web.training_course')); ?> </p>
                    </div>
                    <div class="accordion" id="accordionExample">
                        <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php if($category->publishCourses() > 0): ?>
                                <div class="accordion-item">
                            <h2 class="accordion-header" id="heading<?php echo e($category->id); ?>">
                                <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapse<?php echo e($category->id); ?>"
                                        aria-expanded="true" aria-controls="collapse<?php echo e($category->id); ?>">
                                    <span class="icon me-2"> <i class="fas fa-chevron-circle-down"></i> </span>
                                    <p class="d-inline-block"> <?php echo $category->name; ?> </p>
                                </button>
                            </h2>
                            <div id="collapse<?php echo e($category->id); ?>" class="accordion-collapse collapse show" aria-labelledby="heading<?php echo e($category->id); ?>"
                                 data-bs-parent="#accordionExample">
                                <div class="accordion-body">
                                    <div class="row">
                                        <div class="col-lg-9">
                                            <div class="text">
                                                <?php echo $category->description; ?>

                                            </div>
                                        </div>
                                    </div>
                                    <div class="courses_content">
                                        <div class="courses_slider">
                                            <div class="swiper-wrapper">
                                                <?php $__currentLoopData = $category->courses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $course): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <div class="swiper-slide">
                                                    <div class="course_card">
                                                        <div class="img">
                                                            <img src="<?php echo e($course->image_url); ?>" alt="" class="main_img img_cover">
                                                        </div>
                                                        <div class="info">
                                                            <a  class="title"> <?php echo e($course->details->name); ?> </a>
                                                            <a href="<?php echo e($course->url); ?>" class="butn mt-4"> <b> <?php echo e(__('web.book_now')); ?> </b> </a>
                                                        </div>
                                                    </div>
                                                </div>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </div>
                                        </div>
                                        <div class="swiper-button-prev"></div>
                                        <div class="swiper-button-next"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                            <?php endif; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

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


        </main>


<?php $__env->startSection('inject_js'); ?>
<?php $__env->stopSection(); ?>


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

<?php echo $__env->make('web.layouts.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Applications/MAMP/htdocs/ntc/resources/views/web/pages/courses/index.blade.php ENDPATH**/ ?>