@switch($setting->type) @case('LONGTEXT') @break @case('CODE') @break @case('TIME') @break @case('DATE') getLocale() == 'fa') xshow="pdate" @else xshow="date" @endif xtitle="{{$setting->title}}" @if(app()->getLocale() != 'fa') def-tab="1" @endif :xvalue="{{$setting->value}}" > @break @case('DATETIME') getLocale() == 'fa') xshow="pdatetime" @else xshow="datetime" @endif xtitle="{{$setting->title}}" @if(app()->getLocale() != 'fa') def-tab="1" @endif :xvalue="{{$setting->value}}" :timepicker="true" > @break @case('ICON') @break @case('LOCATION') @php($latlng = explode(',',old($setting->key, $setting->value))) @break @case('EDITOR') @break @case('CHECKBOX') @break @case('CATEGORY') 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??null)}}' :close-on-Select="true"> @break @case('GROUP') key) :err="true" @enderror :items='@json($groups)' 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??null)}}' :close-on-Select="true"> @break @case('PRODUCT_QUERY')
@php($vals = explode(',',old($setting->key,$setting->value??'0,id,DESC')))
{{__("Category")}} key) :err="true" @enderror :items='@json($catz)' title-field="name" value-field="id" xlang="{{config('app.locale')}}" xid="{{$setting->key}}" xname="{{$setting->key}}[category]" @error('category_id') :err="true" @enderror xvalue='{{$vals[0]}}' :close-on-Select="true">
@break @case('POST_QUERY')
@php($vals = explode(',',old($setting->key,$setting->value??'0,id,DESC')))
{{__("Group")}} key) :err="true" @enderror :items='@json($groups)' title-field="name" value-field="id" xlang="{{config('app.locale')}}" xid="{{$setting->key}}" xname="{{$setting->key}}[group]" @error('category_id') :err="true" @enderror xvalue='{{$vals[0]}}' :close-on-Select="true">
@break @case('MENU') key) :err="true" @enderror :items='@json($menus)' title-field="name" value-field="id" xid="{{$setting->key}}" xname="{{$setting->key}}" @error('category_id') :err="true" @enderror xvalue='{{old($setting->key,$setting->value??null)}}' :close-on-Select="true"> @break @case('COLOR')
@break @case('NUMBER')
{{-- ltr) dir="ltr" @endif>--}} getData() as $k => $v) {{$k}}="{{$v}}" @endforeach > @break @case('FILE')
@php($ext = strtolower(pathinfo(str_replace('_','.',$setting->key), PATHINFO_EXTENSION)))
@if(!in_array($ext, ['svg','jpg','png','gif','webp'] ) ) @endif
@if($ext == 'mp4')
@elseif($ext == 'mp3')
@elseif(in_array($ext, ['svg','jpg','png','gif','webp'] ) ) {{$setting->key}} @endif
@break @default @if($setting->key == 'optimize') @else ltr) dir="ltr" @endif> @endif @endswitch