@extends('setting::backend.setting.index') @section('settings-content')
@csrf

{{ __('setting_integration_page.app_configuration') }}

{{ html()->checkbox('is_blog', old('is_blog', $settings['is_blog'] ?? 0) == 1, 1) ->class('form-check-input') ->id('category-enable_blog') }}
{{ html()->checkbox('is_user_push_notification', old('is_user_push_notification', $settings['is_user_push_notification'] ?? 0) == 1, 1) ->class('form-check-input') ->id('category-enable_user_push_notification') }}
{{ html()->checkbox('is_provider_push_notification', old('is_provider_push_notification', $settings['is_provider_push_notification'] ?? 0) == 1, 1) ->class('form-check-input') ->id('category-enable_provider_push_notification') }}
{{ html()->checkbox('enable_chat_gpt', old('enable_chat_gpt', $settings['enable_chat_gpt'] ?? 0) == 1, 1) ->class('form-check-input') ->id('category-enable_chat_gpt') ->attribute('onclick', 'toggleChatGptFields()') }}
{{ html()->checkbox('test_without_key', old('test_without_key', $settings['test_without_key'] ?? 1) == 1, 1) ->class('form-check-input') ->id('category-test_without_key') ->attribute('onclick', 'toggleTestKeyField()') }}
{{ html()->text('chatgpt_key', old('chatgpt_key', $settings['chatgpt_key'] ?? '')) ->class('form-control') ->id('chatgpt_key') }} @error('chatgpt_key')

{{ $message }}

@enderror
{{ html()->checkbox('firebase_notification', old('firebase_notification', $settings['firebase_notification'] ?? 0) == 1, 1) ->class('form-check-input') ->id('category-firebase_notification') ->attribute('onclick', 'toggleFirebaseKeyField()') }}
{{ html()->text('firebase_key', old('firebase_key', $settings['firebase_key'] ?? '')) ->class('form-control') ->id('firebase_key') }} @error('firebase_key')

{{ $message }}

@enderror
@endsection @push('after-scripts') @endpush