added setting category set

master
A1Gard
parent 9069d15046
commit 8497e5a240

@ -14,7 +14,7 @@ class Setting extends Model
public static $settingTypes = ['TEXT', 'NUMBER', 'LONGTEXT', 'CODE', 'EDITOR',
'CATEGORY', 'GROUP', 'CHECKBOX', 'FILE', 'COLOR', 'SELECT', 'MENU', 'LOCATION',
'ICON','DATE','DATETIME','TIME','PRODUCT_QUERY','POST_QUERY'];
'ICON','DATE','DATETIME','TIME','PRODUCT_QUERY','POST_QUERY','CATEGORY_SET'];
public function getData()
{

@ -82,6 +82,19 @@
xvalue='{{old($setting->key,$setting->value??null)}}'
:close-on-Select="true"></searchable-select>
@break
@case('CATEGORY_SET')
<searchable-multi-select
@error($setting->key) :err="true" @enderror
:items='@json($cats)'
title-field="name"
value-field="id"
xlang="{{config('app.locale')}}"
xid="{{$setting->key}}"
xname="{{$setting->key}}"
@error('category_id') :err="true" @enderror
:xvalue='{{old($setting->key,$setting->value??[])}}'
:close-on-Select="true"></searchable-multi-select>
@break
@case('GROUP')
<searchable-select
@error($setting->key) :err="true" @enderror

Loading…
Cancel
Save