@props(['situacao'])

@php
    $mapa = [
        'autorizada' => ['Autorizada', 'bg-emerald-50 text-emerald-700 ring-1 ring-emerald-200'],
        'cancelada' => ['Cancelada', 'bg-rose-50 text-rose-700 ring-1 ring-rose-200'],
        'denegada' => ['Denegada', 'bg-amber-50 text-amber-800 ring-1 ring-amber-200'],
    ];
    [$rotulo, $classe] = $mapa[$situacao] ?? [ucfirst((string) $situacao), 'bg-slate-100 text-slate-700'];
@endphp

<span class="badge {{ $classe }}">{{ $rotulo }}</span>
