
<?php $__env->startSection('title'); ?> Exam Reslt Data <?php $__env->stopSection(); ?>
<?php $__env->startSection('styles'); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('frontend_content'); ?>

<div class="container h-100 mt-2">
    <?php $__currentLoopData = $getExamPaperData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php if(isset($item) && $item != null): ?>

            <?php
            // For question title...
            $tagRemovalQuestionTitle = strip_tags($item->questionData->question);
            $originalQuestionTitle = preg_replace("/\s|&nbsp;/"," ",$tagRemovalQuestionTitle);
            ?>

            <div class="card p-2 custom-post-list-card mb-3 book">
                <input type="hidden" name="user_id" value="<?php echo e(Auth::user()->id); ?>">
                <input type="hidden" name="exam_id" value="<?php echo e($singleExamData->id); ?>">
                <input type="hidden" name="exam_question_id[]" value="<?php echo e($item->question_id); ?>">
                
                <p class="custom-question-title"><strong class="d-flex"> <?php echo e($key+1); ?>) <?php echo e($originalQuestionTitle); ?></strong></p>
                <div class="options mb-3">





                    <?php if(($item->right_answer == $item->questionData->question_answer1) && ($item->right_answer ==
                    $item->questionData->right_answer)): ?>
                    <div class="d-flex align-items-center gap-2 justify-content-between correct-ans">
                    <?php elseif(($item->right_answer == $item->questionData->question_answer1) && ($item->right_answer !=
                    $item->questionData->right_answer)): ?>
                    <div class="d-flex align-items-center gap-2 justify-content-between wrong-ans">
                    <?php else: ?>
                        <?php if(($item->questionData->right_answer == $item->questionData->question_answer1)): ?>
                        <div class="d-flex align-items-center gap-2 justify-content-between correct-ans">
                        <?php else: ?>
                        <div class="d-flex align-items-center gap-2 justify-content-between">
                        <?php endif; ?>
                    <?php endif; ?>
                    
                        <div class="d-flex align-items-center gap-2">
                            
                            <?php if(($item->right_answer == $item->questionData->question_answer1)): ?>
                                <input type="radio" disabled checked name="option<?php echo e($item->id); ?>" id="option<?php echo e($item->questionData->question_answer1); ?>">
                            <?php else: ?>
                                <input disabled type="radio" name="option" id="option<?php echo e($item->questionData->question_answer1); ?>">
                            <?php endif; ?>
                            
                            <label for="option<?php echo e($item->questionData->question_answer1); ?>">a) <?php echo e($item->questionData->question_answer1); ?></label>
                        </div> 
                        
                        <?php if(($item->right_answer == $item->questionData->question_answer1) &&  ($item->right_answer == $item->questionData->right_answer)): ?>
                            <span class="material-symbols-outlined">
                                done
                            </span>
                        <?php elseif(($item->right_answer == $item->questionData->question_answer1) && ($item->right_answer != $item->questionData->right_answer)): ?>
                            <span class="material-symbols-outlined">
                                close
                            </span>
                        <?php else: ?>
                            <?php if(($item->questionData->right_answer == $item->questionData->question_answer1)): ?>
                            <span class="material-symbols-outlined">
                                done
                            </span>
                            <?php else: ?>
                            <?php endif; ?>
                        <?php endif; ?>

                    </div>






                    <?php if(($item->right_answer == $item->questionData->question_answer2) && ($item->right_answer ==
                    $item->questionData->right_answer)): ?>
                    <div class="d-flex align-items-center gap-2 justify-content-between correct-ans">
                    <?php elseif(($item->right_answer == $item->questionData->question_answer2) && ($item->right_answer !=
                    $item->questionData->right_answer)): ?>
                    <div class="d-flex align-items-center gap-2 justify-content-between wrong-ans">
                    <?php else: ?>
                        <?php if(($item->questionData->right_answer == $item->questionData->question_answer2)): ?>
                        <div class="d-flex align-items-center gap-2 justify-content-between correct-ans">
                        <?php else: ?>
                        <div class="d-flex align-items-center gap-2 justify-content-between">
                        <?php endif; ?>
                    <?php endif; ?>
                    
                        <div class="d-flex align-items-center gap-2">
                            <?php if(($item->right_answer == $item->questionData->question_answer2)): ?>
                            <input type="radio" disabled checked name="option<?php echo e($item->id); ?>" id="option<?php echo e($item->questionData->question_answer2); ?>">
                            <?php else: ?>
                            <input disabled type="radio" name="option" id="option<?php echo e($item->questionData->question_answer2); ?>">
                            <?php endif; ?>

                            <label for="option<?php echo e($item->questionData->question_answer2); ?>">b) <?php echo e($item->questionData->question_answer2); ?></label>
                        </div>
                    
                        <?php if(($item->right_answer == $item->questionData->question_answer2) && ($item->right_answer ==
                        $item->questionData->right_answer)): ?>
                        <span class="material-symbols-outlined">
                            done
                        </span>
                        <?php elseif(($item->right_answer == $item->questionData->question_answer2) && ($item->right_answer !=
                        $item->questionData->right_answer)): ?>
                        <span class="material-symbols-outlined">
                            close
                        </span>
                        <?php else: ?>
                            <?php if(($item->questionData->right_answer == $item->questionData->question_answer2)): ?>
                            <span class="material-symbols-outlined">
                                done
                            </span>
                            <?php else: ?>
                            <?php endif; ?>
                        <?php endif; ?>
                    
                    </div>






                    <?php if(($item->right_answer == $item->questionData->question_answer3) && ($item->right_answer ==
                    $item->questionData->right_answer)): ?>
                    <div class="d-flex align-items-center gap-2 justify-content-between correct-ans">
                    <?php elseif(($item->right_answer == $item->questionData->question_answer3) && ($item->right_answer !=
                    $item->questionData->right_answer)): ?>
                    <div class="d-flex align-items-center gap-2 justify-content-between wrong-ans">
                    <?php else: ?>
                        <?php if(($item->questionData->right_answer == $item->questionData->question_answer3)): ?>
                        <div class="d-flex align-items-center gap-2 justify-content-between correct-ans">
                        <?php else: ?>
                        <div class="d-flex align-items-center gap-2 justify-content-between">
                        <?php endif; ?>
                    <?php endif; ?>
                    
                        <div class="d-flex align-items-center gap-2">
                            <?php if(($item->right_answer == $item->questionData->question_answer3)): ?>
                            <input type="radio" disabled checked name="option<?php echo e($item->id); ?>" id="option<?php echo e($item->questionData->question_answer3); ?>">
                            <?php else: ?>
                            <input disabled type="radio" name="option" id="option<?php echo e($item->questionData->question_answer3); ?>">
                            <?php endif; ?>

                            <label for="option<?php echo e($item->questionData->question_answer3); ?>">c) <?php echo e($item->questionData->question_answer3); ?></label>
                        </div>

                        <?php if(($item->right_answer == $item->questionData->question_answer3) && ($item->right_answer ==
                        $item->questionData->right_answer)): ?>
                        <span class="material-symbols-outlined">
                            done
                        </span>
                        <?php elseif(($item->right_answer == $item->questionData->question_answer3) && ($item->right_answer !=
                        $item->questionData->right_answer)): ?>
                        <span class="material-symbols-outlined">
                            close
                        </span>
                        <?php else: ?>
                            <?php if(($item->questionData->right_answer == $item->questionData->question_answer3)): ?>
                            <span class="material-symbols-outlined">
                                done
                            </span>
                            <?php else: ?>
                            <?php endif; ?>
                        <?php endif; ?>

                    </div>






                    <?php if(($item->right_answer == $item->questionData->question_answer4) && ($item->right_answer ==
                    $item->questionData->right_answer)): ?>
                    <div class="d-flex align-items-center gap-2 justify-content-between correct-ans">
                    <?php elseif(($item->right_answer == $item->questionData->question_answer4) && ($item->right_answer !=
                    $item->questionData->right_answer)): ?>
                    <div class="d-flex align-items-center gap-2 justify-content-between wrong-ans">
                    <?php else: ?>
                        <?php if(($item->questionData->right_answer == $item->questionData->question_answer4)): ?>
                            <div class="d-flex align-items-center gap-2 justify-content-between correct-ans">
                        <?php else: ?>
                            <div class="d-flex align-items-center gap-2 justify-content-between">
                        <?php endif; ?>
                    <?php endif; ?>
                    
                        <div class="d-flex align-items-center gap-2">
                            <?php if(($item->right_answer == $item->questionData->question_answer4)): ?>
                            <input type="radio" disabled checked name="option<?php echo e($item->id); ?>" id="option<?php echo e($item->questionData->question_answer4); ?>">
                            <?php else: ?>
                            <input disabled type="radio" name="option" id="option<?php echo e($item->questionData->question_answer4); ?>">
                            <?php endif; ?>

                            <label for="option<?php echo e($item->questionData->question_answer4); ?>">d) <?php echo e($item->questionData->question_answer4); ?></label>
                        </div>
                    
                        <?php if(($item->right_answer == $item->questionData->question_answer4) && ($item->right_answer ==
                        $item->questionData->right_answer)): ?>
                        <span class="material-symbols-outlined">
                            done
                        </span>
                        <?php elseif(($item->right_answer == $item->questionData->question_answer4) && ($item->right_answer !=
                        $item->questionData->right_answer)): ?>
                        <span class="material-symbols-outlined">
                            close
                        </span>
                        <?php else: ?>
                            <?php if(($item->questionData->right_answer == $item->questionData->question_answer4)): ?>
                            <span class="material-symbols-outlined">
                                done
                            </span>
                            <?php else: ?>
                            <?php endif; ?>
                        <?php endif; ?>
                    
                    </div>
                    
                </div>


                <div class="px-2">
                    <p class="mb-2 "><strong>Explain: </strong> Lorem ipsum dolor sit amet consectetur adipisicing elit. Fugiat
                        voluptatem facilis ducimus ipsum dolorem maxime debitis ex at earum error.</p>
                </div>
            </div>
        <?php endif; ?>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>

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

<?php $__env->startSection('scripts'); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('frontend.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\Project\Personal-Project\Office-Project\update\test-paper-final\resources\views/frontend/exam/subjectWiseExam/getExamResultDataForSWE.blade.php ENDPATH**/ ?>