public function getIndex() { if (Request::ajax()) { $colleges = College::all(); $courses = Course::all(); $scholarships = Scholarship::all(); $students = Student::where('archived', 0)->get(); return compact('colleges', 'courses', 'scholarships', 'students'); } }
public function getScholarships() { $scholarships = Scholarship::all(); return view('admin.scholarshipsList', compact('scholarships')); }