@isset($current_category)
    <p class="{{!$current_category->parent_id ? 'h3' : ''}}">
    @if ($current_category->parent_id)
        {!!str_repeat('&nbsp;', $depth * 5)!!} <!--⋅-->
        @endif
        @if (count($current_category->subcats))
            {{$current_category->name}}
        @else
            <a href="{{route('admin.products.index', ['category_id' => $current_category->id])}}"
               class="{{ request('category_id') == $current_category->id ? 'font-bold' : '' }}">
                {{$current_category->name}}
            </a>
        @endif
    </p>
@endif

@if (!empty($categories) && count($categories))
    @foreach ($categories as $current_category)

        @include('admin.category.items_simple', ['categories' => $current_category->subcats, 'current_category' => $current_category, 'depth' => $current_category->depth ])
    @endforeach
@endif