@php $prompt_filters = [ 'all' => 'All', 'favorite' => 'Favorite', ]; @endphp
{{-- using form element cause issues in webchat after analyzing a website --}}
@csrf
slug != 'ai_vision' && $category->slug != 'ai_pdf') accept="image/*" @endif /> {{ __('Options') }} $category->slug !== 'ai_pdf', ]) container-class="w-full" type="textarea" placeholder="{{ __('Type a message') }}" name="prompt" rows="1" x-model="prompt" x-ref="prompt" ::bind="prompt" />
$category->slug !== 'ai_pdf', 'hidden' => $category->slug === 'ai_pdf', ])>
@if (setting('user_prompt_library') == null || setting('user_prompt_library'))
$category->slug === 'ai_pdf', ])>
@endif {{-- Brand Voice --}}
{{ __('Brand Voice') }}
@foreach (auth()->user()->getCompanies() ?? [] as $company) @endforeach
{{ __('Cancel') }} {{ __('Done') }}
@php $planId = getCurrentActiveSubscription()?->plan_id ?? 0; if ($planId) { $models = \App\Models\AiModel::query() ->whereHas('aiFinance', function ($query) use ($planId) { $query->where('plan_id', $planId); }) ->whereHas('tokens', function ($query) { $query->where('type', 'word'); }) ->get(); }else { $models = \App\Models\AiModel::query() ->where('is_selected', 1) ->whereHas('tokens', function ($query) { $query->where('type', 'word'); }) ->get(); } @endphp @if($models->count()) {{-- Chatbot front model --}}
{{ __('Chatbot model') }}
@foreach($models as $model) @endforeach {{-- @foreach (auth()->user()->getCompanies() ?? [] as $company)--}} {{-- --}} {{-- {{ $company->name }}--}} {{-- --}} {{-- @endforeach--}}
{{ __('Cancel') }} {{ __('Done') }}
@endif
{{-- Record Audio --}}
@include('panel.user.openai_chat.components.prompt_library_modal')