@extends(BaseHelper::getAdminMasterLayoutTemplate()) @section('content') @php do_action(BASE_ACTION_TOP_FORM_CONTENT_NOTIFICATION, request(), THEME_OPTIONS_MODULE_SCREEN_NAME); @endphp {{ trans('packages/theme::theme.theme_options') }}
{!! apply_filters(THEME_OPTIONS_ACTION_META_BOXES, null, THEME_OPTIONS_MODULE_SCREEN_NAME) !!} {{ trans('packages/theme::theme.save_changes') }}
@isset($currentSection['description'])

{!! BaseHelper::clean($currentSection['description']) !!}

@endisset @php $sharedOptionsEnabled = config('packages.theme.general.enable_shared_theme_options', false); $isNonDefaultLocale = apply_filters('theme_options_is_non_default_locale', (bool) request()->query('ref_lang')); $sectionIsShared = $sharedOptionsEnabled && Arr::get($currentSection, 'shared', false); @endphp @if ($sectionIsShared && $isNonDefaultLocale) {{ trans('packages/theme::theme.shared_section_notice') }} @endif @foreach (ThemeOption::constructFields($currentSection['id']) as $field) @if (Arr::get($field, 'type') === 'hidden') {!! ThemeOption::renderField($field) !!} @else @php $isShared = $sharedOptionsEnabled && ($sectionIsShared || Arr::get($field, 'shared', false)); $isDisabled = $isShared && $isNonDefaultLocale; @endphp
@if ($isShared) {{ trans('packages/theme::theme.all_languages') }} @endif
{!! ThemeOption::renderField($field) !!}
@if ($isDisabled) {{ trans('packages/theme::theme.shared_field_notice') }} @elseif (array_key_exists('helper', $field)) {!! BaseHelper::clean($field['helper']) !!} @endif @endif
@endforeach
{!! apply_filters(THEME_OPTIONS_ACTION_META_BOXES, null, THEME_OPTIONS_MODULE_SCREEN_NAME) !!} {{ trans('packages/theme::theme.save_changes') }}
@endsection