@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']; $youtube_actions = [ 'blog' => 'Prepare a Blog Post', 'short' => 'Explain the Main Idea', 'list' => 'Create a List', 'tldr' => 'Create TLDR', 'prons_cons' => 'Prepare Pros and Cons', ]; @endphp @extends('panel.layout.app', ['disable_tblr' => true]) @section('title', __($openai->title)) @section('titlebar_subtitle') @if ($openai->type == 'code') {{ __('Generate high quality code in seconds.') }} @elseif(isset($openai->description)) {{ __($openai->description) }} @endif @endsection @section('content')
{{ __('Remaining Credits') }}
@if ($openai->type != 'code')
@endif @foreach (json_decode($openai->questions) ?? [] as $question) @php $placeholder = isset($question->description) && !empty($question->description) ? __($question->description) : __($question->question); @endphp @if ($question->type === 'select') @foreach ($question->selectListValues ?? [] as $input) @endforeach @endif @if ($question->type === 'rss_feed') @endif @endforeach @if ($openai->type == 'youtube') @foreach ($youtube_actions as $value => $label) @endforeach @endif @switch($openai->type) @case('youtube') @case('text') @case('rss') @include('panel.user.openai.components.countries') @if (setting('hide_output_length_option') != 1) @endif @if (setting('hide_creativity_option') != 1) @foreach ($creativity_levels as $creativity => $label) @endforeach @endif @if (setting('hide_tone_of_voice_option') != 1) @foreach ($voice_tones as $tone) @endforeach @endif @break @default @endswitch {{ __('Generate') }}
Theme::getSetting('defaultVariations.card.variant', 'outline') === 'outline', ]) variant="{{ Theme::getSetting('defaultVariations.card.variant', 'outline') === 'outline' ? 'none' : Theme::getSetting('defaultVariations.card.variant', 'solid') }}" size="{{ Theme::getSetting('defaultVariations.card.variant', 'outline') === 'outline' ? 'none' : Theme::getSetting('defaultVariations.card.size', 'md') }}" roundness="{{ Theme::getSetting('defaultVariations.card.roundness', 'default') === 'default' ? 'none' : Theme::getSetting('defaultVariations.card.roundness', 'default') }}" >
@include('panel.user.openai.components.workbook-actions', [ 'type' => $openai->type, 'title' => $openai->title, 'slug' => $openai->slug, 'output' => $openai->output, 'is_generated_doc' => true, ])
{{-- --}} @if ($openai->type == 'code')
...
@else
@endif
@endsection @push('script') @if ($openai->type == 'code') @endif @if ($openai->type == 'rss') @endif @endpush