Merge remote-tracking branch 'origin/develop' into feature/merkmale-symbol-seite
This commit is contained in:
commit
fbe4226347
32 files changed
+1640
-43
No files matched your search
@@ -5,30 +5,58 @@
|
||||
|
||||
@section('content')
|
||||
<x-member.hero kicker="Zugang" title="Angebote">
|
||||
Hier übernimmst du Angebote ohne Kauf in deine Bibliothek. Gekauft wird im Shop.
|
||||
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
|
||||
@if ($offers->isEmpty())
|
||||
<div class="empty"><h2>Keine Angebote zum Übernehmen</h2><p>Gerade ist kein kostenloses Angebot für dich aktiv.</p></div>
|
||||
@else
|
||||
<ul class="mb-offers">
|
||||
@foreach ($offers as $offer)
|
||||
@php $version = $offer->versions->first(); @endphp
|
||||
@continue($version === null)
|
||||
<li class="mb-offer">
|
||||
<h2>{{ $offer->name }}</h2>
|
||||
<p>Kostenlos abrufen</p>
|
||||
<form method="post" action="{{ route('member.offers.claim', $offer) }}">
|
||||
@csrf
|
||||
<button class="button" type="submit">In die Bibliothek</button>
|
||||
</form>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@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)
|
||||
<p class="mb-offers-shop"><a class="button button-secondary" href="{{ route('shop') }}">Zum Shop</a></p>
|
||||
<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
|
||||
@@ -0,0 +1,41 @@
|
||||
{{--
|
||||
Shop-Produkte (ADR-55). Die Kacheln kommen aus ShopCatalog, nichts davon wird im CMS gespeichert. Ist der Shop nicht
|
||||
sichtbar, bleibt der Abschnitt öffentlich leer; die Redaktionsvorschau zeigt einen Hinweis.
|
||||
--}}
|
||||
@if ($shopVisible || $context->preview)
|
||||
<div class="shop-products">
|
||||
@if (filled($data['heading'] ?? null))
|
||||
<h2>{{ $data['heading'] }}</h2>
|
||||
@endif
|
||||
@if (filled($data['intro'] ?? null))
|
||||
<p class="lede">{{ $data['intro'] }}</p>
|
||||
@endif
|
||||
@unless ($shopVisible)
|
||||
<p class="preview-note">Der Shop ist zurzeit nicht sichtbar. Öffentlich erscheint dieser Abschnitt nicht.</p>
|
||||
@else
|
||||
@if (($settings['search'] ?? 'aus') === 'an')
|
||||
<form class="shop-search" method="get" action="{{ route('shop') }}" role="search">
|
||||
<label for="shop-suche-{{ $widget['id'] ?? 'w' }}">Shop durchsuchen</label>
|
||||
<input id="shop-suche-{{ $widget['id'] ?? 'w' }}" type="search" name="suche" value="{{ $term }}" autocomplete="off">
|
||||
<button class="button" type="submit">Suchen</button>
|
||||
@if ($term !== '')
|
||||
<a class="button button-quiet" href="{{ route('shop') }}">Suche zurücksetzen</a>
|
||||
@endif
|
||||
</form>
|
||||
@endif
|
||||
@if ($cards === [])
|
||||
<div class="empty">
|
||||
<h3>{{ $term !== '' ? 'Keine Treffer' : 'Noch keine kaufbaren Produkte' }}</h3>
|
||||
<p>{{ $term !== '' ? 'Zu „'.$term.'“ gibt es keine kaufbaren Produkte. Prüfe die Schreibweise oder setze die Suche zurück.' : 'Sobald ein Angebot aktiv ist, erscheint es hier.' }}</p>
|
||||
</div>
|
||||
@else
|
||||
<p class="shop-count" role="status">{{ count($cards) }} {{ count($cards) === 1 ? 'Produkt' : 'Produkte' }}</p>
|
||||
<ul class="shop-tiles">
|
||||
@foreach ($cards as $card)
|
||||
@include('shop.kachel', ['card' => $card])
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
@endunless
|
||||
</div>
|
||||
@endif
|
||||
Reference in new issue
Block a user