email_verified_at icon not showing when not verified

I'm attempting to display an icon indicating whether the email is verified or not in the IconColumn for the email_verified_at column. In my case, the icon is displayed when the email is verified, but it does not appear when it is not verified.

I tried:
IconColumn::make('email_verified_at') ->icon(fn (string $state): string => match ($state) { default => 'heroicon-o-check-circle', NULL => 'heroicon-o-x-circle', })
veriifiedIcon.png
Solution
use it like this:
Tables\Columns\IconColumn::make('email_verified_at')
                 ->label('Verified')
                ->boolean()
                ->trueIcon('heroicon-o-badge-check')
                ->falseIcon('heroicon-o-x-circle')
                ->default(0),
Was this page helpful?