{{ __('app.ai_content_studio') }}
{{ __('app.ai_content_studio_subheading') }}
{{ $ai_creator_help ?? __('app.chatGPT_help') }}
{{ __('app.configuration') }}
Purpose
Marketing Campaign
Newsletter
Cold Outreach
Follow-Up
Transactional
Announcement
Support
Sales
Other
Tone
Professional
Friendly / Casual
Persuasive / Sales
Formal
Human
Other
Target Audience
Customers
Leads
Subscribers
Business Owners
Developer
Corporate
Other
Content Length
Short
Medium
Long
Objective
Get Reply
Get Clicks
Inform Only
Sell
Engagement
Other
@if(!empty($chatGPT_response['is_error']) && !empty($chatGPT_response['error_message']))
{{ __('app.ai_provider_error_title') }}
{{ $chatGPT_response['error_message'] }}
@endif @php $briefTextareaValue = ''; $showEmptyAiHint = false; if (is_array($chatGPT_response ?? null)) { if (!empty($chatGPT_response['is_error'])) { // Error: keep what the user had (posted brief_notes, or extract from studio prompt). if ($briefNotes !== null) { $briefTextareaValue = $briefNotes; } else { $extracted = \App\Http\Helper\Helper::extractBriefNotesFromAiStudioPrompt($chatGPT_response['original'] ?? ''); $briefTextareaValue = $extracted !== null ? $extracted : ''; } } else { // Success: show OpenAI / Gemini output exactly as returned. $briefTextareaValue = (string) ($chatGPT_response['improved'] ?? ''); $showEmptyAiHint = !empty($chatGPT_response['empty_response']); } } @endphp @if($showEmptyAiHint)
{{ __('app.ai_no_response_help') }}
@endif
Brief / Notes
{{ $briefTextareaValue }}