123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <?php
-
- class AgreementController extends \BaseController
- {
-
-
-
- public function index()
- {
-
- $user = Auth::user();
- $title = "Agreement";
- return View::make('global.agreement', compact('title', 'user'));
- }
-
-
-
-
- public function agree()
- {
-
- if (Input::get('submitbutton') == "Agree") {
- switch (Auth::user()->role) {
- case 1:
- return Redirect::intended('administrator');
- break;
-
- case 2:
- return Redirect::intended('school/' . Auth::user()->school->id);
- break;
-
- case 3:
- return Redirect::intended('program-coordinator');
- break;
-
- case 4:
- return Redirect::intended('professor');
- break;
- }
- } else {
- return Redirect::intended('logout');
- }
-
-
-
- }
-
-
-
-
- public function store()
- {
-
- }
-
-
-
-
- public function show($id)
- {
-
- }
-
-
-
-
- public function edit($id)
- {
-
- }
-
-
-
-
- public function update($id)
- {
-
- }
-
-
-
-
- public function destroy($id)
- {
-
- }
- }
|