@if ($icon = $getIcon())
@endif
{{ $getLabel() }}
{{ $getValue() }}
@if ($description = $getDescription())
@if ($descriptionIcon && in_array($descriptionIconPosition, [IconPosition::Before, 'before']))
@endif
'text-gray-500 dark:text-gray-400',
default => 'fi-color-custom text-custom-600 dark:text-custom-400',
},
is_string($descriptionColor) ? "fi-color-{$descriptionColor}" : null,
])
@style([
\Filament\Support\get_color_css_variables(
$descriptionColor,
shades: [400, 600],
alias: 'widgets::stats-overview-widget.stat.description',
) => $descriptionColor !== 'gray',
])
>
{{ $description }}
@if ($descriptionIcon && in_array($descriptionIconPosition, [IconPosition::After, 'after']))
@endif
@endif
@if ($chart = $getChart())
{{-- An empty function to initialize the Alpine component with until it's loaded with `x-load`. This removes the need for `x-ignore`, allowing the chart to be updated via Livewire polling. --}}
null,
default => 'fi-color-custom',
},
is_string($chartColor) ? "fi-color-{$chartColor}" : null,
])
@style([
\Filament\Support\get_color_css_variables(
$chartColor,
shades: [50, 400, 500],
alias: 'widgets::stats-overview-widget.stat.chart',
) => $chartColor !== 'gray',
])
>
'text-gray-100 dark:text-gray-800',
default => 'text-custom-50 dark:text-custom-400/10',
},
])
>
'text-gray-400',
default => 'text-custom-500 dark:text-custom-400',
},
])
>
@endif