@extends('layouts.app') @section('title', __('essentials::lang.knowledge_base')) @section('content') @include('essentials::layouts.nav_essentials')

@lang('essentials::lang.knowledge_base')

@foreach($knowledge_bases as $kb)

{{$kb->title}}

@if(auth()->user()->can('essentials.edit_knowledge_base')) @endif @if(auth()->user()->can('essentials.delete_knowledge_base')) @endif
{!! $kb->content !!} @if(count($kb->children) > 0)
@foreach($kb->children as $section)

index == 0 )aria-expanded="true" @endif>{{$section->title}}

@if(auth()->user()->can('essentials.edit_knowledge_base')) @endif @if(auth()->user()->can('essentials.delete_knowledge_base')) @endif
index == 0 )aria-expanded="true" @endif >
{!!$section->content!!} @if(count($section->children) > 0)
    @foreach($section->children as $article)
  • {{$article->title}}
    @if(auth()->user()->can('essentials.edit_knowledge_base')) @endif @if(auth()->user()->can('essentials.edit_knowledge_base')) @endif
  • @endforeach
@endif
@endforeach
@endif
@if($loop->iteration%3 == 0)
@endif @endforeach
@endsection @section('javascript') @endsection