@isset($current_category)
    <option value="{{$current_category->id}}" {{ $category->parent_id == $current_category->id ? 'selected=selected' : '' }}>
    @if ($current_category->parent_id)
        {{str_repeat('-', $depth * 5)}} <!--⋅-->

        @endif
        {{$current_category->name}}
    </option>
@endif

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

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

    @endforeach
@endif