@extends('layouts.app') @section('title', $kb->title) @section('content')
{{-- Konten --}}
Konten Knowledge Base
{{ $kb->formatted_char_count }} · ~{{ number_format($kb->token_estimate) }} token
{{ $kb->processed_content }}
@if($kb->source_type === 'url' && $kb->source_url) @endif
{{-- Info panel --}}
Informasi
@if($kb->summary)
Ringkasan
{{ $kb->summary }}
@endif
Sumber
@if($kb->source_type === 'pdf')
{{ basename($kb->source_file ?? 'PDF') }}
@elseif($kb->source_type === 'url') {{ Str::limit($kb->source_url, 50) }} @else Input Manual @endif
Kategori
{{ $kb->category_label }}
@if($kb->tags && count($kb->tags))
Tags
@foreach($kb->tags as $tag) {{ $tag }} @endforeach
@endif
Ukuran Konten
{{ $kb->formatted_char_count }}
~{{ number_format($kb->token_estimate) }} token estimasi
Status
{{ $kb->is_active ? 'Aktif' : 'Nonaktif' }} {{ $kb->use_in_chatbot ? '🤖 Di Chatbot' : 'Tidak di Chatbot' }}
@if($kb->last_scraped_at)
Terakhir Discrape
{{ $kb->last_scraped_at->locale('id')->isoFormat('D MMM YYYY, HH:mm') }}
@endif
Dibuat
{{ $kb->created_at->locale('id')->isoFormat('D MMM YYYY') }} @if($kb->createdBy) · {{ $kb->createdBy->name }} @endif
{{-- Quick actions --}}
Aksi
@csrf
@csrf
@can('delete kb')
@csrf @method('DELETE')
@endcan
@endsection