        <!--  Add client -->
        </div>
        <div class="modal fade " id="updateClassRoom" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
            aria-labelledby="updateClassRoom" aria-hidden="true">
            <div class="modal-dialog  form-validation">
                <div class="modal-content">
                    <div class="modal-header">
                        <h4 class="modal-title"><strong>تعديل بياناتالدورة التدريبية</strong></h4>
                        <i type="reset" data-bs-dismiss="modal" aria-label="Close"
                            class="las las la-times text-danger scale5"></i>
                    </div>
                    <div class="modal-body">
                        <form method="POST" action="{{ route('class_room_update') }}"
                            class="row g-3 fv-plugins-bootstrap5 fv-plugins-framework needs-validation trainerFormUpdate form-disable"
                            novalidate>
                            @csrf
                            <input type="hidden" name="id" id="id">
                            <div class="col-12 col-md-12 fv-plugins-icon-container">
                                <label class="form-label" for="name">الاسم</label>
                                <input type="text" value="{{ old('name') }}" id="nameUpdate" name="name"
                                    class="form-control text" placeholder="الرجاء ادخال الاسم" required="">
                                <p id="alert" class="massege"></p>
                                <div class="fv-plugins-message-container invalid-feedback ">
                                    يرجاء ادخال الاسم
                                </div>
                                @error('name')
                                    <div class="text-danger px-2 showModalEdit ">
                                        {{ $message }}
                                    </div>
                                @enderror
                            </div>
                            <div class="col-12 col-md-12 fv-plugins-icon-container">
                                <label class="form-label" for="phone">البرنامج</label>
                                <select id="courseSelect" name="courseId" class="form-control" required>
                                    <option selected id="courseId" disabled="disabled" value="">يرجى اختيار
                                        البرنامج
                                    </option>
                                    @isset($courses)
                                        @foreach ($courses as $course)
                                            <option value="{{ $course->id }}">
                                                @isset($course->title)
                                                    {{ $course->title }}
                                                @endisset
                                            </option>
                                        @endforeach
                                    @endisset
                                </select>
                                <p id="alertPhone" class="massege"></p>
                                <div class="fv-plugins-message-container invalid-feedback ">
                                    يرجى تحديد البرنامج
                                </div>
                                @error('courseId')
                                    <div class="text-danger px-2 showModalAdd ">
                                        {{ $message }}
                                    </div>
                                @enderror
                            </div>
                            <div class="col-12 col-md-12 fv-plugins-icon-container">
                                <label class="form-label" for="place">المكان</label>
                                <input type="text" id="placeUpdate" value="{{ old('place') }}" name="place"
                                    class="form-control text" placeholder="الرجاء ادخال المكان" required="">
                                <p id="alert" class="massege"></p>
                                <div class="fv-plugins-message-container invalid-feedback ">
                                    يرجاء ادخال المكان
                                </div>
                                @error('name')
                                    <div class="text-danger px-2 showModalAdd ">
                                        {{ $message }}
                                    </div>
                                @enderror
                            </div>

                            <div class="col-12 col-md-12 fv-plugins-icon-container">
                                <label class="form-label" for="trainerId">المشرف</label>
                                <select id="trainerSelect" name="trainerId" class="form-control" required>
                                    <option selected id="trainerId" disabled="disabled" value="">يرجى اختيار
                                        المشرف
                                    </option>
                                    @isset($trainers)
                                        @foreach ($trainers as $trainer)
                                            @if ($trainer->is_reset == 1)
                                                <option value="{{ $trainer->id }}">
                                                    @isset($trainer->name)
                                                        {{ $trainer->name }}
                                                    @endisset
                                                </option>
                                            @else
                                                <option class="text-warning "disabled value="{{ $trainer->id }}">
                                                    @isset($trainer->name)
                                                        المشرف {{ $trainer->name }} لم يفعل الحساب بعد
                                                    @endisset
                                                </option>
                                            @endif
                                        @endforeach
                                    @endisset
                                </select>
                                <p id="alertPhone" class="massege"></p>
                                <div class="fv-plugins-message-container invalid-feedback ">
                                    يرجى تحديد المشرف
                                </div>
                                @error('trainerId')
                                    <div class="text-danger px-2 showModalAdd ">
                                        {{ $message }}
                                    </div>
                                @enderror
                            </div>

                            <div class="col-12 col-md-12 fv-plugins-icon-container">
                                <label class="form-label" for="coordinatorId">المنسق</label>
                                <select id="coordinatorSelect" name="coordinatorId" class="form-control" required>
                                    <option selected id="coordinatorId" disabled="disabled" value="">يرجى اختيار
                                        المنسق
                                    </option>
                                    @isset($coordinators)
                                        @foreach ($coordinators as $coordinator)
                                            @if ($coordinator->is_reset == 1)
                                                <option value="{{ $coordinator->id }}">
                                                    @isset($coordinator->name)
                                                        {{ $coordinator->name }}
                                                    @endisset
                                                </option>
                                            @else
                                                <option class="text-warning "disabled value="{{ $coordinator->id }}">
                                                    @isset($coordinator->name)
                                                        المنسق {{ $coordinator->name }} لم يفعل الحساب بعد
                                                    @endisset
                                                </option>
                                            @endif
                                        @endforeach
                                    @endisset
                                </select>
                                <p id="alertPhone" class="massege"></p>
                                <div class="fv-plugins-message-container invalid-feedback ">
                                    يرجى تحديد المنسق
                                </div>
                                @error('coordinatorId')
                                    <div class="text-danger px-2 showModalAdd ">
                                        {{ $message }}
                                    </div>
                                @enderror
                            </div>
                            <div class="modal-footer">
                                <button type="submit"
                                    class="btn btn-primary me-sm-3 me-1 form-btn-disable">تعديل</button>
                                <button type="reset" class="btn btn-label-secondary" data-bs-dismiss="modal"
                                    aria-label="Close">الغاء</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <!-- End Add client -->
