@php $promptTemplate = json_decode(setting('autocontent_prompt_template'), true); $promptTitle = data_get($promptTemplate, '*.title', []); $formBuilder = new FormBuilder(); @endphp
{{ Form::label('target_field', trans('plugins/auto-content::content.form.choose_field'), ['class' => 'text-title-field']) }}
{{ Form::select('target_field', $acceptFields, 'content', ['class' => 'ui-select']) }}
{{ Form::label('prompt_type', trans('plugins/auto-content::content.form.prompt_type'), ['class' => 'text-title-field']) }}
{{ Form::select('prompt_type', $promptTitle, null, ['class' => 'ui-select']) }}
{{ Form::label('extra_fields', trans('plugins/auto-content::content.form.extra_field'), ['class' => 'text-title-field']) }}
{{ Form::label('prompt', trans('plugins/auto-content::content.form.prompt_label'), ['class' => 'text-title-field']) }}
{{ Form::textarea('prompt', null, ['class' => 'next-input', 'rows' => 5, 'placeholder' => trans('plugins/auto-content::content.form.prompt_placeholder'), 'id' => 'prompt']) }}
{{ Form::label('preview_content', trans('plugins/auto-content::content.form.preview_label'), ['class' => 'text-title-field']) }}
{{ Form::editor('preview_content', null, ['class' => 'next-input', 'placeholder' => trans('plugins/auto-content::content.form.preview_placeholder'), 'id' => 'preview_content']) }}