

<?php $__env->startSection('title'); ?>
    <?php if(isset($subscriber->room->name)): ?>
        <?php echo e($subscriber->room->name); ?>

    <?php endif; ?>
<?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-body pb-3 tran px-5">
                            <div class="form-validation">
                                <form class="validation need-validation" method="POST"
                                    action="<?php echo e(route('students_evaluation_store')); ?>">
                                    <?php echo csrf_field(); ?>
                                    <input  type="hidden" name="subscriberId" value=" <?php if(isset($subscriber->id)): ?><?php echo e($subscriber->id); ?><?php endif; ?>">
                                    <div class="card-header">
                                        <h5 class="card-title ">
                                            <?php if(isset($subscriber->room->name)): ?>
                                                <?php echo e($subscriber->room->name); ?>

                                            <?php endif; ?>
                                        </h5>
                                    </div>
                                    <div class=" all-quations   py-3 mb-2" id="allQuationts">
                                        <?php if(isset($evaluations)): ?>
                                            <?php $__currentLoopData = $evaluations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $evaluation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <?php if(isset($evaluation->type)): ?>
                                                    <?php if($evaluation->type == 0): ?>
                                                    <div class="border mb-2">
                                                        <div class="row   my-2 quation qution-radio mx-auto">
                                                            <div class="card-header">
                                                                <h5 class="card-title ">
                                                                    <span><?php echo e($loop->iteration); ?> : <?php if(isset($evaluation->name)): ?><?php echo e($evaluation->name); ?><?php endif; ?></span>
                                                                </h5>
                                                            </div>
                                                        </div>
                                                        <?php if(isset($evaluation->values)): ?>
                                                        <?php $__currentLoopData = $evaluation->values; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                                                        <div class="col-12 py-3 border-bottom ">
                                                            <label class="form-label fw-bold px-2 " for="name"><?php echo e($loop->iteration); ?> - <?php if(isset($value->name)): ?><?php echo e($value->name); ?><?php endif; ?></label>
                                                            <div class="options" style="display: block;">
                                                                <div class="row    pt-3 single-option">
                                                                    <div
                                                                        class="col-12 col-md-12 fv-plugins-icon-container pt-2 pe-4 mb-1">
                                                                        <input  class="form-check-input radio row-option mt-0 me-3" id="benefit-<?php if(isset($value->id)): ?><?php echo e($value->id); ?><?php endif; ?>-4"
                                                                            type="radio" name="benefit[<?php if(isset($value->id)): ?><?php echo e($value->id); ?><?php endif; ?>]"
                                                                            value="4">
                                                                        <label class=" fw-bold me-3" for="benefit-<?php if(isset($value->id)): ?><?php echo e($value->id); ?><?php endif; ?>-4">ممتاز</label>
                                                                    </div>
                                                                    <div
                                                                        class="col-12 col-md-12 fv-plugins-icon-container pt-2 pe-4 mb-1">
                                                                        <input  class="form-check-input radio row-option mt-0 me-3" id="benefit-<?php if(isset($value->id)): ?><?php echo e($value->id); ?><?php endif; ?>-3"
                                                                            type="radio" name="benefit[<?php if(isset($value->id)): ?><?php echo e($value->id); ?><?php endif; ?>]"
                                                                            value="3">
                                                                        <label class=" fw-bold me-3" for="benefit-<?php if(isset($value->id)): ?><?php echo e($value->id); ?><?php endif; ?>-3">جيد جداً</label>
                                                                    </div>
                                                                    <div
                                                                        class="col-12 col-md-12 fv-plugins-icon-container pt-2 pe-4 mb-1">
                                                                        <input  class="form-check-input radio row-option mt-0 me-3" id="benefit-<?php if(isset($value->id)): ?><?php echo e($value->id); ?><?php endif; ?>-2"
                                                                            type="radio" name="benefit[<?php if(isset($value->id)): ?><?php echo e($value->id); ?><?php endif; ?>]"
                                                                            value="2">
                                                                        <label class=" fw-bold me-3" for="benefit-<?php if(isset($value->id)): ?><?php echo e($value->id); ?><?php endif; ?>-2">جيد</label>
                                                                    </div>
                                                                    <div
                                                                        class="col-12 col-md-12 fv-plugins-icon-container pt-2 pe-4 mb-1">
                                                                        <input  class="form-check-input radio row-option mt-0 me-3" id="benefit-<?php if(isset($value->id)): ?><?php echo e($value->id); ?><?php endif; ?>-1"
                                                                            type="radio" name="benefit[<?php if(isset($value->id)): ?><?php echo e($value->id); ?><?php endif; ?>]"
                                                                            value="1">
                                                                        <label class=" fw-bold me-3" for="benefit-<?php if(isset($value->id)): ?><?php echo e($value->id); ?><?php endif; ?>-1">مقبول</label>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                        <?php endif; ?>
                                                    </div>
                                                    <?php else: ?>
                                                    <div class="border mb-2">
                                                        <div class="row   my-2 quation qution-radio mx-auto">
                                                            <div class="card-header">
                                                                <h5 class="card-title ">
                                                                    <span><?php echo e($loop->iteration); ?>: <?php if(isset($evaluation->name)): ?><?php echo e($evaluation->name); ?><?php endif; ?></span>
                                                                </h5>
                                                            </div>
                                                        </div>
                                                        <div class="row px-3 mb-3 ">
                                                            <div class="col-12 ">
                                                                <textarea class="form-control form-white type-quation mt-2" rows="8" placeholder="ادخل نص الاجابة هنا ...." style="height: auto"
                                                                    name="txtValue[<?php if(isset($evaluation->values[0]->id)): ?><?php echo e($evaluation->values[0]->id); ?><?php endif; ?>]"></textarea>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <?php endif; ?>
                                                <?php endif; ?>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php endif; ?>
                                    </div>
                                    <div class="col-xl-12" style="direction: ltr;">
                                        <button type="submit" class="btn btn-primary me-sm-3 me-1">حفظ </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('/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/questionnaire/questionnaire.blade.php ENDPATH**/ ?>