Files
laraundfelix/resources/views/member/program.blade.php
T
LarsandCursor c997eb500c
Deploy Test / test (push) Successful in 2m28s
Deploy Test / deploy (push) Failing after 14s
Leite Vorschaubilder und Filmstufen geschuetzt ab
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-16 09:40:59 +01:00

62 lines
2.0 KiB
PHP

@extends('layouts.member')
@section('title', $title)
@section('content')
<p class="crumb"><a href="{{ route('member.library') }}">Bibliothek</a></p>
<header class="member-intro">
@if ($kind)
<p class="flag">{{ $kind }}</p>
@endif
<h1>{{ $title }}</h1>
@if (filled($summary ?? null))
<p class="lede">{{ $summary }}</p>
@endif
</header>
<dl class="facts">
<div>
<dt>Nutzbarkeit</dt>
<dd class="state state-{{ $coverage }}">{{ match ($coverage) {
'nutzbar' => 'Nutzbar',
'teilweise' => 'Teilweise nutzbar',
default => 'Nicht enthalten',
} }}</dd>
</div>
@if ($duration_minutes)
<div>
<dt>Zeit</dt>
<dd>{{ $duration_minutes }} Minuten</dd>
</div>
@endif
<div>
<dt>Vorschaubild</dt>
<dd>
@if (str_starts_with((string) $composition->thumbnail_path, 'vorschau/'))
<img src="{{ route('member.thumbnail', ['kind' => 'komposition', 'subject' => $composition->id]) }}" alt="{{ $composition->thumbnail_alt ?: 'Vorschaubild' }}">
@else
Platzhalter
@endif
</dd>
</div>
</dl>
@if (filled($composition->thumbnail_error))
<p class="state state-hinweis">{{ $composition->thumbnail_error }}</p>
@endif
@if (filled($learning_goal) || $duration_minutes || filled($material_note))
<section class="didactic">
@if (filled($learning_goal))
<h2>Lernziel</h2>
<p>{{ $learning_goal }}</p>
@endif
@if (filled($material_note))
<h2>Material</h2>
<p>{{ $material_note }}</p>
@endif
</section>
@endif
<section id="aufbau">
<h2>Aufbau</h2>
@include('member.partials.structure', ['nodes' => $nodes])
</section>
@endsection