{{ __('Train your AI with documents, websites, and Q&A pairs') }}
{{ $stats['documents'] }}
{{ __('Documents') }}
{{ $stats['qa_pairs'] }}
{{ __('Q&A Pairs') }}
{{ $stats['websites'] }}
{{ __('URLs') }}
{{ number_format($stats['total_chunks']) }}
{{ __('Indexed Sections') }}
{{ __('PDF, DOCX, TXT, CSV, XLSX (Max 25MB)') }}
{{ $message }}
@enderror @if($documents->count() > 0) {{-- overflow-visible so the action-menu dropdown (teleported to body below, but the stacking context still matters for focus) isn't clipped --}}| {{ __('Name') }} | {{ __('Status') }} | |
|---|---|---|
@php $tc = match($doc->file_type) { 'pdf' => 'bg-danger/15 text-danger', 'docx' => 'bg-info/15 text-blue-600', 'xlsx' => 'bg-success/15 text-success', default => 'bg-surface text-muted ' }; @endphp
{{ strtoupper($doc->file_type ?? 'DOC') }}
{{ $doc->title }}
|
@php $sc = match($doc->status) { 'ready' => 'bg-success/15 text-success', 'failed' => 'bg-danger/15 text-danger', default => 'bg-warning/15 text-warning' }; @endphp
@if(in_array($doc->status, ['uploading','extracting','chunking','embedding']))
@elseif($doc->status==='ready')
@endif {{ ucfirst($doc->status) }}
@if($doc->error_message) {{ $doc->error_message }} @endif |
{{-- Teleported dropdown: same pattern as workflow-list.
Menu renders at so it can never be clipped
by the table's overflow rules or rounded corners. --}}
|
{{ $message }}
@enderror{{ $site->source_url ?? $site->title }}
{{ $site->chunks_count ?? 0 }} chunks · {{ $site->created_at->diffForHumans() }}
{{ $qa->question }}
{{ $qa->answer }}