Overview
Icon entries render an icon representing their contents:$state is the value of the entry, and $record can be used to access the underlying Eloquent record.
Customizing the color
Icon entries may also have a set of icon colors, using the same syntax. They may be eitherdanger, gray, info, primary, success or warning:
$state is the value of the entry, and $record can be used to access the underlying Eloquent record.
Customizing the size
The default icon size isIconEntrySize::Large, but you may customize the size to be either IconEntrySize::ExtraSmall, IconEntrySize::Small, IconEntrySize::Medium, IconEntrySize::ExtraLarge or IconEntrySize::TwoExtraLarge:
Handling booleans
Icon entries can display a check or cross icon based on the contents of the database entry, either true or false, using theboolean() method:
If this column in the model class is already cast as aboolorboolean, Filament is able to detect this, and you do not need to useboolean()manually.
Customizing the boolean icons
You may customize the icon representing each state. Icons are the name of a Blade component present. By default, Heroicons are installed:Customizing the boolean colors
You may customize the icon color representing each state. These may be eitherdanger, gray, info, primary, success or warning: