<option value="{{ $parent->id }}">
    {{ $level ? str_repeat('—', $level) . ' ' : '' }} {{ $parent->translations->first()->name ?? __('Not translated') . ' (' . $parent->id . ')' }}
</option>

@if($parent->children->isNotEmpty())
    @foreach($parent->children as $child)
        @include('daylight::store.categories.partials.option', ['parent' => $child, 'level' => $level + 1])
    @endforeach
@endif
