{{-- A job's status as a label: the status name with an icon, tinted by the stage of the job's life (the colour only supports the text). Takes the JobStatus enum or its value. --}} @props(['status']) @php $value = $status instanceof \BackedEnum ? $status->value : $status; [$tone, $icon] = match ($value) { 'prospect' => ['neutral', 'light-bulb'], 'tentative' => ['neutral', 'question-mark-circle'], 'quote_request' => ['violet', 'document-text'], 'order' => ['info', 'clipboard-document-check'], 'in_production' => ['primary', 'cog-6-tooth'], 'on_hold' => ['warning', 'pause-circle'], 'done' => ['success', 'check-circle'], 'invoiced' => ['info', 'document-currency-euro'], 'billed' => ['success', 'banknotes'], 'ongoing' => ['primary', 'arrow-path'], 'archived' => ['neutral', 'archive-box'], default => ['neutral', null], }; @endphp {{ __('jobs.statuses.'.$value) }}