<!-- Modal Add clint -->
<div class="modal fade" id="addClassRoom" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
    aria-labelledby="addClassRoom" aria-hidden="true">
    <div class="modal-dialog ">
        <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 id="studentForm" method="POST" action="<?php echo e(route('class_room_store')); ?>"
                    class="row g-3 fv-plugins-bootstrap5 fv-plugins-framework needs-validation form-disable"
                    novalidate>
                    <?php echo csrf_field(); ?>
                    <div class="row">
                        <div class="col-12 col-md-12 fv-plugins-icon-container">
                            <label class="form-label" for="name">الاسم</label>
                            <input type="text" id="validationCustom01" value="<?php echo e(old('name')); ?>" name="name"
                                class="form-control text" placeholder="الرجاء ادخال الاسم" required="">
                            <p id="alert" class="massege"></p>
                            <div class="fv-plugins-message-container invalid-feedback ">
                                يرجاء ادخال الاسم
                            </div>
                            <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <div class="text-danger px-2 showModalAdd ">
                                    <?php echo e($message); ?>

                                </div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <div class="col-12 col-md-12 fv-plugins-icon-container">
                            <label class="form-label" for="phone">البرنامج</label>
                            <select id="courseId" name="courseId" class="form-control" required>
                                <option selected id="myId" disabled="disabled" value="">يرجى اختيار
                                    البرنامج
                                </option>
                                <?php if(isset($courses)): ?>
                                    <?php $__currentLoopData = $courses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $course): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($course->id); ?>">
                                            <?php if(isset($course->title)): ?>
                                                <?php echo e($course->title); ?>

                                            <?php endif; ?>
                                        </option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php endif; ?>
                            </select>
                            <p id="alertPhone" class="massege"></p>
                            <div class="fv-plugins-message-container invalid-feedback ">
                                يرجى تحديد البرنامج
                            </div>
                            <?php $__errorArgs = ['courseId'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <div class="text-danger px-2 showModalAdd ">
                                    <?php echo e($message); ?>

                                </div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>

                        <div class="col-12 col-md-12 fv-plugins-icon-container">
                            <label class="form-label" for="place">المكان</label>
                            <input type="text" id="place" value="<?php echo e(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>
                            <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <div class="text-danger px-2 showModalAdd ">
                                    <?php echo e($message); ?>

                                </div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <div class="col-12 col-md-12 fv-plugins-icon-container">
                            <label class="form-label" for="trainerId">المشرف أو مسؤل جهة التدريب</label>
                            <select id="trainerId" name="trainerId" class="form-control" required>
                                <option selected id="myId" disabled="disabled" value="">يرجى اختيار المشرف
                                </option>
                                <?php if(isset($trainers)): ?>
                                    <?php $__currentLoopData = $trainers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $trainer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <?php if($trainer->is_reset == 1): ?>
                                            <option value="<?php echo e($trainer->id); ?>">
                                                <?php if(isset($trainer->name)): ?>
                                                    <?php echo e($trainer->name); ?>

                                                <?php endif; ?>
                                            </option>
                                        <?php else: ?>
                                            <option class="text-warning "disabled value="<?php echo e($trainer->id); ?>">
                                                <?php if(isset($trainer->name)): ?>
                                                    المشرف <?php echo e($trainer->name); ?> لم يفعل الحساب بعد
                                                <?php endif; ?>
                                            </option>
                                        <?php endif; ?>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php endif; ?>
                            </select>
                            <p id="alertPhone" class="massege"></p>
                            <div class="fv-plugins-message-container invalid-feedback ">
                                يرجى تحديد المشرف
                            </div>
                            <?php $__errorArgs = ['trainerId'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <div class="text-danger px-2 showModalAdd ">
                                    <?php echo e($message); ?>

                                </div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>

                        <div class="col-12 col-md-12 fv-plugins-icon-container">
                            <label class="form-label" for="coordinatorId">المنسق أو مسؤل جهة التدريب</label>
                            <select id="coordinatorId" name="coordinatorId" class="form-control" required>
                                <option selected id="myId" disabled="disabled" value="">يرجى اختيار المنسق
                                </option>
                                <?php if(isset($coordinators)): ?>
                                    <?php $__currentLoopData = $coordinators; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $coordinator): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <?php if($coordinator->is_reset == 1): ?>
                                            <option value="<?php echo e($coordinator->id); ?>">
                                                <?php if(isset($coordinator->name)): ?>
                                                    <?php echo e($coordinator->name); ?>

                                                <?php endif; ?>
                                            </option>
                                        <?php else: ?>
                                            <option class="text-warning "disabled value="<?php echo e($coordinator->id); ?>">
                                                <?php if(isset($coordinator->name)): ?>
                                                    المنسق <?php echo e($coordinator->name); ?> لم يفعل الحساب بعد
                                                <?php endif; ?>
                                            </option>
                                        <?php endif; ?>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php endif; ?>
                            </select>
                            <p id="alertPhone" class="massege"></p>
                            <div class="fv-plugins-message-container invalid-feedback ">
                                يرجى تحديد المنسق
                            </div>
                            <?php $__errorArgs = ['coordinatorId'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <div class="text-danger px-2 showModalAdd ">
                                    <?php echo e($message); ?>

                                </div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </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 Modal Add clint -->
<?php /**PATH C:\Users\Nasser\Desktop\TrainingManagementPlatform\resources\views/class-room/modals/new.blade.php ENDPATH**/ ?>