@extends('layouts.app') @section('css') @endsection @section('content')
@csrf
{!! $template->icon !!}
{{ __($template->name) }} @if($template->package == 'professional') {{ __('Pro') }} @elseif($template->package == 'free') {{ __('Free') }} @elseif($template->package == 'premium') {{ __('Premium') }} @elseif($template->new) {{ __('New') }} @endif

{{ __($template->description) }}

{{ __('Your Balance is') }} @if (auth()->user()->gpt_3_turbo_credits == -1) {{ __('Unlimited') }} @else {{ number_format(auth()->user()->gpt_3_turbo_credits + auth()->user()->gpt_3_turbo_credits_prepaid) }} @endif {{ __('GPT 3.5 Turbo') }} {{ __('Words') }}
@if ($brand_feature)
{{ __('Select Company') }}
{{ __('Select Product / Service') }}
@endif
{{ __('Language') }}
@error('language')

{{ $errors->first('language') }}

@enderror
@foreach ($template->fields as $value)
{{ __($value['name']) }} @if (isset($value['status'])) @if ($value['status'] == 'required') @endif @endif
@if ($value['input'] == 'input') @elseif ($value['input'] == 'textarea') @elseif ($value['input'] == 'select') @elseif ($value['input'] == 'checkbox')
@foreach ($value['placeholder'] as $option)
@endforeach
@elseif ($value['input'] == 'radio')
@foreach ($value['placeholder'] as $option)
@endforeach
@endif
@endforeach
{{ __('AI Model') }}
@if ($template->model_mode == 'fixed') @else @endif
@if ($template->tone)
{{ __('Creativity') }}
{{ __('Tone of Voice') }}
@else
{{ __('Creativity') }}
@endif
{{ __('Number of Results') }}
@error('max_results')

{{ $errors->first('max_results') }}

@enderror
{{ __('Estimated Result Length') }}
@error('words')

{{ $errors->first('words') }}

@enderror
@error('document')

{{ $errors->first('document') }}

@enderror

{{ __('Total Words') }}:

@endsection @section('js') @endsection