Display mmc from FS

This commit is contained in:
Александр Бабкин
2022-07-12 12:14:24 +03:00
parent 22a4895262
commit 8a971e1667
5 changed files with 130 additions and 4 deletions

View File

@@ -0,0 +1,19 @@
<x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
{{ $project->name }}: {{ __('Create MMC') }}
</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 class="w-96 mx-auto">
MMC create form here
</div>
</div>
</div>
</div>
</div>
</x-app-layout>

View File

@@ -1,7 +1,7 @@
<x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
{{ __('Scan MMC') }}
{{ $project->name }}: {{ __('Scan MMC') }}
</h2>
</x-slot>
@@ -10,9 +10,47 @@
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
<div class="p-6 bg-white border-b border-gray-200">
<div class="w-96 mx-auto">
@foreach ($MMC as $key => $value)
<h3 class="font-bold text-l text-gray-800 leading-tight">АУК {{ $key }}</h3>
<table class="table table-sm border-b border-gray-200">
<tr class="border border-gray-200">
<th class="p-2 border border-gray-200">
{{ __('File') }}
</th>
<th class="p-2 border border-gray-200">
{{ __('Size') }}
</th>
<th class="p-2 border border-gray-200">
{{ __('MTime') }}
</th>
<th class="p-2 border border-gray-200">
{{ __('ATime') }}
</th>
<th class="p-2 border border-gray-200">
{{ __('Actions') }}
</th>
</tr>
@forelse ($value['images'] as $image)
<tr class="border border-gray-200">
<td class="p-2 border border-gray-200">{{ $image['file'] }}</td>
<td class="p-2 border border-gray-200">{{ $image['size'] }}</td>
<td class="p-2 border border-gray-200">{{ $image['mtime'] }}</td>
<td class="p-2 border border-gray-200">{{ $image['atime'] }}</td>
<td class="p-2 border border-gray-200">&nbsp;</td>
</tr>
@empty
<tr>
<td colspan="5" class="p-2 border border-gray-200 text-center">No Documents!
</td>
</tr>
@endforelse
</table>
@endforeach
</div>
</div>
</div>
</div>
</div>
</x-app-layout>
</x-app-layout>