public function showAddIncident()
    {
        return View::make('dashboard.incidents.add')
            ->withPageTitle(trans('dashboard.incidents.add.title').' - '.trans('dashboard.dashboard'))
            ->withComponentsInGroups(ComponentGroup::with('components')->get())
            ->withComponentsOutGroups(Component::where('group_id', '=', 0)->get())
            ->withNotificationsEnabled($this->system->canNotifySubscribers())
            ->withIncidentTemplates(IncidentTemplate::all());
    }
public function showAddIncident()
    {
        return View::make('dashboard.incidents.add')
            ->withPageTitle(trans('dashboard.incidents.add.title').' - '.trans('dashboard.dashboard'))
            ->withComponentsInGroups(ComponentGroup::with('components')->get())
            ->withComponentsOutGroups(Component::where('group_id', '=', 0)->get())
            ->withNotificationsEnabled($this->system->canNotifySubscribers())
            ->withIncidentTemplates(IncidentTemplate::all());
    }
public function showAddIncident ( ) { return View :: make ( 'dashboard.incidents.add' ) -> withPageTitle ( trans ( 'dashboard.incidents.add.title' ) . ' - ' . trans ( 'dashboard.dashboard' ) ) -> withComponentsInGroups ( ComponentGroup :: with ( 'components' ) -> get ( ) ) -> withComponentsOutGroups ( Component :: where ( 'group_id' , '=' , 0 ) -> get ( ) ) -> withNotificationsEnabled ( $ this -> system -> canNotifySubscribers ( ) ) -> withIncidentTemplates ( IncidentTemplate :: all ( ) ) ; }
Shows the add incident view.

@return \Illuminate\View\View
Shows the add incident view .