{{-- Gemeinsamer Objektkopf. Parameter: zurueck ['label' => …, 'wire' => … | 'href' => …] oder null brot Liste von Bezeichnungen, die letzte ist das bearbeitete Objekt titel, typ (Zeile unter dem Titel), status ['text' => …, 'ton' => offen|gut|neutral, 'aktion' => ['label', 'wire']] aktionen Liste ['label', 'wire' | 'href', 'art' => primary|line|quiet, 'icon', 'neu' => bool, 'disabled' => bool] mehr Liste ['label', 'wire' | 'href', 'hinweis', 'gefahr' => bool, 'neu' => bool] für „Weitere Aktionen“ --}} @php $zurueck = $zurueck ?? null; $brot = $brot ?? []; $status = $status ?? null; $stati = $status === null ? [] : (isset($status['text']) ? [$status] : array_values(array_filter($status))); $aktionen = $aktionen ?? []; $mehr = $mehr ?? []; @endphp
@if ($zurueck) @if (! empty($zurueck['wire'])) @else @include('filament.verwaltung.icon', ['name' => 'zurueck']){{ $zurueck['label'] }} @endif @endif @if ($brot !== []) @endif

{{ $titel }}

@if (filled($typ ?? null))

{{ $typ }}

@endif @foreach ($stati as $eintrag)

($eintrag['ton'] ?? '') === 'offen', 'is-gut' => ($eintrag['ton'] ?? '') === 'gut']) aria-hidden="true"> {{ $eintrag['text'] }}@if (! empty($eintrag['aktion'])) @endif

@endforeach
@if ($aktionen !== [] || $mehr !== [])
@foreach ($aktionen as $aktion) @php($klasse = 'vw-btn'.match ($aktion['art'] ?? 'quiet') { 'primary' => ' is-primary', 'line' => ' is-line', default => '' }) @if (! empty($aktion['href'])) @if (! empty($aktion['icon']))@include('filament.verwaltung.icon', ['name' => $aktion['icon']])@endif {{ $aktion['label'] }} @else @endif @endforeach @if ($mehr !== [])
@foreach ($mehr as $eintrag) @if (! empty($eintrag['href'])) {{ $eintrag['label'] }}@if (! empty($eintrag['hinweis'])){{ $eintrag['hinweis'] }}@endif @else @endif @endforeach
@endif
@endif