Edit Material Design Dashboard

This commit is contained in:
Mathieu Lagace
2019-08-15 19:48:41 -04:00
parent 9f85296cea
commit 1419032b64
22 changed files with 1203 additions and 5525 deletions

View File

@@ -112,11 +112,17 @@ class ScheduleController extends Controller
'title' => $schedule->data['event_name'],
'start' => $schedule->date.'T'.$schedule->data['event_begin_time'],
'end' => $schedule->date.'T'.$schedule->data['event_end_time'],
'color' => $color
'color' => $color,
'id' => $schedule->id
];
array_push($events,$event);
}
return json_encode($events);
}
public function loadModal($id)
{
return view('public.modal.schedule',['event' => \App\Schedule::find($id)]);
}
}