Esempio n. 1
0
 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'));
 }
Esempio n. 2
0
 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'));
 }
Esempio n. 3
0
 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'));
 }