Working on MMC
This commit is contained in:
@@ -13,46 +13,6 @@
|
||||
<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="basis-1/2">
|
||||
<a href="{{ route('mmc.create') }}">
|
||||
<button
|
||||
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full">
|
||||
<i class="fa fa-add pr-2"></i>{{ __('Create mmc') }}
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
<div class="basis-1/2 text-right">
|
||||
<a href="{{ route('mmc.scan') }}">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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">
|
||||
@@ -62,26 +22,50 @@
|
||||
</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">{{ $top_auk->auk_name }}</td>
|
||||
<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">
|
||||
<table>
|
||||
<table class="mx-auto">
|
||||
<tr>
|
||||
<th class="p-1 border border-gray-200 text-xs">
|
||||
{{ __('File') }}
|
||||
</th>
|
||||
<th class="p-1 border border-gray-200 text-xs">
|
||||
{{ __('Size') }}
|
||||
</th>
|
||||
<th class="p-1 border border-gray-200 text-xs">
|
||||
{{ __('MTime') }}
|
||||
</th>
|
||||
<th class="p-1 border border-gray-200 text-xs">
|
||||
{{ __('Image') }}
|
||||
</th>
|
||||
</tr>
|
||||
@forelse ($top_auk->mmcs as $mmc)
|
||||
<tr>
|
||||
<td>{{ $mmc->filename }}</td>
|
||||
</tr>
|
||||
|
||||
<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>
|
||||
<img height="50"
|
||||
src="{{ 'file://' . $project->mmc_path . '/' . $top_auk->auk_path . '/' . $top_auk->image_dir . '/' . $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>
|
||||
|
||||
<tr>
|
||||
<td colspan="3" class="p-1 border border-gray-200 text-xs">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>
|
||||
@@ -99,7 +83,6 @@
|
||||
@endforelse
|
||||
</table>
|
||||
</div>
|
||||
{{-- </div> --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<x-app-layout>
|
||||
<x-slot name="header">
|
||||
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
|
||||
{{ $project->name }}: {{ __('Scan MMC') }}
|
||||
{{ $project->name }}: {{ __('Scan MMC') }}: {{ $AUK->auk_name }}
|
||||
</h2>
|
||||
</x-slot>
|
||||
|
||||
@@ -9,49 +9,53 @@
|
||||
<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">
|
||||
<div class="text-center">
|
||||
<h3 class="font-bold text-l text-gray-800 leading-tight pb-2">{{ $AUK->auk_name }}</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">
|
||||
</div>
|
||||
<table class="table table-sm border-b border-gray-200 mx-auto">
|
||||
<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> --}}
|
||||
</tr>
|
||||
@forelse ($MMC as $image)
|
||||
<tr class="border border-gray-200">
|
||||
<td class="p-2 border border-gray-200">{{ $image['filename'] }}</td>
|
||||
<td class="p-2 border border-gray-200">{{ $image['size'] }}</td>
|
||||
<td class="p-2 border border-gray-200">{{ date('d.m.Y H:i:s', $image['mtime']) }}</td>
|
||||
{{-- <td class="p-2 border border-gray-200">{{ $image['atime'] }}</td> --}}
|
||||
</tr>
|
||||
@forelse ($MMC as $image)
|
||||
<tr class="border border-gray-200">
|
||||
<td class="p-2 border border-gray-200">{{ $image['filename'] }}</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> --}}
|
||||
</tr>
|
||||
|
||||
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="4" class="p-2 border border-gray-200 text-center">No Images!
|
||||
</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</table>
|
||||
@if (count($MMC))
|
||||
|
||||
<form method="POST" action="{{ route('mmc.load',$AUK->id) }}">
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="4" class="p-2 border border-gray-200 text-center">No Images!
|
||||
</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</table>
|
||||
@if (count($MMC))
|
||||
|
||||
<form method="POST" action="{{ route('mmc.load', $AUK->id) }}" class="w-96 mx-auto">
|
||||
@csrf
|
||||
<input type="hidden" name="auk_id" id="auk_id" value="{{ $AUK->id }}">
|
||||
@for($i = 0; $i < count($MMC); $i++)
|
||||
<input type="hidden" name="filename_{{$i}}" id="filename_{{$i}}" value="{{ $MMC[$i]['filename'] }}">
|
||||
<input type="hidden" name="size_{{$i}}" id="size_{{$i}}" value="{{ $MMC[$i]['size'] }}">
|
||||
<input type="hidden" name="mtime_{{$i}}" id="mtime_{{$i}}" value="{{ $MMC[$i]['mtime'] }}">
|
||||
{{-- <input type="hidden" name="atime_{{$i}}" id="atime_{{$i}}" value="{{ $image['atime'] }}"> --}}
|
||||
<input type="hidden" name="auk_id" id="auk_id" value="{{ $AUK->id }}">
|
||||
@for ($i = 0; $i < count($MMC); $i++)
|
||||
<input type="hidden" name="filename_{{ $i }}"
|
||||
id="filename_{{ $i }}" value="{{ $MMC[$i]['filename'] }}">
|
||||
<input type="hidden" name="size_{{ $i }}" id="size_{{ $i }}"
|
||||
value="{{ $MMC[$i]['size'] }}">
|
||||
<input type="hidden" name="mtime_{{ $i }}" id="mtime_{{ $i }}"
|
||||
value="{{ $MMC[$i]['mtime'] }}">
|
||||
{{-- <input type="hidden" name="atime_{{$i}}" id="atime_{{$i}}" value="{{ $image['atime'] }}"> --}}
|
||||
@endfor
|
||||
<div class="flex items-center justify-end mt-4">
|
||||
<button
|
||||
@@ -66,9 +70,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user