/home/techb158/ileadtechnology.com/SSM/app/Http/Controllers/student
NameSizeModeActions
AttendanceController.php45830644editdlrm
PromotionController.php27130644editdlrm
RegistrationController.php96100644editdlrm
StudentAccountController.php55340644editdlrm
StudentController.php116820644editdlrm
StudentDocumentController.php64850644editdlrm
StudentFeePaymentController.php67880644editdlrm
StudentImportController.php13810644editdlrm
StudentParentController.php33240644editdlrm
StudentQualificationController.php73400644editdlrm
StudentRecordController.php100000644editdlrm
StudentSiblingController.php42350644editdlrm
TerminationController.php82340644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/app/Http/Controllers/student/PromotionController.php (2713B)
request = $request; $this->repo = $repo; } /** * Used to get pre requisites * @get ("/api/student/promotion/pre-requisite") * @return Response */ public function preRequisite() { $this->authorize('list', StudentRecord::class); return $this->success($this->repo->getPreRequisite()); } /** * Used to get list of students who awaiting promotion * @get ("/api/student/promotion") * @return Response */ public function index() { $this->authorize('list', StudentRecord::class); $student_records = $this->repo->paginate($this->request->all()); return $this->success(compact('student_records')); } /** * Used to print list of students who awaiting promotion * @post ("/api/students/promotion/print") * @return Response */ public function print() { $this->authorize('list', StudentRecord::class); $student_records = $this->repo->print(request('filter')); $filter = request('filter'); return view('print.student.promotion', compact('student_records', 'filter'))->render(); } /** * Used to generate pdf of list of students who awaiting promotion * @post ("/api/students/promotion/pdf") * @return Response */ public function pdf() { $this->authorize('list', StudentRecord::class); $student_records = $this->repo->print(request('filter')); $filter = request('filter'); $uuid = Str::uuid(); $pdf = \PDF::loadView('print.student.promotion', compact('student_records', 'filter'))->save('../storage/app/downloads/'.$uuid.'.pdf'); return $uuid; } /** * Used to promote student * @post ("/api/student/promote") * @return Response */ public function store(PromotionRequest $request) { $this->authorize('promote', StudentRecord::class); $this->repo->store($this->request->all()); return $this->success(['message' => trans('student.promoted')]); } }