Files
laraundfelix/resources/views/member/article.blade.php
T
LarsandCursor 3ee9f529ca
Deploy Test / test (push) Successful in 13s
Deploy Test / deploy (push) Successful in 23s
Mache Medien, Übungen und Kurse in der Verwaltung bearbeitbar.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-15 10:49:35 +01:00

47 lines
1.9 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 ($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