Öffne Katalog, Bibliothek und Testkauf für den MVP.
Deploy Test / test (push) Successful in 12s
Deploy Test / deploy (push) Successful in 21s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-15 09:04:08 +01:00
1 parent 463851d402
commit fd6860efda
51 files changed
+2331 -31

No files matched your search

+18 -3
View File
@@ -5,7 +5,22 @@
@section('content')
@include('member.partials.nav')
<h1>Filme und Materialien</h1>
<div class="empty">
<p>Es sind noch keine Filme oder Materialien für Ihr Konto freigegeben.</p>
</div>
@php
$films = $grants->filter(function ($grant) {
return $grant->article->currentRelease?->contents->contains(
fn ($content) => in_array($content->elementVersion->element->output_class, ['film', 'audio'], true),
);
});
@endphp
@if ($films->isEmpty())
<div class="empty">
<p>Unter Ihren Berechtigungen ist gerade kein Film oder Hörstück.</p>
</div>
@else
<ul class="catalog">
@foreach ($films as $grant)
<li><a href="{{ route('member.article', $grant->article) }}">{{ $grant->article->code }}</a></li>
@endforeach
</ul>
@endif
@endsection