/** * Display the specified resource. * GET /studentmodulemarksinputs/{id} * * @param int $id * @return Response */ public function show($course) { // $courses_id = DB::table('application_courses')->where('name', '=', $course)->first()->id; $registered_students = DB::table('student_course_enrolments')->where('course_name', '=', intval($courses_id))->select('san')->groupBy('san')->get(); return View::make('studentModuleMarksInputs.index')->with('modules', DB::table('modules')->where('course_id', '=', $courses_id)->get())->with('elements', ModuleElement::lists('name', 'id'))->with('students', $registered_students)->with('course_id', $courses_id)->with('markers', ModuleMarker::lists('name', 'name')); }
public function markInputCreate() { return View::make('modules.create_mark_input')->with('ls_student_numbers', Student::lists('ls_student_number', 'ls_student_number'))->with('modules', Module::lists('name', 'id'))->with('elements', ModuleElement::lists('name', 'id')); }