@php
// The input values saved with this tag, keyed by the template's input
// placeholder, so an edit re-opens the form exactly as it was submitted.
$savedInputs = [];
if (!empty($tag->data)) {
foreach ((json_decode($tag->data, true) ?: []) as $key => $value) {
if (is_array($value)) {
continue;
}
$savedInputs[str_replace(' ', '_', $key)] = $value;
}
}
@endphp
{{ trans("common.description") }}
@foreach(preg_split("/\r\n|\n|\r/", (string) $prompt->description) as $line)
{{ $line }}
@endforeach
{{ $prompt->name }}
@foreach(preg_split("/\r\n|\n|\r/", (string) $prompt->example) as $line)
{{ $line }}
@endforeach
/
@if(!empty($prompt->tones))
@foreach($tones as $tone)
@if(!empty($tone["input_field"]) and !empty($tone["input_placeholder"]) and !empty($tone["input_type"]))
@if($tone["input_type"] == "textarea")