<li>
    {{ str_repeat('|--',$category->depth) . $category->name }} ({{ $category->id }})
    @if ($category->children->count())
    <ul>
    @foreach ($category->children as $child)
        @include('news.elements.category-item', ['category'=>$child])
    @endforeach
    </ul>
    @endif
</li>