85 lines
5.1 KiB
PHP
85 lines
5.1 KiB
PHP
<x-app-layout>
|
||
<x-slot name="header">
|
||
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
|
||
<div class="flex flex-row">
|
||
<div class="basis-1/2">
|
||
{{ $project->name }}: {{ __('MMC List') }}
|
||
</div>
|
||
</div>
|
||
</h2>
|
||
</x-slot>
|
||
|
||
<div class="py-12">
|
||
<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 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 class="p-2 border border-gray-200 text-left align-top">
|
||
{{ $top_auk->auk_name }}</td>
|
||
<td class="p-2 border border-gray-200 text-center">
|
||
@if (count($top_auk->mmcs))
|
||
{{-- <tr>
|
||
<td class="p-1 border border-gray-200 text-xs">
|
||
{{ $mmc->filename }}</td>
|
||
<td class="p-1 border border-gray-200 text-xs">{{ $mmc['size'] }}
|
||
</td>
|
||
<td class="p-1 border border-gray-200 text-xs">
|
||
{{ date('d.m.Y H:i:s', $mmc['mtime']) }}</td>
|
||
<td>
|
||
@if (strcasecmp(substr($mmc->filename, -3, 3), 'jpg') == 0)
|
||
<img height="50"
|
||
src="{{ route('mmc.show', $mmc->id) }}">
|
||
@endif
|
||
@if (strcasecmp(substr($mmc->filename, -3, 3), 'svg') == 0)
|
||
<svg>
|
||
@include('components.svg', [
|
||
'project' => $project,
|
||
'auk' => $top_auk,
|
||
'mmc' => $mmc,
|
||
])
|
||
</svg>
|
||
@endif
|
||
</td>
|
||
</tr> --}}
|
||
<a href="{{ route('mmc.show', [$top_auk->id,0]) }}" class="pl-2">
|
||
<button
|
||
class="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded-full">
|
||
<i class="fa fa-eye pr-2"></i>{{ __('Show mmc') }}
|
||
</button>
|
||
</a>
|
||
@else
|
||
<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>
|
||
@endif
|
||
</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>
|
||
</x-app-layout>
|