Documents ready
This commit is contained in:
16
resources/views/documents/tableChild.blade.php
Normal file
16
resources/views/documents/tableChild.blade.php
Normal file
@@ -0,0 +1,16 @@
|
||||
@foreach ($childs as $child)
|
||||
<tr>
|
||||
<td class="p-2 border border-gray-200">
|
||||
{{ str_pad('', $level, '-') . ' ' . $child->name }}
|
||||
</td>
|
||||
<td class="p-2 border border-gray-200">
|
||||
@include('documents.actions', ['document' => $child])
|
||||
</td>
|
||||
</tr>
|
||||
@if (count($child->childs))
|
||||
@include('documents.tableChild', [
|
||||
'childs' => $child->childs,
|
||||
'level' => $level + 1,
|
||||
])
|
||||
@endif
|
||||
@endforeach
|
||||
Reference in New Issue
Block a user