@php $items_per_page = 5; $total_items = $userOpenai->total(); $prompt_filters = [ 'all' => 'All', 'favorite' => 'Favorite', ]; $ai_tools = [ [ 'title' => 'Sketch to Image', 'desc' => 'Transform your ideas into reality.', 'icon' => ' ', 'color' => '#F1F1F0', ], [ 'title' => 'Reimagine', 'desc' => 'Generate similar variants easily.', 'icon' => ' ', 'color' => '#C2EBF8', ], [ 'title' => 'Upscale', 'desc' => 'Enlarge your images by 4x easily.', 'icon' => ' ', 'color' => '#EDF4F2', ], [ 'title' => 'Replace BG', 'desc' => 'Change the background of anyimage.', 'icon' => ' ', 'color' => '#FEF3DE', ], [ 'title' => 'Remove BG', 'desc' => 'Extract the main object/subject.', 'icon' => ' ', 'color' => '#DEFFEF', ], [ 'title' => 'Remove Text', 'desc' => 'Change or remove text.', 'icon' => ' ', 'color' => '#F7DEFE', ], ]; @endphp
@if (setting('dalle_hidden', 0) != 1) {{ __('DALL-E') }} @endif @if (setting('stable_hidden', 0) != 1) {{ __('Stable Diffusion') }} @endif @if(\App\Helpers\Classes\Helper::setFalAIKey()) @includeWhen(\Illuminate\Support\Facades\Route::has('dashboard.admin.settings.fal-ai'),viewName('panel.user.openai.includes.flux-pro-tab')) @endif
@if (setting('dalle_hidden', 0) != 1)

{{ __('Explain your idea') }}. | @if (setting('user_ai_image_prompt_library') == null || setting('user_ai_image_prompt_library')) @endif

@foreach (json_decode($openai->questions) ?? [] as $question) @if ($question->type == 'textarea') @endif @endforeach {{ __('Generate') }}
{{ __('Advanced Settings') }}
@endif @if(\App\Helpers\Classes\Helper::setFalAIKey()) @includeWhen(\Illuminate\Support\Facades\Route::has('dashboard.admin.settings.fal-ai'),viewName('panel.user.openai.includes.flux-pro-tab-body')) @endif @include('panel.user.openai_chat.components.prompt_library_modal')
@if (Route::has('dashboard.user.photo-studio.index') && setting('photo_studio', 1) == 1)
@foreach ($ai_tools as $tool)
{!! $tool['icon'] !!}

{{ __($tool['title']) }}

{{ __($tool['desc']) }}

{{ $tool['title'] }}
@endforeach
@endif

{{ __('Result') }}

@foreach ($userOpenai->take($items_per_page) as $item)
request_id ? 'data-request-id='.$item->request_id : '' }} class="image-result lqd-loading-skeleton group w-full" data-id="{{ $item->id }}" data-generator="{{ str()->lower($item->response) }}" >
{{ $item->response }}

{{ $item->input }}

@endforeach
@if ($userOpenai->count() > 0)
{{ __('Loading more') }} @foreach ([0, 1, 2] as $item) @endforeach
@endif
@push('script') @includeWhen(\Illuminate\Support\Facades\Route::has('dashboard.admin.settings.fal-ai'),viewName('panel.user.openai.includes.flux-pro-script')) @endpush