Files
laraundfelix/resources/views/member/program.blade.php
LarsandCursor 8e77defaca
Deploy Test / test (push) Successful in 28s
Deploy Test / deploy (push) Successful in 39s
Wähle das Vorschaubild am Medium und nutze es als Standard in der Anzeige und in Modulen.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-16 21:34:11 +01:00

65 lines
2.1 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
@if (filled($composition->description))
<p>{{ $composition->description }}</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 ($picture)
<img src="{{ route('member.thumbnail', ['kind' => $picture['kind'], 'subject' => $picture['subject']]) }}" alt="{{ $picture['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