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