@php use Filament\Support\Facades\FilamentView; $color = $this->getColor(); $heading = $this->getHeading(); $description = $this->getDescription(); $label = $this->getLabel(); $filters = $this->getFilters(); $icon = $this->getIcon(); $iconColor = $this->getIconColor(); $iconBackgroundColor = filled($this->getIconBackgroundColor()) ? match ($this->getIconBackgroundColor()) { 'primary' => 'bg-primary-200 dark:bg-primary-950', 'secondary' => 'bg-secondary-200 dark:bg-secondary-950', 'success' => 'bg-success-200 dark:bg-success-950', 'danger' => 'bg-danger-200 dark:bg-danger-950', 'warning' => 'bg-warning-200 dark:bg-warning-950', 'info' => 'bg-info-200 dark:bg-info-950', default => 'bg-gray-200 dark:bg-gray-950', }:""; $badge = $this->getBadge(); $badgeColor = $this->getBadgeColor(); $badgeIcon = $this->getBadgeIcon(); $badgeIconPosition = $this->getBadgeIconPosition(); $badgeSize = $this->getBadgeSize(); @endphp @if ($filters) @foreach ($filters as $value => $label) @endforeach @endif
getPollingInterval()) wire:poll.{{ $pollingInterval }}="updateChartData" @endif>
null, default => 'fi-color-custom', }, is_string($color) ? "fi-color-{$color}" : null, ])> getMaxHeight()) style="max-height: {{ $maxHeight }}" @endif> 'text-gray-100 dark:text-gray-800', default => 'text-custom-50 dark:text-custom-400/10', }, ]) @style([ \Filament\Support\get_color_css_variables($color, shades: [50, 400], alias: 'widgets::chart-widget.background') => $color !== 'gray', ])> 'text-gray-400', default => 'text-custom-500 dark:text-custom-400', }, ]) @style([ \Filament\Support\get_color_css_variables($color, shades: [400, 500], alias: 'widgets::chart-widget.border') => $color !== 'gray', ])>