@php use App\Enums\Common\Status; @endphp @props([ 'status' => Status::Draft, 'label' => 'publication-label', 'toggleUrl' => null ]) @php $variant = match ($status) { Status::Publish => 'green', Status::Draft => 'red', }; @endphp
{{ $status->getLabel($label) }}