@foreach(getLanguage() as $local) @if (($key = $local['code']) == currentLocal()) @continue @endif
@endforeach
@foreach(getLanguage() as $local) @if (($key = $local['code']) == currentLocal()) @continue @endif
@endforeach
field_validation) style="display:block;" @endif>
@if($field) @forelse((array)$field->field_validation as $rule) {{ $validationRules[explode(':', $rule)[0]]['name'] }} @empty
{{ _t('settings.no_rules_to_show') }}
@endforelse @endif
{{ _t('settings.You_should_enter_a_value') }}

{{ _t('settings.conditional_rules') }} conditional_rules) ? 'checked' : '' }} name="enableConditionalRules">

@if($field && $field->conditional_rules) @foreach($field->conditional_rules as $key => $conditionalRule) @component('Admin.Settings.Partials.Config.Components.conditionalRules', ['key' => $key, 'conditionalFields' => $conditionalFields, 'condition' => $conditionalRule]) @endcomponent @endforeach @else @component('Admin.Settings.Partials.Config.Components.conditionalRules', ['key' => 0, 'conditionalFields' => $conditionalFields, 'condition' => null]) @endcomponent @endif
@php $fieldTypes = [ ['name' => 'Text', 'value' => 'text', 'target' => ''], ['name' => 'Textarea', 'value' => 'textarea', 'target' => 'textAreaOptions'], ['name' => 'Select', 'value' => 'select', 'target' => 'selectFieldChoices'], ['name' => 'Multi Select', 'value' => 'multiSelect', 'target' => 'selectFieldChoices'], ['name' => 'Radio', 'value' => 'radio', 'target' => 'radioFieldChoices'], ['name' => 'Checkbox', 'value' => 'checkbox', 'target' => 'checkFieldChoices'], ['name' => 'Image', 'value' => 'image', 'target' => ''], ['name' => 'Icon', 'value' => 'icon', 'target' => ''], ['name' => 'Button', 'value' => 'button', 'target' => 'buttonChoices'], ]; $currentFieldTarget = ''; $currentField = '' @endphp
field_choices['button']['loading']) && $field->field_choices['button']['loading']) ? 'checked' : '' }} name="button[loading]" type="checkbox">
@php $buttonActions = [ ['name' => 'Custom link', 'value' => 'link', 'target' => 'buttonLink'], ['name' => 'Clear system cache', 'value' => 'system.api/clearCache', 'target' => ''], ['name' => 'Clear module cache', 'value' => 'system.api/clearCache/module', 'target' => ''], ['name' => 'Clear menu cache', 'value' => 'system.api/clearCache/menu', 'target' => ''], ['name' => 'Cleanup system', 'value' => 'system.api/cleanup', 'target' => ''], ] @endphp
@php $selectChoices = [ ['name' => 'Modules', 'value' => 'module', 'target' => 'selectPool'], ['name' => 'Themes', 'value' => 'theme', 'target' => 'selectThemes'], ['name' => 'Languages', 'value' => 'language', 'target' => ''], ['name' => 'Currencies', 'value' => 'currency', 'target' => ''], ['name' => 'Countries', 'value' => 'country', 'target' => ''], ['name' => 'Users', 'value' => 'user', 'target' => ''], ['name' => 'Menus', 'value' => 'menu', 'target' => ''], ['name' => 'Custom Options', 'value' => 'custom', 'target' => 'selectCustomChoices'], ]; $currentChoice = isset($field->field_choices['choice_type']) ? $field->field_choices['choice_type'] : ''; $currentPool = isset($field->field_choices['pool']) ? $field->field_choices['pool'] : '' @endphp
@php $customValues = isset($field->field_choices['custom_choice']) ? $field->field_choices['custom_choice'] : []; $selectCustomChoices = ($currentSelectTarget == 'selectCustomChoices') ? $customValues : [] @endphp
@forelse($selectCustomChoices as $key => $choice) @component('Admin.Settings.Partials.Config.Components.customOption', ['type' => 'select', 'label' => $choice['label'], 'key' => $key, 'value' => $choice['value']]) @endcomponent @empty @component('Admin.Settings.Partials.Config.Components.customOption', ['type' => 'select']) @endcomponent @endforelse
@php $radioCustomChoices = ($currentFieldTarget == 'radioFieldChoices') ? $customValues : [] @endphp
@forelse($radioCustomChoices as $key => $choice) @component('Admin.Settings.Partials.Config.Components.customOption', ['type' => 'radio', 'label' => $choice['label'], 'key' => $key, 'value' => $choice['value']]) @endcomponent @empty @component('Admin.Settings.Partials.Config.Components.customOption', ['type' => 'radio']) @endcomponent @endforelse
field_choices['show_switch']['checkbox']) ? 'checked' : '' }} name="showSwitch[checkbox]">
@php $checkboxCustomChoices = ($currentFieldTarget == 'checkFieldChoices') ? $customValues : [] @endphp
@forelse($checkboxCustomChoices as $key => $choice) @component('Admin.Settings.Partials.Config.Components.customOption', ['type' => 'checkbox', 'label' => $choice['label'], 'key' => $key, 'value' => $choice['value']]) @endcomponent @empty @component('Admin.Settings.Partials.Config.Components.customOption', ['type' => 'checkbox']) @endcomponent @endforelse