containerClass . '"> ' . $settings->code . ' '; return $code; } /** * Display form for creating new instance of widget * * @param WidgetType $type * * @return mixed */ public static function renderAddForm(WidgetType $type) { return view('admin.widgets.htmlCode.new', ['type' => $type]); } /** * Display form for editing already existing widget * * @param Widget $widget * * @return mixed */ public static function renderEditForm(Widget $widget) { return view('admin.widgets.htmlCode.edit', ['widget' => $widget]); } }