          <!--  Add client -->
        </div>
          <div class="modal fade " id="updateExam" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
              aria-labelledby="updateExam" 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('exam_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="phone">البرنامج</label>
                                  <select id="courseSelect" name="roomClass" class="form-control" required>
                                      <option selected id="courseId" disabled="disabled" value="">يرجى اختيار
                                          البرنامج
                                      </option>
                                      @isset($rooms)
                                          @foreach ($rooms as $room)
                                              <option value="{{ $room->id }}">
                                                  @isset($room->name)
                                                  {{ $room->name }} 
                                                  برنامج
                                                  {{ $room->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="typeExams">المشرف</label>
                                  <select id="typeSelect" name="typeExams" class="form-control" required>
                                      <option selected id="typeExams" disabled="disabled" value="">يرجى اختيار
                                          النوع
                                      </option>
                                              <option value="0">قبلي </option>
                                              <option value="1">بعدي </option>
                                              <option value="2">اجتياز </option>
                                          
                                  </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-4">
                                <label class="form-label fw-bold" for="expireTime"> وقت وتاريخ إنتهاء الإحتبار</label>
                                <input type="datetime-local" id="expireTime " value="" name="expireTime" class="form-control text quation-tilte" placeholder="الرجاء تحديد الوقت" required="" >
                                @error('expireTime')
                                <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 -->
