@if ($generator->slug === 'ai-chat-bot')
 }})
@elseif ($generator->image)
 }})
@else
{{ __($generator->short_name) }}
@endif
@if ($generator->plan === 'premium')
@endif
@php
if (\App\Helpers\Classes\MarketplaceHelper::isRegistered('ai-chat-pro')) {
$currentUrl = url()->current();
if (Str::is('*/chat/pro/*', $currentUrl)) {
$route = 'dashboard.user.openai.chat.pro.index';
} elseif (Str::is('*/chat/*', $currentUrl) || Str::is('*/chat', $currentUrl)) {
$route = 'chat.pro';
} else {
$route = 'dashboard.user.openai.chat.chat';
}
} else {
$route = 'dashboard.user.openai.chat.chat';
}
$lastRoute = auth()->check() ? $route : 'chat.pro';
@endphp