Files
mmc_info/resources/views/mmc/tableAukChild.blade.php
Александр Бабкин ba97a6afc1 MMC alpha ready
2022-07-14 17:00:24 +03:00

37 lines
1.2 KiB
PHP

@foreach ($childs as $child)
<tr class="p-2 border border-gray-200 text-left">
<td class="p-2 border border-gray-200 text-center">
{{ str_pad('', $level, '-') . ' ' . $child->auk_name }}
</td>
<td>
<table>
@forelse ($child->mmcs as $mmc)
<tr>
<td>{{ $mmc->filename }}</td>
</tr>
@empty
<tr>
<td>No MMC
<a href="{{ route('mmc.scan',$top_auk->id) }}" class="pl-2">
<button
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full">
<i class="fa fa-search pr-2"></i>{{ __('Scan mmc') }}
</button>
</a>
</td>
</tr>
@endforelse
</table>
</td>
</tr>
@if (count($child->childs))
@include('mmc.tableAukChild', [
'childs' => $top_auk->childs,
'level' => $level + 1,
])
@endif
@endforeach