Öffne Katalog, Bibliothek und Testkauf für den MVP.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
463851d402
commit
fd6860efda
51 files changed
+2331
-31
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user