@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
{{ __('DALL-E') }} @if (setting('stable_hidden', 0) != 1) {{ __('Stable Diffusion') }} @endif

{{ __('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') }}
@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)
{{ $item->response }}

{{ $item->input }}

@endforeach
@if ($userOpenai->count() > 0)
{{ __('Loading more') }} @foreach ([0, 1, 2] as $item) @endforeach
@endif {{-- Image modal --}}
@push('script') @endpush