/home/techb158/ileadtechnology.com/SSM/app/Http/Controllers
NameSizeModeActions
academic/-0755rm
auth/-0755rm
calendar/-0755rm
communication/-0755rm
configuration/-0755rm
employee/-0755rm
exam/-0755rm
finance/-0755rm
frontend/-0755rm
institute/-0755rm
inventory/-0755rm
library/-0755rm
post/-0755rm
reception/-0755rm
resource/-0755rm
student/-0755rm
transport/-0755rm
upload/-0755rm
utility/-0755rm
.DS_Store61480644editdlrm
Controller.php14910644editdlrm
HomeController.php26120644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/app/Http/Controllers/HomeController.php (2612B)
request = $request; $this->repo = $repo; $this->employee = $employee; $this->student_record = $student_record; } /** * Used to test web route */ public function test() { } /** * Used to get Dashboard statistics */ public function dashboard() { return $this->success($this->repo->getData()); } /** * Used to get student strength chart */ public function studentStrengthChart() { return $this->success($this->repo->getStudentStrengthChartData($this->request->all())); } /** * Used to get library book log chart */ public function libraryBookLogChart() { return $this->success($this->repo->getLibraryBookLogChartData($this->request->all())); } /** * Used to get calendar events */ public function calendarEvents() { return $this->success($this->repo->getCalendarEventData()); } /** * Used to search result */ public function search() { $student_records = $this->student_record->search(request('q')); $employees = $this->employee->search(request('q')); return $this->success(compact('student_records','employees')); } /** * Used to get demo message for test mode */ public function demoMessage() { return view('message')->render(); } /** * Used to download pdf reports */ public function download($uuid = null) { $filename = 'downloads/'.$uuid.'.pdf'; if (! \Storage::exists($filename)) { return view('errors.file-not-found'); } $download_path = storage_path('app/'.$filename); return response()->download($download_path, 'report.pdf'); } }