@extends('layouts.staff_dashboard')
@section('title', 'Allocated Questions')
@section('content')
@php
$moduleData = DB::table('modules')
->where('id', $module)
->where('coursename', $coursename)
->first();
$topicData = DB::table('topics')
->where('id', $topic)
->where('coursename', $coursename)
->first();
@endphp
MCQ Questions
{{ $mcqs->count() }}
@if($mcqs->count() > 0)
@endif
@forelse($mcqs as $mcq)
@php
$lvl = strtolower($mcq->level ?? 'medium');
$diffClass = $lvl === 'easy' ? 'st-diff-easy' : ($lvl === 'medium' ? 'st-diff-medium' : 'st-diff-hard');
$diffLabel = $lvl === 'easy' ? 'Easy' : ($lvl === 'medium' ? 'Medium' : 'Hard');
@endphp
Q{{ $loop->iteration }}
{{ strip_tags($mcq->question) }}
{{ $diffLabel }}
@empty
No MCQ questions allocated to this topic yet.
@endforelse
Coding Questions
{{ $codings->count() }}
@if($codings->count() > 0)
@if(strtolower($language ?? '') == 'html')
@endif
@endif
@forelse($codings as $code)
@php
$lvl = strtolower($code->level ?? 'medium');
$diffClass = $lvl === 'easy' ? 'st-diff-easy' : ($lvl === 'medium' ? 'st-diff-medium' : 'st-diff-hard');
$diffLabel = $lvl === 'easy' ? 'Easy' : ($lvl === 'medium' ? 'Medium' : 'Hard');
@endphp
Q{{ $loop->iteration }}
{{ $code->title }}
{{ $diffLabel }}
@empty
No coding questions allocated to this topic yet.
@endforelse
@endsection