Files
laraundfelix/resources/views/member/article.blade.php
T
LarsandCursor af85a94cd5
Deploy Test / test (push) Successful in 15s
Deploy Test / deploy (push) Successful in 22s
Zeige Medienfassungen in der Verwaltung und halte Beschreibungen davon getrennt.
Eine Fassung bleibt nummeriert und kann deaktiviert werden. Beschreibung und fachliche Säulen gehören zum Medium und legen keine neue Fassung an.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-15 11:25:08 +01:00

53 lines
2.2 KiB
PHP

@extends('layouts.site')
@section('title', $title)
@section('content')
@include('member.partials.nav')
<h1>{{ $title }}</h1>
@if ($kind)
<p>{{ $kind }}</p>
@endif
@if ($release?->classification_note)
<p class="lede">{{ $release->classification_note }}</p>
@endif
@if ($entries === [])
<div class="empty">
<p>Dieser Kurs hat noch keinen veröffentlichten Stand.</p>
</div>
@else
<ol class="course">
@foreach ($entries as $entry)
<li>
<h2>{{ $entry['role'] }}: {{ $entry['version']->element->working_title }}</h2>
@if (filled($entry['version']->element->description))
<p>{{ $entry['version']->element->description }}</p>
@endif
@if ($entry['pillars'] !== [])
<p>{{ implode(' · ', $entry['pillars']) }}</p>
@endif
@if ($entry['playable'])
<video controls preload="metadata" playsinline src="{{ $entry['url'] }}" @if ($entry['decision'] !== null) data-decision="{{ $entry['decision'] }}" @endif></video>
<p class="course-actions">
@if ($entry['decision'] !== null)
<button class="button" type="button" data-course-decision>Zur Entscheidungsmarke ({{ $entry['decision'] }} s)</button>
@endif
<button class="button" type="button" data-course-restart>Nochmal von vorn</button>
</p>
@elseif ($entry['allowed'] && $entry['url'])
<p><a href="{{ $entry['url'] }}">Ansehen</a></p>
@else
<p>Für diesen Teil liegt keine Freigabe vor.</p>
@endif
@if (filled($entry['version']->body))
<article class="prose">
{!! nl2br(e($entry['version']->body)) !!}
</article>
@endif
</li>
@endforeach
</ol>
@endif
<p>Artikel {{ $article->code }}</p>
@endsection