/** * Display a listing of the resource. * * @return Response */ public function index() { $formdata = new formfoo(); $formdata->class = ""; $formdata->section = ""; $formdata->shift = ""; $formdata->exam = ""; $formdata->session = ""; $classes = ClassModel::lists('name', 'code'); return View::Make('app.tabulationsheet', compact('classes', 'formdata')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $classes = ClassModel::lists('name', 'code'); $student = Student::find($id); return View::Make("app.studentEdit", compact('student', 'classes')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $classes = ClassModel::lists('name', 'code'); $subject = Subject::find($id); return View::Make('app.subjectEdit', compact('subject', 'classes')); }
public function getgenerate() { $classes = ClassModel::lists('name', 'code'); return View::Make('app.resultgenerate', compact('classes')); }