@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
Practice & Assessment Bank

Allocated Questions

{{ $course->coursename ?? 'Course' }} {{ $moduleData->module ?? 'Module' }} {{ $topicData->topic ?? 'Topic' }}
@csrf

MCQ Questions {{ $mcqs->count() }}

@if($mcqs->count() > 0)
@csrf
@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')
@csrf
@endif
@csrf
@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 }}
Live
@empty

No coding questions allocated to this topic yet.

@endforelse
@endsection