예제 #1
0
 /**
  * Shows the edit incident view.
  *
  * @param \CachetHQ\Cachet\Models\Incident $incident
  *
  * @return \Illuminate\View\View
  */
 public function showEditIncidentAction(Incident $incident)
 {
     return View::make('dashboard.incidents.edit')->withPageTitle(trans('dashboard.incidents.edit.title') . ' - ' . trans('dashboard.dashboard'))->withIncident($incident)->withComponentsInGroups(ComponentGroup::with('components')->get())->withComponentsOutGroups(Component::where('group_id', 0)->get());
 }
 /**
  * Shows the edit incident view.
  *
  * @param \CachetHQ\Cachet\Models\Incident $incident
  *
  * @return \Illuminate\View\View
  */
 public function showEditIncidentAction(Incident $incident)
 {
     $componentsInGroups = ComponentGroup::with('components')->get();
     $componentsOutGroups = Component::where('group_id', 0)->get();
     return View::make('dashboard.incidents.edit')->with(['page_title' => trans('dashboard.incidents.edit.title') . ' - ' . trans('dashboard.dashboard'), 'incident' => $incident, 'componentsInGroups' => $componentsInGroups, 'componentsOutGroups' => $componentsOutGroups]);
 }