@php
use App\Helpers\Classes\MarketplaceHelper;$disable_actions = $app_is_demo;
$is_search = $is_search ?? false;
$showFolders = false;
$currentUrl = url()->current();
$currentPath = trim(parse_url($currentUrl, PHP_URL_PATH) ?: '');
if (
MarketplaceHelper::isRegistered('ai-chat-pro-folders') &&
(
MarketplaceHelper::isRegistered('ai-chat-pro') &&
(
str_starts_with($currentPath, '/chat') ||
str_starts_with($currentPath, '/dashboard/user/openai/chat/pro/') ||
! auth()->check()
)
)
)
{
$showFolders = true;
}
@endphp
@if ($showFolders)
@includeIf('ai-chat-pro-folders::components.chat_sidebar_folders', ['list' => $list, 'is_search' => $is_search])
@else
@foreach ($list as $entry)
- $entry->is_pinned,
'active' => isset($chat) && $chat->id == $entry->id,
])
>
{{ __($entry->title) }}
{{ $entry->updated_at->diffForHumans() }}
@if ($entry->reference_url != '')
{{ __($entry->doc_name) }}
@endif
@if ($entry->website_url != '')
{{ __($entry->website_url) }}
@endif
@endforeach
@endif