Select and TextColumn with Associative Array
May I make and external array like
or
and in
how to show the value in state of the key?
eg. when selected -1, show the word 'Terminated' instate of -1.
Thank you
use Filament\Forms\Components\Select;
Select::make('status')
->options([
-1 => 'Terminated',
0 => 'Pending',
1 => 'Approved',
]),$status = [
-1 => 'Terminated',
0 => 'Pending',
1 => 'Approved',
]Select::make('status')
->options($status),Select::make('status')
->options($this->status),TextColumn::make('status'),