@php $promptTemplate = json_decode(setting('ai_writer_prompt_template'), true); $promptTitle = data_get($promptTemplate, '*.title', []); @endphp
{{ Form::label('target_field', trans('plugins/ai-writer::ai-writer.form.choose_field'), ['class' => 'text-title-field']) }}
{{ Form::select('target_field', ['description' => __('Description'), 'content' => __('Content')], 'content', ['class' => 'ui-select']) }}
{{ Form::label('prompt_type', trans('plugins/ai-writer::ai-writer.form.prompt_type'), ['class' => 'text-title-field']) }}
{{ Form::select('prompt_type', $promptTitle, null, ['class' => 'ui-select']) }}
{{ Form::label('prompt', trans('plugins/ai-writer::ai-writer.form.prompt_label'), ['class' => 'text-title-field']) }}
{{ Form::textarea('prompt', null, ['class' => 'next-input', 'rows' => 5, 'placeholder' => trans('plugins/ai-writer::ai-writer.form.prompt_placeholder'), 'id' => 'prompt']) }}
{{ Form::label('preview_content', trans('plugins/ai-writer::ai-writer.form.preview_label'), ['class' => 'text-title-field']) }}
{{ Form::editor('preview_content', null, ['class' => 'next-input', 'placeholder' => trans('plugins/ai-writer::ai-writer.form.preview_placeholder'), 'id' => 'preview_content', 'without-buttons' => true]) }}