@extends('admin.layout') @section('title', 'Aprilo AI - Knowledge Base') @section('content')
Knowledge operations

Knowledge Base

Upload approved HR knowledge. Indexed sources are used by the customer-facing Aprilo AI question experience.

@csrf
@forelse ($sources as $source) @php $pillStyle = match($source->status) { 'indexed' => 'background: rgba(46, 204, 113, 0.15); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.3); padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase;', 'failed' => 'background: rgba(231, 76, 60, 0.15); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.3); padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase;', 'indexing', 'uploaded' => 'background: rgba(241, 196, 15, 0.15); color: #f1c40f; border: 1px solid rgba(241, 196, 15, 0.3); padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase;', 'inactive' => 'background: rgba(149, 165, 166, 0.15); color: #7f8c8d; border: 1px solid rgba(149, 165, 166, 0.3); padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase;', default => 'background: rgba(149, 165, 166, 0.15); color: #7f8c8d; padding: 2px 8px; border-radius: 99px; font-size: 11px;' }; @endphp @empty @endforelse
Title Type Status Chunks Scope
{{ $source->title }} @if (!empty($source->metadata['version']) && $source->metadata['version'] > 1) (v{{ $source->metadata['version'] }}) @endif {{ $source->source_type }} {{ $source->status }} @if ($source->status === 'failed' && !empty($source->metadata['indexing_error']))
⚠️ {{ $source->metadata['indexing_error'] }}
@endif
{{ $source->chunks_count }} {{ str_replace('_', ' ', $source->access_scope) }}
No sources uploaded yet.
Widget Simulator
{{ $settings->chatbot_icon === 'robot' ? '🤖' : ($settings->chatbot_icon === 'support' ? '👤' : ($settings->chatbot_icon === 'star' ? '✨' : '💬')) }}
{{ $settings->assistant_name ?: 'Aprilo Bot' }}
Active & Live
Hi! I am {{ $settings->assistant_name ?: 'Aprilo Bot' }}. How can I assist you with HR policies today?
@endsection