initial commit
This commit is contained in:
12
resources/views/partials/status-badge.blade.php
Normal file
12
resources/views/partials/status-badge.blade.php
Normal file
@@ -0,0 +1,12 @@
|
||||
@php
|
||||
$classes = match($status) {
|
||||
'active' => 'bg-emerald-950 text-emerald-400 border-emerald-800',
|
||||
'pending' => 'bg-amber-950 text-amber-400 border-amber-800',
|
||||
'failed' => 'bg-red-950 text-red-400 border-red-800',
|
||||
default => 'bg-slate-800 text-slate-400 border-slate-700',
|
||||
};
|
||||
$labels = ['active' => 'Aktiv', 'pending' => 'Ausstehend', 'failed' => 'Fehler'];
|
||||
@endphp
|
||||
<span class="inline-flex rounded-full border px-2.5 py-0.5 text-xs font-medium {{ $classes }}">
|
||||
{{ $labels[$status] ?? $status }}
|
||||
</span>
|
||||
Reference in New Issue
Block a user