Files
WMS/Modules/Helpdesk/Resources/views/components/colour-badge.blade.php
T
2026-09-15 12:33:28 +01:00

17 lines
455 B
PHP

@props([
'color' => 'gray',
'label' => null,
])
@php
$background = \Modules\Helpdesk\Support\Color::css($color);
$foreground = \Modules\Helpdesk\Support\Color::text($color);
@endphp
<span
{{ $attributes->class('inline-flex items-center rounded-full px-2.5 py-1 text-xs font-semibold shadow-sm ring-1 ring-zinc-900/10') }}
style="background-color: {{ $background }}; color: {{ $foreground }};"
>
{{ $label ?? $slot }}
</span>