@php $dependField = $coreConfigRepository->getDependentFieldOrValue($field); $dependValue = $coreConfigRepository->getDependentFieldOrValue($field, 'value'); $dependNameKey = $item['key'] . '.' . $dependField; $dependName = $coreConfigRepository->getNameField($dependNameKey); $field['options'] = $coreConfigRepository->getDependentFieldOptions($field, $value); $selectedOption = core()->getConfigData($nameKey, $channel, $locale) ?? ''; $dependSelectedOption = core()->getConfigData($dependNameKey, $channel, $locale) ?? ''; @endphp @if (strpos($field['validation'], 'required_if') !== false) @else @endif @push('scripts') @endpush