@foreach ($categories as $category)
{{ $category->title }}
@if (!empty($category->children)) @include('tenant.backend.posts.recursive-category', ['categories' => $category->children]) @endif
@endforeach