@php
$badgeClass = match ($status ?? 'info') {
'approved' => 'badge approved',
'rejected' => 'badge rejected',
'invalid' => 'badge invalid',
default => 'badge info',
};
$badgeText = strtoupper($status ?? 'INFO');
@endphp
{{ $badgeText }}
{{ $title ?? 'Result' }}
{{ $message ?? '' }}
@if ($status != 'info')
@endif
{{-- optional button back to portal --}}
{{--
Back to Portal --}}