{{-- Status pill of an abuse report (#2957 slice 16, card #3103). Expects $status (the stored value). The word is the Swedish label from abuseReport.nh.statuses, or the stored value when it has none. --}} @php $nhArTone = [ 'unresolved' => 'planned', 'matched' => 'running', 'actioned' => 'done', 'dismissed' => 'stopped', 'failed' => 'stopped', 'deferred_dmarc' => 'planned', 'dmarc_processed' => 'done', 'dmarc_unmatched' => 'planned', 'dmarc_ambiguous' => 'planned', 'dmarc_failed' => 'stopped', ][$status] ?? 'neutral'; $nhArWord = Lang::has('abuseReport.nh.statuses.'.$status) ? __('abuseReport.nh.statuses.'.$status) : $status; @endphp {{ $nhArWord }}