added icon field to setting

pull/49/head
A1Gard 4 months ago
parent 4d5398e880
commit ac57eb9447

@ -12,10 +12,11 @@ class Setting extends Model
public $translatable = ['value']; public $translatable = ['value'];
public static $settingTypes = ['TEXT','NUMBER', 'LONGTEXT', 'CODE', 'EDITOR', public static $settingTypes = ['TEXT', 'NUMBER', 'LONGTEXT', 'CODE', 'EDITOR',
'CATEGORY', 'GROUP', 'CHECKBOX', 'FILE', 'COLOR','SELECT','MENU']; 'CATEGORY', 'GROUP', 'CHECKBOX', 'FILE', 'COLOR', 'SELECT', 'MENU', 'LOCATION', 'ICON'];
public function getData(){ public function getData()
return json_decode($this->data,true); {
return json_decode($this->data, true);
} }
} }

@ -16,6 +16,9 @@
class="form-control" class="form-control"
rows="5">{{old($setting->key, $setting->value)}}</textarea> rows="5">{{old($setting->key, $setting->value)}}</textarea>
@break @break
@case('ICON')
<remix-icon-picker xname="{{$setting->key}}" xvalue="{{old($setting->key, $setting->value)}}"></remix-icon-picker>
@break
@case('EDITOR') @case('EDITOR')
<textarea name="{{$setting->key}}" id="{{$setting->key}}" <textarea name="{{$setting->key}}" id="{{$setting->key}}"
class="form-control ckeditorx" class="form-control ckeditorx"

Loading…
Cancel
Save