@php $creativity_levels = [ '0.25' => 'Economic', '0.5' => 'Average', '0.75' => 'Good', '1' => 'Premium', ]; $voice_tones = ['Professional', 'Funny', 'Casual', 'Excited', 'Witty', 'Sarcastic', 'Feminine', 'Masculine', 'Bold', 'Dramatic', 'Grumpy', 'Secretive', 'other']; $card_variant = Theme::getSetting('defaultVariations.card.variant', 'outline') === 'outline' ? 'none' : Theme::getSetting('defaultVariations.card.variant', 'solid'); $card_size = Theme::getSetting('defaultVariations.card.variant', 'outline') === 'outline' ? 'none' : Theme::getSetting('defaultVariations.card.size', 'md'); $card_roundness = Theme::getSetting('defaultVariations.card.roundness', 'default') === 'default' ? 'none' : Theme::getSetting('defaultVariations.card.roundness', 'default'); if ($openai->type == 'audio') { if ($card_variant === 'none') { $card_variant = 'outline'; } if ($card_size === 'none') { $card_size = 'md'; } if ($card_roundness === 'none') { $card_roundness = 'lg'; } } @endphp
{{ __('Remaining Credits') }}
@if ($openai->type != 'image')
@if ($openai->type === 'audio')

@lang('Drag and drop an audio file')
@lang('or click here to browse your files.')

@endif @foreach (json_decode($openai->questions) ?? [] as $question) @if ($question->type == 'text') @elseif($question->type == 'textarea') @elseif($question->type == 'select') {!! $question->select !!} @elseif($question->type == 'file') @endif @endforeach @if ($openai->type == 'text') @if (setting('hide_output_length_option') != 1) @endif @if (setting('hide_creativity_option') != 1) @foreach ($creativity_levels as $creativity => $label) @endforeach @endif @include('panel.user.openai.components.countries') @if (setting('hide_tone_of_voice_option') != 1) @foreach ($voice_tones as $tone) @endforeach @endif @endif {{ __('Generate') }}
@endif
@include('panel.user.openai.components.generator_sidebar_table')
@push('script') @if ($openai->type == 'code') @endif @endpush