return [
Stat::make($this->widget->name, reset($stats))
->description(new HtmlString($this->widget->description))
->extraAttributes([
'class' => 'cursor-pointer widget-edit-hover transition-all duration-300 ease-in-out',
'wire:click' => "\$dispatch('widget-edit', { id: " . $this->widget->id . " })",
])
->descriptionIcon('heroicon-m-arrow-trending-up')
->color($this->widget->color)
];
return [
Stat::make($this->widget->name, reset($stats))
->description(new HtmlString($this->widget->description))
->extraAttributes([
'class' => 'cursor-pointer widget-edit-hover transition-all duration-300 ease-in-out',
'wire:click' => "\$dispatch('widget-edit', { id: " . $this->widget->id . " })",
])
->descriptionIcon('heroicon-m-arrow-trending-up')
->color($this->widget->color)
];