Zeige auf der Shopkachel Titelbild, Saeulen, Materialart mit Symbol und Marker
- ShopCatalog als gemeinsame Datenquelle der Kacheln, shop/kachel als Partial - Titelbild nur mit Website-Freigabe (PresentationMedia::coverPresentation), schmueckend mit leerem alt - Symbol je Materialart (Stammdaten), Marker Neu, Aktualisiert, Beliebt mit Einstellung am Artikel - Migration 2026_12_01_100000, rein ergaenzend - ADR-54, Plan, DEPLOYMENT.md Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
db3a6ba779
commit
0ac70884cc
18 files changed
+991
-88
No files matched your search
@@ -108,6 +108,12 @@
|
||||
</ul>
|
||||
@endif
|
||||
<div><button type="button" class="vw-btn is-line" wire:click="mountAction('option')">@include('filament.verwaltung.icon', ['name' => 'plus'])Option hinzufügen</button></div>
|
||||
@php($marker = $this->markerRows())
|
||||
<div class="vw-spalte-kopf">
|
||||
<h3 id="artikel-marker">Marker auf der Kachel</h3>
|
||||
<span class="vw-feld-hilfe">Zurzeit: {{ $marker['sichtbar'] === [] ? 'kein Marker' : implode(', ', $marker['sichtbar']) }}. „Neu“ und „Aktualisiert“ richten sich automatisch nach den Daten, „Beliebt“ setzt du von Hand.</span>
|
||||
<span class="vw-zeilenaktionen"><button type="button" class="vw-link" wire:click="mountAction('markers')">Marker ändern</button></span>
|
||||
</div>
|
||||
@endif
|
||||
</section>
|
||||
</div>
|
||||
|
||||
@@ -24,11 +24,7 @@
|
||||
<p class="shop-count" role="status">{{ count($cards) }} {{ count($cards) === 1 ? 'Produkt' : 'Produkte' }}</p>
|
||||
<ul class="shop-tiles">
|
||||
@foreach ($cards as $card)
|
||||
<li class="shop-tile">
|
||||
<h2><a href="{{ $card['url'] }}">{{ $card['title'] }}</a></h2>
|
||||
@if ($card['teaser'] !== '')<p>{{ $card['teaser'] }}</p>@endif
|
||||
<p class="shop-tile-price">ab {{ $card['from'] }} · {{ $card['count'] }} {{ $card['count'] === 1 ? 'Lizenzoption' : 'Lizenzoptionen' }}</p>
|
||||
</li>
|
||||
@include('shop.kachel', ['card' => $card])
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
{{--
|
||||
Eine Produktkachel des Shops. Parameter: $card (ShopCatalog). Die Kachel trägt nur Öffentliches: Titelbild nur mit
|
||||
Website-Freigabe, Säulen nur veröffentlicht, die Materialart mit ihrem Symbol, die Marker mit Wort. Das Bild ist
|
||||
schmückend (leeres alt), der Titel ist der Link.
|
||||
--}}
|
||||
<li class="shop-tile">
|
||||
<div class="shop-tile-media @if ($card['image'] === null) is-placeholder @endif" aria-hidden="true">
|
||||
@if ($card['image'] !== null)
|
||||
<img src="{{ $card['image']['url'] }}" alt="" loading="lazy" decoding="async">
|
||||
@elseif ($card['symbol'] !== null)
|
||||
<x-brand.symbol :name="$card['symbol']" class="shop-tile-symbol" />
|
||||
@endif
|
||||
@if ($card['markers'] !== [])
|
||||
<span class="shop-markers">
|
||||
@foreach ($card['markers'] as $marker)
|
||||
<span class="shop-marker shop-marker-{{ $marker['key'] }}">{{ $marker['label'] }}</span>
|
||||
@endforeach
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
<div class="shop-tile-body">
|
||||
@if ($card['markers'] !== [])
|
||||
<p class="sr-only">{{ implode(', ', array_column($card['markers'], 'label')) }}</p>
|
||||
@endif
|
||||
@if ($card['kind_label'] !== '')
|
||||
<p class="shop-tile-kind">
|
||||
@if ($card['symbol'] !== null && $card['image'] !== null)<x-brand.symbol :name="$card['symbol']" class="shop-tile-kind-symbol" aria-hidden="true" />@endif
|
||||
<span>{{ $card['kind_label'] }}</span>
|
||||
</p>
|
||||
@endif
|
||||
<h2><a href="{{ $card['url'] }}">{{ $card['title'] }}</a></h2>
|
||||
@if ($card['teaser'] !== '')<p class="shop-tile-teaser">{{ $card['teaser'] }}</p>@endif
|
||||
@if ($card['pillars'] !== [])
|
||||
<ul class="shop-tile-pillars" aria-label="Themen">
|
||||
@foreach (array_slice($card['pillars'], 0, 3) as $pillar)
|
||||
<li>{{ $pillar }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
<p class="shop-tile-price">ab {{ $card['from'] }} · {{ $card['count'] }} {{ $card['count'] === 1 ? 'Lizenzoption' : 'Lizenzoptionen' }}</p>
|
||||
</div>
|
||||
</li>
|
||||
Reference in new issue
Block a user