<div class="QA_section QA_section_heading_custom check_box_table   ">
    <div class="QA_table ">
        <!-- table-responsive -->


        <?php if(count($chapters) == 0): ?>
            <div class="text-center">
                <?php echo e(__('courses.No Data Found')); ?>

            </div>
        <?php endif; ?>

        <div class="row">
            <div class="col-md-12">
                <div class="">

                    <style>
                        .add-item-forms--inline-menu--1OTdc {
                            margin-bottom: -25px;
                            padding: 10px;
                            border: 1px solid var(--backend-primary-color);
                            background: var(--backend-main-bg);
                            min-height: 55px;
                            display: flex;
                            border-radius: 6px;
                        }

                        .add-item-forms--inline-menu--1OTdc button, .add-item-forms--inline-menu--1OTdc a {
                            color: var(--theme-default-color);
                            border: none;
                        }

                        .section_content {
                            margin-bottom: 0px;
                            padding: 10px;
                            border: 1px solid var(--backend-primary-color);
                            /* background: var(--backend-main-bg); */
                            border-radius: 6px;
                            background: var(--white-box-bg);
                        }

                        .col-lg-10.section_content {
                            margin-top: 0px;
                            padding: 20px;
                            padding-top: 4px;

                        }

                        .lms_option_box {
                            box-sizing: border-box;
                        }

                        .lms_option_list {
                            width: 650px;
                        }

                        .lms_option_list_inside {
                            width: 650px;
                        }
                        @media (max-width: 767px){
                            .lms_option_list {
                                width: 100%;
                            }

                            .lms_option_list_inside {
                                width: 100%;
                            }
                            .add-item-forms--inline-menu--1OTdc.flex-wrap {
                                max-width: 100%;
                            }
                        }

                        .btn-block + .btn-block {
                            margin-top: 0;
                        }
                    </style>

                    <div class="d-flex flex-wrap gap-4 mt-2 align-items-center">
                        <div>
                            <button
                                class="primary-btn icon-only   fix-gr-bg p-0  align-items-center justify-content-center"
                                id="add_option_box" style="display: flex">
                                <i class="ti-plus m-0"></i>
                            </button>
                            <button
                                class="primary-btn icon-only   fix-gr-bg"
                                id="minus_option_box" style="display: none">
                                <i class="ti-close m-0"></i>

                            </button>
                        </div>
                        <div>
                            <div class="lms_option_box d-flex align-items-start">
                                <div class="lms_option_list mb-4"
                                     style="display: none">
                                    <div
                                        class="add-item-forms--inline-menu--1OTdc flex-wrap">


                                        <a data-purpose="add-chapter-btn"
                                           aria-label="Add Chapter"
                                           data-container="#commonModal" type="button"
                                           href="<?php echo e(route('courseModal',[$course->id,'chapter'])); ?>"
                                           class="ellipsis btn btn-tertiary btn-block btn-modal">
                                            <i class="ti-plus"></i>
                                            <?php echo e(__('courses.Chapter')); ?>

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

                    </div>


                    <?php echo $__env->make('coursesetting::parts_of_course_details.chapter_list', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>


                </div>

            </div>
        </div>

        <?php $__env->startPush('js'); ?>
            <script>
                var lms_option_list = $('.lms_option_list');
                var minus_option_box = $('#minus_option_box');
                // var add_option_box = $('#add_option_box');
                // var chapter_section = $('#chapter_section');
                // var lesson_section = $('#lesson_section');
                // var quiz_section = $('#quiz_section');
                $(document).ready(function () {
                    let lms_option_list = $('#lms_option_list').hide();
                })
                $('#add_option_box').click(function () {
                    lms_option_list.show();
                    minus_option_box.show();
                    // add_option_box.hide();
                })
                $('#minus_option_box').click(function () {
                    lms_option_list.hide();
                    minus_option_box.hide();
                    // lesson_section.hide();
                    // quiz_section.hide();
                    // chapter_section.hide();
                    // add_option_box.show();
                })
                // $('#show_chapter_section').click(function () {
                //     lms_option_list.hide();
                //     lesson_section.hide();
                //     quiz_section.hide();
                //     chapter_section.show();
                // })
                // $('#show_lesson_section').click(function () {
                //     lms_option_list.hide();
                //     lesson_section.show();
                //     quiz_section.hide();
                //     chapter_section.hide();
                // })
                // $('#show_quiz_section').click(function () {
                //     lms_option_list.hide();
                //     lesson_section.hide();
                //     quiz_section.show();
                //     chapter_section.hide();
                // })
            </script>
        <?php $__env->stopPush(); ?>

    </div>

</div>

<?php /**PATH /home/minialms/card.minialms.com/Modules/CourseSetting/Providers/../Resources/views/parts_of_course_details/_course_details_carriclum_tab.blade.php ENDPATH**/ ?>