@extends('layouts.admin') @section('content')
@foreach ($questions as $question) @endforeach
Question Title Type Answer Correct Answer Status Actions
{{ $question->title ?? 'N/A' }} {{ ucfirst($question->type->type ?? 'N/A') }} @if (in_array($question->question_type_id, [3, 4, 5])) @foreach ($question->options as $option)
{{ $option->option_text }}
@endforeach @else {{ $question->correct_answer ?? 'N/A' }} @endif
{{ $question->correct_answer ?? 'N/A' }} @if ($question->status == 1) @else @endif @if($question->status == 1) Disable @else Activate @endif
@include('includes.admin_footer')
@endsection @section('scripts') @endsection