Files
laraundfelix/resources/views/member/materials.blade.php
T
LarsandCursor fd6860efda
Deploy Test / test (push) Successful in 12s
Deploy Test / deploy (push) Successful in 21s
Öffne Katalog, Bibliothek und Testkauf für den MVP.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-15 09:04:08 +01:00

27 lines
861 B
PHP

@extends('layouts.site')
@section('title', 'Filme und Materialien')
@section('content')
@include('member.partials.nav')
<h1>Filme und Materialien</h1>
@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