Custom Icon Column

Trying to figure out what I am doing wrong here, I am viewing a User and want to show a checkmark on the user resource if they have a gallery item and they have verified their email. It is making the column but the column is blank.


Tables\Columns\IconColumn::make('Onboarded')
                    ->icon(function ($record) {
                        return $record->profile->hasMedia('gallery')
                            && $record->email_verified_at !== NULL
                            ? 'heroicon-o-clock'
                            : 'heroicon-o-check-circle';
                    }),
image.png
Was this page helpful?