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,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