@props(['value' => 'unknown'])

@php
    $tone = match ($value) {
        'online', 'healthy', 'completed', 'verified', 'synced', 'ready', 'success' => 'success',
        'degraded', 'warning', 'pending', 'queued', 'running', 'deferred' => 'warning',
        'offline', 'critical', 'failed', 'expired', 'stale', 'disabled', 'restoring', 'blocked' => 'danger',
        default => 'muted',
    };
@endphp

<span {{ $attributes->class(['status-badge', $tone]) }}>
    {{ str($value)->replace('_', ' ')->headline() }}
</span>
