Files
mmc_info/resources/views/auks/optionChildSelected.blade.php
Александр Бабкин 12e0611c4c Update AUK edit
2022-07-13 08:46:26 +03:00

17 lines
608 B
PHP

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