@extends(decide_template()) @section('title', $title) @section('page_styles') @endsection @section('page_scripts') @php $aiTagsI18n = [ 'form_error' => trans('common.message.form_error'), 'record_created' => trans('common.message.create'), 'copied' => trans('common.message.success_copied'), ]; @endphp @php // Which prompt template this tag was built from, so its input fields can be // re-opened on edit. The saved input values themselves are rendered by the // templateData partial, which reads the same JSON. $query_type = null; if (!empty($custom_field->ai_query)) { $query_type = (int) $custom_field->ai_query; } @endphp @if(!empty($query_type)) @endif @endsection @section(decide_content()) @if($errors->any())
@foreach($errors->all() as $error)

{{ $error }}

@endforeach
@endif @if (Session::has('error'))
{!! Session::get('error') !!}
@endif @if (Session::has('msg'))
{{ Session::get('msg') }}
@endif
@if($action == 'add')
@else @endif

{{trans('content_tags.add_new.form.heading')}}

place_holder) ? "readonly" : '' }} value="{{isset($custom_field->place_holder) ? $custom_field->place_holder : '' }}" />
@php $number_of_characters = ["100", "200", "300", "500", "1000", "2500"]; $selected_limit = isset($custom_field->number_of_character) ? (string) $custom_field->number_of_character : "300"; @endphp
@php $ai_tiers = config('mumara.ai_tiers', []); $selected_tier = !empty($custom_field->ai_model) && isset($ai_tiers[$custom_field->ai_model]) ? $custom_field->ai_model : 'balanced'; @endphp @foreach($ai_tiers as $tier_key => $tier) @endforeach
@foreach($prompts as $prompt) @endforeach
{{ trans("content_tags.add_new.form.field_requires") }}
response)) style="display:none;" @endif>
{{ $custom_field->response ?? '' }}
response)) style="display:none;" @endif class="btn btn-label-grey" id="token-blk">{{ trans('content_tags.add_new.form.credits_used') }}: @if(!empty(request()->get("debug")) and request()->get("debug") == 1 and ! isClient(getAuthUser())) response)) style="display:none;" @endif class="btn btn-label-grey" id="ai-token-blk">{{ trans('content_tags.add_new.form.mumara_cost') }}: @endif

@if(!empty(request()->get("debug")) and request()->get("debug") == 1 and ! isClient(getAuthUser()))
@endif
@if($action == 'add') @else @endif
@endsection