Added format using in line resource page #1212
@@ -1088,6 +1088,12 @@ class LineResource extends Resource
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('shift_flag')
|
||||
->label('Shift')
|
||||
->formatStateUsing(fn ($state) => match ((string) $state) {
|
||||
'0' => 'Day&Night',
|
||||
'1' => 'Day',
|
||||
'2' => 'Night',
|
||||
default => 'Unknown',
|
||||
})
|
||||
->alignCenter()
|
||||
->sortable()
|
||||
->searchable(),
|
||||
|
||||
Reference in New Issue
Block a user