@extends('layouts.app') @section('title', 'Knowledge base') @section('content')

Knowledge base

{{ $articles->total() }} article(s). Internal runbooks stay hidden from customers.

+ New article
@include('components.kpi', ['label' => 'Published', 'value' => (string) $totals['published'], 'variant' => 'good']) @include('components.kpi', ['label' => 'Drafts', 'value' => (string) $totals['drafts'], 'variant' => $totals['drafts'] ? 'warn' : '']) @include('components.kpi', ['label' => 'Total views', 'value' => number_format($totals['views']), 'variant' => 'info'])
@if ($articles->isEmpty()) @include('components.empty-state', [ 'icon' => '📚', 'title' => 'No articles yet', 'message' => 'Write the first troubleshooting guide so support stops answering the same question twice.', ]) @else @foreach ($articles as $article) @endforeach
TitleCategoryAudienceStatus ViewsHelpfulUpdated
{{ $article->title }} @if ($article->tags)
@foreach (array_slice($article->tags, 0, 4) as $tag) {{ $tag }} @endforeach
@endif
{{ $article->category ? title_case_words($article->category) : '—' }} {{ title_case_words($article->audience) }} {{ title_case_words($article->status) }} {{ number_format($article->views) }} {{ number_format($article->helpful_count) }} {{ $article->updated_at?->diffForHumans() }} Open Edit
@endif
@if ($articles->hasPages())
{{ $articles->links('partials.pagination') }}
@endif
@endsection