function manage_curriculum() { $c = DB::table('tbl_coursemajor')->get(); $acam = Academicterm::all(); $owner = Api::getCollege(); $cur = DB::select("SELECT a.id as cur_id, a.description as cur_description, a.academicterm as cur_academicterm,\n b.description as c_description\n FROM tbl_curriculum a, tbl_course b, tbl_coursemajor c\n WHERE a.coursemajor = c.id AND b.id = c.course AND b.college = {$owner}"); return view(Api::getView(), ['c' => $c, 'acam' => $acam, 'cur' => $cur]); }
function show($id) { $subject_id = Subjects::findOrFail($id); $owner = Api::getCollege(); if ($subject_id instanceof ModelNotFoundException) { return view('errors.404'); } return view('dean.subject', ['subject' => $subject_id, 'owner' => $owner]); }
function __construct() { $this->system = Api::systemValue(); $this->owner = Api::getCollege(); }
function __construct() { $this->middleware('auth'); $this->system = Api::systemValue(); $this->owner = Api::getCollege(); }