added icon field to setting

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

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

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

Loading…
Cancel
Save