@extends('layouts.docs') @section('title', translate('Knowledge base', 'knowledgebase')) @section('content')

{{ translate('Knowledge base', 'knowledgebase') }}

@if ($categories->count() > 0)
@foreach ($categories as $category)
{{ $category->name }}
{{ $category->name }}

@if ($category->articles_count == 1) {{ str(translate('{count} Topic', 'knowledgebase'))->replace('{count}', $category->articles_count) }} @else {{ str(translate('{count} Topics', 'knowledgebase'))->replace('{count}', $category->articles_count) }} @endif

@foreach ($category->articles as $article) {{ $article->title }} @endforeach
@endforeach
@else @include('partials.empty') @endif @endsection