->icon(fn(Story $state) => match($state->status){ StoryStatusEnum::Accepted => 'heroicon-s-heart', StoryStatusEnum::Completed => 'heroicon-m-fire', StoryStatusEnum::FactReview, StoryStatusEnum::AccuracyReview => 'heroicon-m-chat-bubble-bottom-center', default => 'heroicon-s-currency-dollar' })
->icon(fn($state) => match($state->status){ StoryStatusEnum::Accepted => 'heroicon-s-heart', StoryStatusEnum::Completed => 'heroicon-m-fire', StoryStatusEnum::FactReview, StoryStatusEnum::AccuracyReview => 'heroicon-m-chat-bubble-bottom-center', default => 'heroicon-s-currency-dollar' })
TextColumn::make('authoredStories')->badge()->formatStateUsing(fn($state) => $state->name)->color(fn(User $record, $state) => $state->completed ? 'success': 'primary'),
@if ($isBadge) <x-filament::badge :color="$color" :icon="$icon" :icon-position="$iconPosition" > {{ $formattedState }} </x-filament::badge> @else