presseportale/resources/views/components/portal/empty-state.blade.php
Kevin Adametz 077d313baa 5.4: <x-portal.empty-state> + admin/press-releases/index umgestellt
Zweite Struktur-Component: buendelt den empty-stage-Block (runder Icon-Rahmen
+ Titel + Subtext + optionale Aktionen). Props: title, subtitle, variant
(default|warm|err); Slots :icon und :actions.

Erst-Umstellung: die zwei Leerzustaende der Admin-PM-Liste (gefiltert = warm
mit 'Filter zuruecksetzen', leer = Standard mit 'Neue PM anlegen'). Weitere
Vorkommen (customer/press-releases, customer/press-kits) folgen nach Sicht-
pruefung. 36 Tests gruen.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-01 11:05:19 +00:00

36 lines
1,002 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@props([
/** Überschrift (bereits übersetzt übergeben) */
'title' => '',
/** Erläuternder Text unter der Überschrift */
'subtitle' => '',
/** Icon-Farbvariante: default | warm (gefilterte Leerzustände) | err */
'variant' => 'default',
])
{{--
Zentrierter Leerzustand für Tabellen/Listen. Ersetzt den mehrfach kopierten
empty-stage-Block. Slots:
<x-slot:icon> – Icon (flux:icon.* oder inline-<svg>) im runden Rahmen
<x-slot:actions> – optionale Buttons unter dem Text
--}}
<div class="empty-stage">
<div @class(['empty-ico', 'warm' => $variant === 'warm', 'err' => $variant === 'err'])>
{{ $icon ?? '' }}
</div>
@if (filled($title))
<h3 class="empty-title">{{ $title }}</h3>
@endif
@if (filled($subtitle))
<p class="empty-sub">{{ $subtitle }}</p>
@endif
@isset($actions)
<div class="flex items-center gap-2.5 mt-6">
{{ $actions }}
</div>
@endisset
</div>