public function showEditComponent(Component $component)
    {
        $groups = ComponentGroup::all();

        $pageTitle = sprintf('"%s" - %s - %s', $component->name, trans('dashboard.components.edit.title'), trans('dashboard.dashboard'));

        return View::make('dashboard.components.edit')
            ->withPageTitle($pageTitle)
            ->withComponent($component)
            ->withGroups($groups);
    }
public function showEditComponent(Component $component)
    {
        $groups = ComponentGroup::all();

        $pageTitle = sprintf('"%s" - %s - %s', $component->name, trans('dashboard.components.edit.title'), trans('dashboard.dashboard'));

        return View::make('dashboard.components.edit')
            ->withPageTitle($pageTitle)
            ->withComponent($component)
            ->withGroups($groups);
    }
public function showEditComponent ( Component $ component ) { $ groups = ComponentGroup :: all ( ) ; $ pageTitle = sprintf ( '"%s" - %s - %s' , $ component -> name , trans ( 'dashboard.components.edit.title' ) , trans ( 'dashboard.dashboard' ) ) ; return View :: make ( 'dashboard.components.edit' ) -> withPageTitle ( $ pageTitle ) -> withComponent ( $ component ) -> withGroups ( $ groups ) ; }
Shows the edit component view.

@param \CachetHQ\Cachet\Models\Component $component

@return \Illuminate\View\View
Shows the edit component view .