@extends('layouts.admin') @section('content') @php $language = $exam->language ?? 'both'; $showHindi = in_array($language, ['hindi', 'both']); $showEnglish = in_array($language, ['english', 'both']); $isBilingual = $language === 'both'; @endphp
Questions
| # | Question | Options | Correct | Actions |
|---|---|---|---|---|
| {{ $loop->iteration }} | {{-- QUESTION --}}
@if($isBilingual)
๐ฎ๐ณ เคนเคฟเคเคฆเฅ
{{ $q->question_text ?: 'โ' }}
๐ฌ๐ง English
{{ $q->question_text_en ?: 'โ' }}
{{ $q->question_text ?: 'โ' }}
@else
{{ $q->question_text_en ?: $q->question_text ?: 'โ' }}
@endif
|
{{-- OPTIONS --}}
@foreach($q->options as $index => $op)
{{ chr(65 + $index) }}
@endforeach
@if($isBilingual)
{{ $op->option_text ?: 'โ' }}
{{ $op->option_text_en ?: 'โ' }}
@elseif($showHindi)
{{ $op->option_text ?: 'โ' }}
@else
{{ $op->option_text_en ?: $op->option_text ?: 'โ' }}
@endif
|
{{-- CORRECT ANSWER --}}
@if($correctOption)
{{ chr(65 + $q->options->search($correctOption)) }}
@else
โ
@endif
@if($isBilingual)
{{ $correctOption->option_text }}
{{ $correctOption->option_text_en }}
@elseif($showHindi)
{{ $correctOption->option_text }}
@else
{{ $correctOption->option_text_en ?: $correctOption->option_text }}
@endif
|
{{-- ACTIONS --}}
|
|
๐ญ No questions added yet Click "Add Question" to create the first one + Add Question |
||||