/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $exams = Exam::all(); return view("admin.partials._examviews")->with("exams", $exams); }