public function asmctq()
 {
     $questions = \App\Models\Contents\Question::all();
     foreach ($questions as $key => $question) {
         $topic = \App\Models\Contents\Topic::find($question->topic_id);
         $chapter = $topic->chapter;
         $module = $chapter->module;
         $subject = $module->subject;
         if (!$question->chapter_id) {
             $question->chapter_id = $chapter->id;
         }
         if (!$question->module_id) {
             $question->module_id = $module->id;
         }
         if (!$question->subject_id) {
             $question->subject_id = $subject->id;
         }
         $question->save();
     }
     return view('superadmin.taskdone');
 }
 public function showallquestions()
 {
     $qs = \App\Models\Contents\Question::all();
     foreach ($qs as $q) {
         $q->topic;
     }
     return view('superadmin.allquestion')->with('q', $qs);
 }