47 lines
1.9 KiB
PHP
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
|