30 lines
1.3 KiB
PHP
30 lines
1.3 KiB
PHP
@php
|
|
$summary = \Illuminate\Support\Str::limit(trim((string) ($card['summary'] ?? '')), 160);
|
|
@endphp
|
|
<a class="luf-catalog luf-tone-{{ $card['tone'] }}" href="{{ $card['url'] }}">
|
|
<span class="luf-figure">
|
|
@if (! empty($card['image']))
|
|
<img src="{{ $card['image'] }}" alt="">
|
|
@else
|
|
<svg class="luf-mark" viewBox="0 0 160 90" aria-hidden="true">
|
|
<rect x="8" y="12" width="144" height="66" fill="none" stroke="currentColor" stroke-width="3"/>
|
|
<path d="M28 58 V32 H52 V58 M68 58 V24 H92 V58 M108 58 V38 H132 V58" fill="none" stroke="currentColor" stroke-width="3"/>
|
|
</svg>
|
|
<span class="luf-sr">Kein Titelbild</span>
|
|
@endif
|
|
@if (! empty($card['image_note']))
|
|
<span class="luf-figure-note">{{ $card['image_note'] }}</span>
|
|
@endif
|
|
</span>
|
|
<span class="luf-catalog-body">
|
|
<span class="luf-kind">{{ $card['kind'] }}</span>
|
|
<strong>{{ $card['title'] }}</strong>
|
|
<span class="luf-summary">{{ $summary !== '' ? $summary : 'Noch keine Kurzbeschreibung' }}</span>
|
|
<span class="luf-chips">
|
|
@foreach ($card['chips'] as $chip)
|
|
<span class="luf-chip luf-chip-{{ $chip['tone'] }}">{{ $chip['label'] }}</span>
|
|
@endforeach
|
|
</span>
|
|
</span>
|
|
</a>
|