@php $isOtherCategories = isset($category) && ($category->slug == 'ai_vision' || $category->slug == 'ai_pdf' || $category->slug == 'ai_chat_image'); $disable_actions = $app_is_demo && $isOtherCategories; @endphp @extends('panel.layout.app', ['disable_tblr' => true]) @section('title') @php $titles = [ 'ai_vision' => __('Vision AI'), 'ai_pdf' => __('AI File Chat'), 'ai_chat_image' => __('Chat Image'), 'ai_realtime_voice_chat' => __('AI Realtime Voice Chat'), ]; $title = $titles[$category->slug] ?? __('AI Chat'); @endphp {{ $title }} @endsection @section('titlebar_subtitle') @if ($category->slug == 'ai_vision') {{ __('Seamlessly upload any image you want to explore and get insightful conversations.') }} @elseif ($category->slug == 'ai_pdf') {{ __('Simply upload a PDF, find specific information. extract key insights or summarize the entire document.') }} @elseif ($category->slug == 'ai_chat_image') {{ __('Seamlessly generate and craft a diverse array of images without ever leaving your chat environment.') }} @endif @endsection @section('titlebar_actions') @includeWhen(!$isOtherCategories, 'components.select-ai-model-list') {{ __('New') }} @endsection @section('content') @if ($category->slug == 'ai_webchat' && count($list) == 0) @endif
@if (view()->hasSection('chat_sidebar')) @yield('chat_sidebar') @else @include('panel.user.openai_chat.components.chat_sidebar') @endif
@if ($chat != null) @if (view()->hasSection('chat_area_container')) @yield('chat_area_container') @else @include('panel.user.openai_chat.components.chat_area_container') @endif @else
@endif
@if ($category->prompt_prefix != null) @else @endif @endsection @push('script') @include('panel.user.openai_chat.components.chat_js') @endpush