CI Feature / test (push) Successful in 5m29s
- Eine veroeffentlichte CMS-Seite mit dem Pfad /shop bestimmt den Aufbau von /shop, sonst gilt die Standardseite - Widget shop_products mit Filter (Saeule, Materialart), Reihenfolge, Anzahl und Suchfeld; leer, solange der Shop nicht sichtbar ist - ShopCatalog mit Filter, Sortierung und Limit; Suchbegriff auf 100 Zeichen gekuerzt - Sitemap ohne /shop, solange nicht gekauft werden kann - Mitgliederseite Angebote zeigt die neuesten Produkte als Kacheln - ADR-55, Widget-Register Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
45 lines
1.7 KiB
PHP
45 lines
1.7 KiB
PHP
@extends('layouts.member')
|
|
|
|
@section('title', 'Angebote')
|
|
@section('nav', 'konto')
|
|
|
|
@section('content')
|
|
<x-member.hero kicker="Zugang" title="Angebote">
|
|
Hier übernimmst du Angebote ohne Kauf in deine Bibliothek. 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
|
|
@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
|