56 lines
1.8 KiB
PHP
56 lines
1.8 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>{{ filled($composition->thumbnail_path) ? ($composition->thumbnail_alt ?: 'Vorschaubild') : 'Platzhalter' }}</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
|