@foreach ($childs as $child)
    <option value="{{ $child->id }}">{{ str_pad('', $level, '-') . ' ' . $child->name }}</option>
    @if (count($child->childs))
        @include('documents.optionChild', [
            'childs' => $child->childs,
            'level' => $level + 1,
        ])
    @endif
@endforeach
