<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['status', 'tone' => null]));

foreach ($attributes->all() as $__key => $__value) {
    if (in_array($__key, $__propNames)) {
        $$__key = $$__key ?? $__value;
    } else {
        $__newAttributes[$__key] = $__value;
    }
}

$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);

unset($__propNames);
unset($__newAttributes);

foreach (array_filter((['status', 'tone' => null]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
}

$__defined_vars = get_defined_vars();

foreach ($attributes->all() as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
}

unset($__defined_vars, $__key, $__value); ?>

<?php
    $map = [
        'active' => 'bg-emerald-100 text-emerald-800 dark:bg-emerald-950/30 dark:text-emerald-400',
        'completed' => 'bg-emerald-100 text-emerald-800 dark:bg-emerald-950/30 dark:text-emerald-400',
        'pending' => 'bg-amber-100 text-amber-800 dark:bg-amber-950/30 dark:text-amber-400',
        'cancelled' => 'bg-rose-100 text-rose-800 dark:bg-rose-950/30 dark:text-rose-400',
        'inactive' => 'bg-slate-100 text-slate-700 dark:bg-slate-800/40 dark:text-slate-400',
    ];
    $statusClass = $tone ?: ($map[strtolower($status)] ?? 'bg-slate-100 text-slate-700 dark:bg-slate-800/40 dark:text-slate-400');
?>
<span <?php echo e($attributes->merge(['class' => 'inline-block text-xs font-bold px-2.5 py-1 rounded-full ' . $statusClass])); ?>><?php echo e(ucfirst($status)); ?></span>
<?php /**PATH /Users/mac/Documents/e-com/resources/views/components/admin/status-badge.blade.php ENDPATH**/ ?>