public function getStudent($id) { if (Request::ajax()) { $student = Student::with('college', 'course', 'scholarship', 'educationalBackground', 'familyBackground', 'academicPerformance', 'organizationalAffiliation', 'psychologicalTest', 'activityParticipated', 'counsellingRecord', 'absentRecord')->where('students.id', $id)->get(); return $student; } }
public function show($id) { try { $student = Student::with('interests')->findOrFail($id); } catch (Exception $e) { App::abort(404); } return view('students.show', $student); }
public function getArchives() { $students = Student::with('college')->orderBy('students.lname', 'ASC')->where('archived', 1)->get(); return view('admin.archives', compact('students')); }
public function getRecord($id) { if (Request::ajax()) { return Student::with('college')->where('id', $id)->first(); } }
public function test() { $logs = Student::with('equations', 'piaLogs')->get(); // dd($logs); return view('partials.test', compact('logs')); }