@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
@include('panel.user.openai_chat.components.chat_category_dropdown')
@if (!$isOtherCategories && $is_chat_pro) @endif @includeFirst(['chat-share::share-button-include', 'panel.user.openai_chat.includes.share-button-include', 'vendor.empty']) @if (view()->hasSection('chat_head_actions')) @yield('chat_head_actions') @else @php $realtimeHiddenIn = ['ai_pdf', 'ai_vision', 'ai_chat_image']; @endphp @auth @else @endauth @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