@props([
'chart' => null,
'chartColor' => null,
'color' => null,
'icon' => null,
'description' => null,
'descriptionColor' => null,
'descriptionIcon' => null,
'descriptionIconPosition' => 'after',
'flat' => false,
'label' => null,
'tag' => 'div',
'value' => null,
'extraAttributes' => [],
])
<{!! $tag !!}
{{ $attributes->merge($extraAttributes)->class([
'filament-stats-card relative p-6 rounded-2xl bg-white shadow',
'dark:bg-gray-800' => config('filament.dark_mode'),
]) }}
>
config('filament.dark_mode'),
])>
@if ($icon)
@endif
{{ $label }}
{{ $value }}
@if ($description)
'text-danger-600',
'primary' => 'text-primary-600',
'success' => 'text-success-600',
'warning' => 'text-warning-600',
default => 'text-gray-600',
},
])>
@if ($descriptionIcon && $descriptionIconPosition === 'before')
@endif
{{ $description }}
@if ($descriptionIcon && $descriptionIconPosition === 'after')
@endif
@endif
@if ($chart)
@endif
{!! $tag !!}>