public function edit(Widget $widget)
    {
        $widget->type     = old('type', $widget->type);
        $widget->template = old('template', $widget->template);

        return view('administrator.widgets.edit', compact('widget'));
    }
public function edit(Widget $widget)
    {
        $widget->type     = old('type', $widget->type);
        $widget->template = old('template', $widget->template);

        return view('administrator.widgets.edit', compact('widget'));
    }
public function edit ( Widget $ widget ) { $ widget -> type = old ( 'type' , $ widget -> type ) ; $ widget -> template = old ( 'template' , $ widget -> template ) ; return view ( 'administrator.widgets.edit' , compact ( 'widget' ) ) ; }
Show and edit selected widget.

@param \Yajra\CMS\Entities\Widget $widget
@return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
Show and edit selected widget .