@props(['status' => 'draft'])

@php
$config = match($status) {
    'draft' => ['label' => '임시저장', 'class' => 'bg-gray-100 text-gray-700'],
    'pending' => ['label' => '진행', 'class' => 'bg-blue-100 text-blue-700'],
    'approved' => ['label' => '완료', 'class' => 'bg-green-100 text-green-700'],
    'rejected' => ['label' => '반려', 'class' => 'bg-red-100 text-red-700'],
    'cancelled' => ['label' => '회수', 'class' => 'bg-yellow-100 text-yellow-700'],
    'on_hold' => ['label' => '보류', 'class' => 'bg-amber-100 text-amber-700'],
    default => ['label' => $status, 'class' => 'bg-gray-100 text-gray-700'],
};
@endphp

<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium {{ $config['class'] }}">
    {{ $config['label'] }}
</span>
