@extends('layouts.admin') @section('title', __('Knowledge base (JSON)')) @section('content')

{{ __('Knowledge base (JSON)') }}

{{ __('Upload a JSON array of objects with question, answer, tags (array), category, optional similar, and optional source (citation, e.g. Scripture or document title).') }}

{{ __('If the assistant page fails after upload, check :path for lines starting with “KnowledgeBase”.', ['path' => 'storage/logs/laravel.log']) }}

@if($errors->any())
@endif
{{ __('Current data (effective)') }}
{{ __('English entries (resolved)') }} {{ $effectiveEnCount ?? '—' }}
{{ __('Arabic entries (resolved)') }} {{ $effectiveArCount ?? '—' }}
{{ __('Custom file (default / English)') }} @if($storageDefaultExists) {{ __('Yes') }} — {{ __('last updated') }} {{ \Carbon\Carbon::createFromTimestamp($storageDefaultUpdated)->toDateTimeString() }} @else {{ __('No (using public default)') }} @endif
{{ __('Custom file (Arabic)') }} @if($storageArExists) {{ __('Yes') }} — {{ __('last updated') }} {{ \Carbon\Carbon::createFromTimestamp($storageArUpdated)->toDateTimeString() }} @else {{ __('No (using public default)') }} @endif
{{ __('Upload JSON') }}
@csrf
{{ __('Max 10 MB. Must be a JSON array.') }}
{{ __('Remove uploaded files') }}

{{ __('This deletes only the copies in storage. The bundled file in public/data is not removed.') }}

@csrf
@csrf
@csrf
@endsection