/**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $courses = Course::lists('course_name', 'id');
     $data = Exam::findOrNew($id);
     return view('exam.edit', compact('data', 'courses'));
 }