Files
bandtoolv2/resources/views/components/status-badge.blade.php
T

11 lines
501 B
PHP

@php
$map = [
'submitted' => ['label' => 'Eingereicht', 'class' => 'text-bg-secondary'],
'in_review' => ['label' => 'In Prüfung', 'class' => 'text-bg-warning'],
'accepted' => ['label' => 'Zugesagt', 'class' => 'text-bg-success'],
'rejected' => ['label' => 'Abgesagt', 'class' => 'text-bg-danger'],
];
$cfg = $map[$status] ?? ['label' => $status, 'class' => 'text-bg-light'];
@endphp
<span class="badge {{ $cfg['class'] }}">{{ $cfg['label'] }}</span>