@extends('backend.master')
@push('styles')
    <link rel="stylesheet" href="{{assetPath('backend/css/class.css')}}"/>
@endpush
@php
    $table_name='courses';
@endphp
@section('table')
    {{$table_name}}
@stop
@section('mainContent')
    {!! generateBreadcrumb() !!}
    <section class="admin-visitor-area up_st_admin_visitor">
        <div class="container-fluid p-0">
            <div class="row">
                @include('virtualclass::class.partials._meeting_form')
             </div>
        </div>
    </section>

@endsection
@push('scripts')
    <script src="{{  assetPath('modules/membership/js/app.js') }}"></script>
    <script>
        $(document).ready(function () {
            let status = false;
            divHideSHow(status);

            $(document).on('click', '#all_level_member', function () {
                let status = $(this).is(':checked');

                divHideSHow(status);
            });

            function divHideSHow(status) {

                if (status == true) {
                    $('#membership_level_div').addClass('d-none');
                    $('#membership_level_member_div').addClass('d-none');
                } else {
                    $('#membership_level_div').removeClass('d-none');
                    $('#membership_level_member_div').removeClass('d-none');
                }
            }
        })
    </script>


    <script src="{{assetPath('modules/course_settings/js/course.js')}}"></script>
    <script src="{{assetPath('backend/js/zoom.js')}}"></script>

    <script>

        $(document).on('click', '.is_recurring', function () {
            let recurrence_section = $('.recurrence_section');
            if ($("input[name='is_recurring']:checked").val() == 0) {
                recurrence_section.addClass('d-none');
            } else {
                recurrence_section.removeClass('d-none');
            }
        })
        $(document).on('change', '#recurring_type', function () {
            let type = $(this).val();
            let day_hide = $(".day_hide");
            if (type != 2) {
                day_hide.addClass('d-none');
            } else {
                day_hide.removeClass('d-none');
            }

        })
    </script>

@endpush
