@extends('user.layout') @section('content')
{{-- AI Engine Credentials --}} @php $hasAiFeature = true; if (!empty($features) && is_array($features)) { foreach ($features as $f) { $fLower = strtolower((string)$f); if (str_contains($fLower, 'ai') || str_contains($fLower, 'generator')) { $hasAiFeature = true; break; } } } @endphp @if ($hasAiFeature)
{{ __('AI Engine API Keys') }}
@csrf
@php $engineInfo = \App\Http\Helpers\AiEngineHelper::resolveActiveEngine(); $currentEngine = $userBs->ai_engine ?? ($engineInfo['actual'] ?? 'gemini'); @endphp
{{ __('Current') }}: {{ $engineInfo['display'] }}

{{ __('Select which AI engine your store should use for generating content, product descriptions, and slider images.') }}

@php $userGeminiKey = (empty($userBs->gemini_api_key) || str_contains($userBs->gemini_api_key, 'XXXX')) ? '' : $userBs->gemini_api_key; $userOpenAiKey = (empty($userBs->openai_api_key) || str_contains($userBs->openai_api_key, 'XXXX')) ? '' : $userBs->openai_api_key; $isGeminiActive = ($userBs->is_gemini ?? 0) == 1; $isOpenAiActive = ($userBs->is_openai ?? 0) == 1; @endphp

{{ __('Enter your Gemini API key to override system key for content & image generation.') }}

{{ __('Enter your OpenAI API key to override system key for content & image generation.') }}

@endif {{-- Disqus --}} @if (in_array('Disqus', $features))
{{ __('Disqus') }}
@csrf
@if ($errors->has('is_disqus'))

{{ $errors->first('is_disqus') }}

@endif
@if ($errors->has('disqus_shortname'))

{{ $errors->first('disqus_shortname') }}

@endif
@endif @if (in_array('Google Analytics', $features)) {{-- Google Analytics --}}
{{ __('Google Analytics') }}
@csrf
@if ($errors->has('is_analytics'))

{{ $errors->first('is_analytics') }}

@endif
@if ($errors->has('measurement_id'))

{{ $errors->first('measurement_id') }}

@endif
@endif @if (in_array('Tawk to', $features)) {{-- tawk.to --}}
{{ __('Tawk.to') }}
@csrf

{{ __('If you enable Tawk.to, then WhatsApp must be disabled.') }}

@if ($errors->has('is_tawkto'))

{{ $errors->first('is_tawkto') }}

@endif
@if ($errors->has('tak_to_property_id'))

{{ $errors->first('tak_to_property_id') }}

@endif
@if ($errors->has('tak_to_widget_id'))

{{ $errors->first('tak_to_widget_id') }}

@endif
@endif @if (in_array('Google Login', $features)) {{-- Google Login --}}
{{ __('Google Login') }}
@csrf
@if ($errors->has('is_google_login'))

{{ $errors->first('is_google_login') }}

@endif
@if ($errors->has('google_client_id'))

{{ $errors->first('google_client_id') }}

@endif
@if ($errors->has('google_client_secret'))

{{ $errors->first('google_client_secret') }}

@endif

{{ __('Google Client ID & Client Secret are required for Google Login.') }}

@endif @if (in_array('Google Recaptcha', $features)) {{-- Google rechaptcha --}}
{{ __('Google Recaptcha') }}
@csrf
@if ($errors->has('is_recaptcha'))

{{ $errors->first('is_recaptcha') }}

@endif
@if ($errors->has('google_recaptcha_site_key'))

{{ $errors->first('google_recaptcha_site_key') }}

@endif
@if ($errors->has('google_recaptcha_secret_key'))

{{ $errors->first('google_recaptcha_secret_key') }}

@endif
@endif @if (in_array('Facebook Pixel', $features)) {{-- Facebook Pixel --}}
{{ __('Facebook Pixel') }}
@csrf

Hint: {{ __('Click Here') }} {{ __('to see where to get the Facebook Pixel ID') }}

@if ($errors->has('is_facebook_pixel'))

{{ $errors->first('is_facebook_pixel') }}

@endif

@if ($errors->has('pixel_id'))

{{ $errors->first('pixel_id') }}

@endif
@endif @if (in_array('WhatsApp Chat Button', $features) || (Auth::check() && Auth::user()->whatsapp_status == 1)) {{-- Whatsapp Chat Button --}}
{{ __('WhatsApp Chat Button') }}
@csrf

{{ __('If you enable WhatsApp, then Tawk.to must be disabled.') }}

{{ __('Enter Phone number with Country Code') }}

@if ($errors->has('whatsapp_header_title'))

{{ $errors->first('whatsapp_header_title') }}

@endif
@if ($errors->has('whatsapp_popup_message'))

{{ $errors->first('whatsapp_popup_message') }}

@endif
@if ($errors->has('whatsapp_popup'))

{{ $errors->first('whatsapp_popup') }}

@endif
@endif
@endsection @section('scripts') @endsection