@extends('layouts.admin') @section('title', __('Knowledge base (JSON)')) @section('content')
{{ __('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())| {{ __('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 |
{{ __('This deletes only the copies in storage. The bundled file in public/data is not removed.') }}