

<?php $__env->startSection('title'); ?>
    اضافة اختبار جديد
<?php $__env->stopSection(); ?>

<?php $__env->startSection('first-css'); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content-body'); ?>
    <!--**********************************
                Content body start
            ***********************************-->
            <?php echo $__env->make('massages', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

    <!-- row -->
    <div class="container-fluid">
        <div class="row invoice-card-row">
            <div class="row invoice-card-row">

                <div class="col-xl-12">
                    <div class="card">
                        <div class="card-header">
                            <h4 class="card-title ">اضافة اختبار جديد</h4>
                        </div>
                        <div class="card-body pb-3 tran ">
                            <div class="form-validation">
                                <form class="validation needs-validation form-disable" novalidate method="POST" action="<?php echo e(route('exam_store')); ?>">
                                   <?php echo csrf_field(); ?>
                                    <div class="row border-bottom pb-3 mb-2">
                                        <div class="col-12 col-md-4">
                                            <label class="form-label fw-bold" for="name">نوع الاختبار</label>
                                            <select class="form-control form-white inputRead" data-placeholder="Choose a color..." name="typeExams" required="">
                                                <option disabled="disabled" selected="" value="">الرجاء اختيار احد
                                                    الانواع</option>
                                                <option value="0">اختبار قبلي</option>
                                                <option value="1">اختبار بعدي</option>
                                                <option value="2">اختبار اجتياز</option>
                                            </select>
                                            <?php $__errorArgs = ['typeExams'];
$__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-4">
                                            <label class="form-label fw-bold" for="name">الصف الدراسي</label>
                                            <select class="form-control form-white inputRead" data-placeholder="Choose a color..." name="roomClass" required="">
                                                <option disabled="disabled" selected="" value="">الرجاء اختيار احد
                                                    الدورات التدريبية</option>
                                                    <?php if(isset($rooms)): ?>
                                                    <?php $__currentLoopData = $rooms; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $room): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <option value="<?php echo e($room->id); ?>"> <?php echo e($room->name); ?> برنامج <?php echo e($room->course->title); ?> </option>
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                <?php endif; ?>
                                            </select>
                                            <?php $__errorArgs = ['roomClass'];
$__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-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="" >
                                            <?php $__errorArgs = ['expireTime'];
$__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>
                                   <div class="card-header">
                                        <h5 class="card-title ">اسئلة الاختبار</h5>
                                    </div>
                                    <div class=" all-quations   py-3 mb-2" id="allQuationts">

                                    </div>
                                    <div class="col-xl-12 mt-2" style="direction: rtl;">
                                        <span id="add" class="btn btn-success">اضافة سؤال جديد +</span>
                                    </div>
                                    <div class="col-xl-12" style="direction: ltr;">
                                        <button type="submit" class="btn btn-primary me-sm-3 me-1 showModal" data-title="هل تريد حفظ هذا الاختبار؟">حفظ </button>
                                    </div>
                            </form>
                        </div>

                        </div>
                    </div>

                </div>

            </div>
        </div>
    </div>
    <!--**********************************
                Content body end
    ***********************************-->


<?php $__env->stopSection(); ?>

<?php $__env->startSection('script'); ?>
<script src="<?php echo e(asset('/js/exam/add-new-qution.js')); ?>"></script>
    <script src="<?php echo e(asset('/vendor/datatables/js/jquery.dataTables.min.js')); ?>"></script>
    <script src="<?php echo e(asset('/js/plugins-init/datatables.init.js')); ?>"></script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\Nasser\Desktop\TrainingManagementPlatform\resources\views/exams/add_exams.blade.php ENDPATH**/ ?>