@forelse($questionnaire->questions as $index => $question)
Q{{ $index + 1 }}. {{ $question->question_text }}
({{ ucfirst($question->question_type) }})
@if($question->question_type == 'objective')
@if($question->option_a) - A. {{ $question->option_a }}
@endif
@if($question->option_b) - B. {{ $question->option_b }}
@endif
@if($question->option_c) - C. {{ $question->option_c }}
@endif
@if($question->option_d) - D. {{ $question->option_d }}
@endif
@endif
@empty
No questions available.
@endforelse