Documents ready

This commit is contained in:
Александр Бабкин
2022-07-04 14:53:54 +03:00
parent 62482b624d
commit 621b1fd677
12 changed files with 254 additions and 139 deletions

View File

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