관리-도구
편집 파일: 36e2c8c8e22df3849ee6a91a856ca226.php
<?php $inputType = $question['question_type'] == 'multiple-choice' ? 'checkbox' : 'radio'; $answers = []; $questionScore = $question['question_score'] ?? null; ?> <?php $__currentLoopData = $question['question_answers']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $questionAnswer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $answers[] = $questionAnswer['correct'] == 1 ? $questionAnswer['answer']['name'] : ''; ?> <li class="option"> <label for="q-1-<?php echo e($questionAnswer['id']); ?>" class="flex items-start gap-3 dk-border-one rounded-lg p-3.5 cursor-pointer select-none"> <input type="<?php echo e($inputType); ?>" name="answers[]" <?php echo e($questionAnswer['take_answer'] ? 'checked' : ''); ?> value="<?php echo e($questionAnswer['id']); ?>" id="q-1-<?php echo e($questionAnswer['id']); ?>" <?php echo e($disabled); ?> class=" <?php echo e($inputType == 'checkbox' ? 'lms-checkbox-check checkbox checkbox-primary' : 'lms-radio-check radio radio-primary'); ?> quizSelectAnswer "> <span class="text-heading dark:text-white font-medium leading-none"><?php echo e($questionAnswer['answer']['name']); ?></span> </label> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php if($disabled == 'disabled'): ?> <?php if (isset($component)) { $__componentOriginal9fd0096a054e0cf15e716ae187d62117 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal9fd0096a054e0cf15e716ae187d62117 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f484570d7cf557020e11ace406901b10::exam.quiz.result-show','data' => ['questionScore' => $questionScore,'answers' => $answers]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('theme::exam.quiz.result-show'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes(['questionScore' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($questionScore),'answers' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($answers)]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal9fd0096a054e0cf15e716ae187d62117)): ?> <?php $attributes = $__attributesOriginal9fd0096a054e0cf15e716ae187d62117; ?> <?php unset($__attributesOriginal9fd0096a054e0cf15e716ae187d62117); ?> <?php endif; ?> <?php if (isset($__componentOriginal9fd0096a054e0cf15e716ae187d62117)): ?> <?php $component = $__componentOriginal9fd0096a054e0cf15e716ae187d62117; ?> <?php unset($__componentOriginal9fd0096a054e0cf15e716ae187d62117); ?> <?php endif; ?> <?php reset($answers); ?> <?php endif; ?> <?php /**PATH D:\www\edulab\Modules\LMS\resources\views\components\exam\quiz\single-multiple-question.blade.php ENDPATH**/ ?>