@php $currentUrl = url()->current(); $previousUrl = url()->previous(); $is_chat_pro = \App\Helpers\Classes\MarketplaceHelper::isRegistered('ai-chat-pro') && (route('dashboard.user.openai.chat.pro.index') === $currentUrl || route('chat.pro') === $currentUrl || route('dashboard.user.openai.chat.pro.index') === $previousUrl || route('chat.pro') === $previousUrl); $isOtherCategories = isset($category) && ($category->slug == 'ai_vision' || $category->slug == 'ai_pdf' || $category->slug == 'ai_chat_image'); @endphp
@if ($category->slug === 'ai-chat-bot') {{ __($category->name) }} @elseif ($category->image) {{ __($category->name) }} @else {{ __($category->short_name) }} @endif {{ $category->name }} @if ($category->role != '') {{ __($category->role) }} @endif
@foreach ($generators ?? [] as $generator)
@if ($generator->slug === 'ai-chat-bot') {{ __($generator->name) }} @elseif ($generator->image) {{ __($generator->name) }} @else {{ __($generator->short_name) }} @endif

{{ $generator->name }}

{{ $generator->description }}

@if ($generator->plan === 'premium') {{-- blade-formatter-disable --}} {{-- blade-formatter-enable --}} {{ __('Premium') }} @endif
@endforeach
@if (!$isOtherCategories && $is_chat_pro) @endif @includeFirst( ['chat-share::share-button-include', 'panel.user.openai_chat.includes.share-button-include', 'vendor.empty'], [ 'trigger_icon' => '', 'trigger_label' => __('Share Chat'), ] ) @if (view()->hasSection('chat_head_actions')) @yield('chat_head_actions') @else @php $realtimeHiddenIn = ['ai_pdf', 'ai_vision', 'ai_chat_image']; @endphp @endif
@if (view()->hasSection('chat_sidebar_actions')) @yield('chat_sidebar_actions') @else @if (isset($category) && $category->slug == 'ai_pdf') {{-- #selectDocInput is present in chat_sidebar component. no need to duplicate it here --}} {{ __('Upload Document') }} @else {{ __('New Conversation') }} @endif
@endif