70 lines
3.7 KiB
PHP
70 lines
3.7 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 }}: {{ $auk->auk_name }}: {{ __('MMC Show') }}
|
|
</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 class="flex flex-row">
|
|
<div class="basis-1/4">
|
|
<ul>
|
|
@forelse ($auk->mmcs as $mmc)
|
|
<li>
|
|
@if (strcasecmp(substr($mmc->filename, -3, 3), 'swf') == 0)
|
|
<a href="{{ route('mmc.show', [$auk->id, $mmc->id]) }}"
|
|
class="underline text-gray-500 hover:text-gray-700">{{ $mmc->filename }}</a>
|
|
@else
|
|
<a href="{{ route('mmc.show', [$auk->id, $mmc->id]) }}"
|
|
class="underline text-blue-500 hover:text-blue-700">{{ $mmc->filename }}</a>
|
|
@endif
|
|
</li>
|
|
@empty
|
|
<li>NO MMC!</li>
|
|
@endforelse
|
|
</ul>
|
|
</div>
|
|
<div class="basis-3/4">
|
|
<div class="flex flex-row">
|
|
<div class="basis-1/3">
|
|
<b>name:</b> {{ $current_mmc->filename }}
|
|
</div>
|
|
<div class="basis-1/3">
|
|
<b>size:</b> {{ $current_mmc->size }}
|
|
</div>
|
|
<div class="basis-1/3">
|
|
<b>mtime:</b> {{ date('d.m.Y H:i:s', $current_mmc->mtime) }}
|
|
</div>
|
|
</div>
|
|
<div class="pt-4">
|
|
@if (strcasecmp(substr($current_mmc->filename, -3, 3), 'svg') == 0)
|
|
{{-- <svg style="width:100%">
|
|
<use href="{{ route('mmc.getimage', [$auk->id, $current_mmc->id]) }}"></use>
|
|
</svg> --}}
|
|
<object width="800px" height="600px"
|
|
data="{{ route('mmc.getimage', [$auk->id, $current_mmc->id]) }}"
|
|
type="image/svg+xml" style="border-2">Error load svg</object>
|
|
{{-- <img width="800px" srcset="{{ route('mmc.getimage', [$auk->id, $current_mmc->id]) }}" type="image/svg+xml"> --}}
|
|
@elseif (strcasecmp(substr($current_mmc->filename, -3, 3), 'jpg') == 0)
|
|
<img width="800"
|
|
src="{{ route('mmc.getimage', [$auk->id, $current_mmc->id]) }}">
|
|
@elseif (strcasecmp(substr($current_mmc->filename, -3, 3), 'swf') == 0)
|
|
<b>Can't show FLASH!!!</b>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</x-app-layout>
|