Continue MMC
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
|
||||
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
|
||||
<div class="p-6 bg-white border-b border-gray-200">
|
||||
<div class="flex flex-row">
|
||||
{{-- <div class="flex flex-row">
|
||||
<div class="basis-1/2">
|
||||
<a href="{{ route('mmc.create') }}">
|
||||
<button
|
||||
@@ -32,11 +32,67 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div align="center" class="pt-4">
|
||||
TODO: MMC table
|
||||
<div align="center" class="pt-4"> --}}
|
||||
{{-- <div class="w-96 mx-auto">
|
||||
|
||||
<div>
|
||||
<x-label for="auk_id" :value="__('Select AUK')" />
|
||||
|
||||
<x-select id="auk_id" class="block mt-1 w-full" name="auk_id" required>
|
||||
@foreach ($top_auks as $auks)
|
||||
<option value="{{ $auks->id }}">{{ $auks->auk_name }}
|
||||
({{ $auks->auk_path }})
|
||||
</option>
|
||||
@if (count($auks->childs))
|
||||
@include('mmc.optionChild', [
|
||||
'childs' => $auks->childs,
|
||||
'level' => 1,
|
||||
])
|
||||
@endif
|
||||
@endforeach
|
||||
</x-select>
|
||||
</div>
|
||||
</div> --}}
|
||||
<div align="center">
|
||||
<h3>Выберите АУК:</h3>
|
||||
<table class="table table-sm border-b border-gray-200">
|
||||
<tr class="p-2 border border-gray-200 text-center">
|
||||
<th class="p-2 border border-gray-200 text-center">AUK Title</th>
|
||||
<th class="p-2 border border-gray-200 text-center">MMC</th>
|
||||
</tr>
|
||||
@forelse ($top_auks as $top_auk)
|
||||
<tr class="p-2 border border-gray-200 text-center">
|
||||
<td>{{ $top_auk->auk_name }}</td>
|
||||
<td>
|
||||
<table>
|
||||
{{-- @forelse ($top_auk->mmcs as $mmc)
|
||||
<tr>
|
||||
<td>{{ $mmc->filename }}</td>
|
||||
</tr>
|
||||
|
||||
@empty
|
||||
<tr>
|
||||
<td>No MMC</td>
|
||||
</tr>
|
||||
|
||||
@endforelse --}}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
@if (count($top_auk->childs))
|
||||
@include('mmc.tableAukChild', [
|
||||
'childs' => $top_auk->childs,
|
||||
'level' => 1,
|
||||
])
|
||||
@endif
|
||||
@empty
|
||||
<tr class="p-2 border border-gray-200 text-center">
|
||||
<td colspan="2">No AUK</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</table>
|
||||
</div>
|
||||
{{-- </div> --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user