Gestalte den Mitgliederbereich fuer den Kursraum
Deploy Test / test (push) Successful in 17s
Deploy Test / deploy (push) Successful in 23s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-16 08:43:13 +01:00
1 parent abcdc6908e
commit 1d8315c9a4
21 files changed
+1064 -169

No files matched your search

+14 -8
View File
@@ -1,21 +1,27 @@
@extends('layouts.site')
@extends('layouts.member')
@section('title', 'Berechtigungen')
@section('title', 'Meine Lizenzen')
@section('content')
@include('member.partials.nav')
<h1>Berechtigungen</h1>
<header class="member-intro">
<p class="flag">Getrennt von der Bibliothek</p>
<h1>Meine Lizenzen</h1>
<p class="lede">Hier stehen Zweck, Herkunft und Zeitraum. Die Inhalte selbst öffnen Sie in der Bibliothek.</p>
</header>
@if ($grants->isEmpty())
<div class="empty">
<h2>Keine Lizenz</h2>
<p>Ihnen ist noch keine Lizenz zugeordnet.</p>
<p><a class="button" href="{{ route('member.offers') }}">Zu den Angeboten</a></p>
</div>
@else
<ul class="catalog">
<ul class="license-list">
@foreach ($grants as $grant)
<li>
<strong>{{ $grant->article->code }}</strong>
<span>{{ $grant->rights_snapshot['purpose'] ?? '' }}</span>
<span>seit {{ $grant->valid_from?->timezone(config('app.timezone'))->format('d.m.Y') }}</span>
<h2>{{ $grant->article->code }}</h2>
<p>Zweck: {{ $grant->rights_snapshot['purpose'] ?? 'nicht angegeben' }}</p>
<p>seit {{ $grant->valid_from?->timezone(config('app.timezone'))->format('d.m.Y') }}</p>
<p><a class="button button-quiet" href="{{ route('member.article', $grant->article) }}">In der Bibliothek öffnen</a></p>
</li>
@endforeach
</ul>