Documents ready
This commit is contained in:
14
resources/views/documents/optionChildSelected.blade.php
Normal file
14
resources/views/documents/optionChildSelected.blade.php
Normal 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
|
||||
Reference in New Issue
Block a user