Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getEvent($id, $loc_id){
- $location=Locations::where('id', $loc_id)->first();
- $sch=\App\EmployeeDaySchedule::where('id', $id)->with(array('shift'=>function($query){
- $query->with('employee_change')->get();
- }))->with('employee')->first();
- return view('admin.layouts.modals.edit.daily_schedule',array('sch'=>$sch, 'employee'=>$sch->employee, 'location'=>$location));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement