Files
laraundfelix/resources/views/member/offers.blade.php
T
LarsandClaude Sonnet 5.5 95a888d1ca
CI Feature / test (push) Successful in 5m24s
Deploy Test / test (push) Successful in 5m56s
Deploy Test / deploy (push) Waiting to run
Fuehre Regeln fuer freie Artikel und Fuer dich im Mitgliederbereich ein
- Regel je Angebot auf Abruf: alle Mitglieder, nur freigeschaltete Konten, wer einen Artikel besitzt
- Freigaben je Angebot und Konto (offer_releases), nie geloescht, nur entzogen; Pflege im Angebot
- Pruefung serverseitig in GrantIssuer::claim; Angebote bei Registrierung bleiben regelfrei
- Mitgliederseite Angebote: Neu fuer dich (neue Staende besessener Artikel), Zum Uebernehmen, Shop
- Migration 2026_12_01_110000, ADR-56, DEPLOYMENT.md

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 08:22:43 +01:00

63 lines
2.7 KiB
PHP

@extends('layouts.member')
@section('title', 'Angebote')
@section('nav', 'konto')
@section('content')
<x-member.hero kicker="Zugang" title="Angebote">
Hier findest du, was für dich bereitliegt: neue Stände deiner Artikel und Angebote ohne Kauf. Gekauft wird im Shop.
</x-member.hero>
@if ($errors->any())
<div class="errors" role="alert">{{ $errors->first() }}</div>
@endif
<section class="mb-offers-foryou" aria-labelledby="angebote-fuer-dich">
<h2 id="angebote-fuer-dich">Für dich</h2>
@if ($stands->isEmpty() && $offers->isEmpty())
<div class="empty"><h3>Gerade liegt nichts Neues für dich bereit</h3><p>Neue Stände deiner Artikel und freie Angebote erscheinen hier.</p></div>
@endif
@if ($stands->isNotEmpty())
<h3>Neu für dich</h3>
<p class="lede">Zu diesen Artikeln gibt es einen neuen Stand. Er steht dir ohne Aufpreis zu und liegt schon in deiner Bibliothek.</p>
<ul class="mb-offers">
@foreach ($stands as $stand)
<li class="mb-offer">
<h4>{{ $stand['title'] }}</h4>
<p>Stand {{ $stand['number'] }} seit {{ $stand['since']->format('d.m.Y') }}</p>
<p><a class="button button-secondary" href="{{ route('member.grant', $stand['grant']) }}">In der Bibliothek ansehen<span class="sr-only">: {{ $stand['title'] }}</span></a></p>
</li>
@endforeach
</ul>
@endif
@if ($offers->isNotEmpty())
<h3>Zum Übernehmen</h3>
<ul class="mb-offers">
@foreach ($offers as $offer)
<li class="mb-offer">
<h4>{{ $offer->name }}</h4>
<p>Kostenlos abrufen</p>
<form method="post" action="{{ route('member.offers.claim', $offer) }}">
@csrf
<button class="button" type="submit">In die Bibliothek<span class="sr-only">: {{ $offer->name }}</span></button>
</form>
</li>
@endforeach
</ul>
@endif
</section>
@if ($shop)
<section class="mb-offers-shop" aria-labelledby="angebote-shop">
<h2 id="angebote-shop">Im Shop</h2>
@if ($cards !== [])
<ul class="shop-tiles">
@foreach ($cards as $card)
@include('shop.kachel', ['card' => $card])
@endforeach
</ul>
@endif
<p><a class="button button-secondary" href="{{ route('shop') }}">Zum Shop</a></p>
</section>
@endif
@endsection