public function index() { $hours = Hour::all(); $programs = Program::where('project_id', '=', Auth::user()->curr_project_id)->where('location_id', '=', Auth::user()->location_id)->get(); $menu = 'data'; return View::make('hours.index', compact('hours', 'programs', 'menu')); }
public function create($course_id) { $course = Course::with('placements')->find($course_id); $employees = Employee::where('teach_salary', '>', 0.0)->get(); $hours = Hour::all(); $menu = 'academic'; return View::make('presences.create', compact('course', 'subjects', 'employees', 'hours', 'menu')); }
public function edit($id) { $teach = Teach::find($id); $employees = Employee::where('teach_salary', '>', 0.0)->get(); $subjects = Subject::all(); $hours = Hour::all(); $menu = 'employee'; return View::make('teaches.edit', compact('teach', 'employees', 'subjects', 'hours', 'menu')); }