Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public function getEvent($id, $loc_id){
  2. $location=Locations::where('id', $loc_id)->first();
  3. $sch=\App\EmployeeDaySchedule::where('id', $id)->with(array('shift'=>function($query){
  4. $query->with('employee_change')->get();
  5. }))->with('employee')->first();
  6.  
  7. return view('admin.layouts.modals.edit.daily_schedule',array('sch'=>$sch, 'employee'=>$sch->employee, 'location'=>$location));
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement