15 lines
530 B
PHP
15 lines
530 B
PHP
@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('auks.optionChildSelected', [
|
|
'childs' => $child->childs,
|
|
'parent_id' => $auk->parent_id,
|
|
'level' => $level + 1,
|
|
])
|
|
@endif
|
|
@endforeach
|