Files
laraundfelix/resources/views/member/article.blade.php
T
LarsandClaude Sonnet 5.5 c57a506f85 Biete Tabellen und Bilder im gemeinsamen Texteditor an und setze sie in Ansicht und PDF
Tabellen und Bilder gehören zur festen Auswahl von FormattedText. Ein Bild
ist ein Verweis auf eine freigegebene Bildfassung und kommt per Picker aus
dem Medienbestand; der Stand schreibt die Bildfassung mit fest, die Rechte
entscheidet DecideAccess. Der PDF-Satz (PdfFlow) ist für Übung und kommende
Dokumente gemeinsam; PdfDocument kann zusätzlich Bilder, Flächen, Verweise
und Lesezeichen, Belege bleiben byte-gleich.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 11:31:03 +01:00

72 lines
4.1 KiB
PHP

@extends('layouts.member')
@section('title', $title)
@section('nav', 'bibliothek')
{{-- Einzelner Lizenzartikel (Medium oder Material ohne Programmkontext). Aktionen nur mit eigener Entscheidung je Aktion. --}}
@section('content')
<p class="mb-crumb"><a href="{{ route('member.library') }}"><x-heroicon-o-arrow-left aria-hidden="true" /> Zur Bibliothek</a></p>
<header class="mb-content-head">
@if ($kind)
<x-member.type :type="($entries[0]['class'] ?? null) === 'film' ? 'film' : 'material'" :label="$kind" />
@endif
<h1 class="mb-title">{{ $title }}</h1>
@if ($release?->classification_note)
<p class="mb-lede">{{ $release->classification_note }}</p>
@endif
</header>
@if ($entries === [])
<div class="empty mb-empty">
<h2>Kein veröffentlichter Stand</h2>
<p>Für diesen Eintrag liegt noch kein veröffentlichter Stand vor.</p>
</div>
@else
<ol class="mb-outline">
@foreach ($entries as $entry)
<li class="mb-outline-item">
<div class="mb-outline-main">
<h2 class="mb-outline-title">{{ $entry['title'] === $entry['role'] ? $entry['title'] : $entry['role'].': '.$entry['title'] }}</h2>
@if (filled($entry['version']->element->description))
<div class="mb-outline-text mb-prose">{!! \App\Domain\Catalog\FormattedText::display($entry['version']->element->description) !!}</div>
@endif
</div>
@if ($entry['playable'])
<div class="mb-player player">
@include('content.video', [
'playback' => ['mode' => $entry['playback'] ?? 'file', 'url' => $entry['url']],
'poster' => \App\Domain\Media\ThumbnailRef::url('member.thumbnail', 'element', $entry['version']->element->id, $entry['version']->element->thumbnail_path),
])
</div>
<div class="mb-actions">
<button class="button button-secondary" type="button" data-fullscreen><x-heroicon-o-arrow-top-right-on-square aria-hidden="true" /> Vollbild</button>
@if ($entry['download_url'])
<a class="button button-secondary" href="{{ $entry['download_url'] }}"><x-heroicon-o-arrow-down-tray aria-hidden="true" /> Herunterladen</a>
@endif
</div>
@elseif ($entry['allowed'] && $entry['url'])
<div class="mb-actions">
<a class="button" href="{{ $entry['url'] }}"><x-heroicon-o-eye aria-hidden="true" /> Ansehen</a>
@if ($entry['download_url'])
<a class="button button-secondary" href="{{ $entry['download_url'] }}"><x-heroicon-o-arrow-down-tray aria-hidden="true" /> Herunterladen</a>
@endif
</div>
@elseif ($entry['download_url'])
{{-- Lizenz nur zum Herunterladen (kein Streamen oder Ansehen): der Download bleibt erreichbar. --}}
<div class="mb-actions">
<a class="button" href="{{ $entry['download_url'] }}"><x-heroicon-o-arrow-down-tray aria-hidden="true" /> Herunterladen</a>
</div>
@else
<p class="mb-outline-locked">Nicht enthalten. Für diesen Teil liegt keine Freigabe vor.</p>
@endif
@if (filled($entry['version']->body))
<article class="mb-prose">
{!! \App\Domain\Catalog\FormattedText::display($entry['version']->body, $images ?? null) !!}
</article>
@endif
</li>
@endforeach
</ol>
@endif
<p class="mb-muted">Artikel {{ $article->code }}</p>
@endsection