Files
NextChair/resources/views/components/ui/badge.blade.php
T
Stefan Lazic 2ef3654841
CI / ci (push) Canceled after 0s
PHP Rebuild
Initial PHP rebuild of the app
2026-09-05 08:21:33 +01:00

12 lines
409 B
PHP

@props(['tone' => 'default'])
@php
$classes = match ($tone) {
'accent' => 'bg-emerald-50 text-accent-foreground',
'loyalty' => 'bg-amber-50 text-amber-800',
default => 'bg-stone text-muted',
};
@endphp
<span {{ $attributes->merge(['class' => "inline-flex items-center rounded-full px-3 py-1 text-[10px] font-bold uppercase tracking-widest {$classes}"]) }}>{{ $slot }}</span>