@props(['status']) @php // Subscription lifecycle -> soft-fill badge family + public label. Kept // separate from the order status-badge so the two vocabularies never collide. $map = [ 'trialing' => ['info', __('Trialing')], 'active' => ['success', __('Active')], 'past_due' => ['warning', __('Past due')], 'suspended' => ['danger', __('Suspended')], 'cancelled' => ['neutral', __('Cancelled')], 'expired' => ['neutral', __('Expired')], ]; [$tone, $label] = $map[$status] ?? ['neutral', ucfirst(str_replace('_', ' ', (string) $status))]; @endphp {{ $label }}