Zeige freigegebene Programme als Aufbau in der Bibliothek
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
fc08e6d0f2
commit
7b54c38623
7 files changed
+307
-22
No files matched your search
@@ -4,27 +4,33 @@
|
||||
|
||||
@section('content')
|
||||
@include('member.partials.nav')
|
||||
@inject('courses', App\Http\CourseOutline::class)
|
||||
<h1>Bibliothek</h1>
|
||||
<p class="lede">Jede Berechtigung öffnet ein Programm, ein Modul oder ein einzelnes Material.</p>
|
||||
@if ($grants->isEmpty())
|
||||
<p class="lede">Programme zeigen den Aufbau. Einzelne Materialien stehen darunter, solange sie zu keinem freigegebenen Programm gehören.</p>
|
||||
@if ($programs === [] && $materials === [])
|
||||
<div class="empty">
|
||||
<p>Noch nichts in der Bibliothek. Unter Angebote können Sie ein kostenloses Material abrufen oder ein Angebot im Testmodus kaufen.</p>
|
||||
<p><a class="button" href="{{ route('member.offers') }}">Zu den Angeboten</a></p>
|
||||
</div>
|
||||
@else
|
||||
<ul class="catalog">
|
||||
@foreach ($grants as $grant)
|
||||
<li>
|
||||
<a href="{{ route('member.article', $grant->article) }}"><strong>{{ $courses->kindLabel($grant->article) ? $courses->kindLabel($grant->article).': ' : '' }}{{ $courses->title($grant->article) }}</strong></a>
|
||||
@if ($grant->article->currentRelease?->classification_note)
|
||||
<span>{{ $grant->article->currentRelease->classification_note }}</span>
|
||||
@endif
|
||||
@if ($grant->article->currentRelease?->change_note)
|
||||
<span>{{ $grant->article->currentRelease->change_note }}</span>
|
||||
@endif
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@if ($programs !== [])
|
||||
<h2>Programme und Module</h2>
|
||||
<ul class="catalog">
|
||||
@foreach ($programs as $program)
|
||||
<li>
|
||||
<a href="{{ route('member.program', $program['composition']) }}"><strong>{{ $program['kind'] ? $program['kind'].': ' : '' }}{{ $program['title'] }}</strong></a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
@if ($materials !== [])
|
||||
<h2>Materialien</h2>
|
||||
<ul class="catalog">
|
||||
@foreach ($materials as $material)
|
||||
<li>
|
||||
<a href="{{ route('member.article', $material['article']) }}"><strong>{{ $material['kind'] ? $material['kind'].': ' : '' }}{{ $material['title'] }}</strong></a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
@endif
|
||||
@endsection
|
||||
Reference in new issue
Block a user