@props(['status', 'applicantView' => false])

{{-- Renders any of the domain enums that expose label()/color(). --}}
@php
    $label = $applicantView && method_exists($status, 'applicantLabel')
        ? $status->applicantLabel()
        : $status->label();
@endphp

<x-badge :color="$status->color()" {{ $attributes }}>{{ $label }}</x-badge>
