Merge pull request 'Added format using in line resource page' (#1212) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Reviewed-on: #1212
This commit was merged in pull request #1212.
This commit is contained in:
@@ -1088,6 +1088,12 @@ class LineResource extends Resource
|
|||||||
->sortable(),
|
->sortable(),
|
||||||
Tables\Columns\TextColumn::make('shift_flag')
|
Tables\Columns\TextColumn::make('shift_flag')
|
||||||
->label('Shift')
|
->label('Shift')
|
||||||
|
->formatStateUsing(fn ($state) => match ((string) $state) {
|
||||||
|
'0' => 'Day&Night',
|
||||||
|
'1' => 'Day',
|
||||||
|
'2' => 'Night',
|
||||||
|
default => 'Unknown',
|
||||||
|
})
|
||||||
->alignCenter()
|
->alignCenter()
|
||||||
->sortable()
|
->sortable()
|
||||||
->searchable(),
|
->searchable(),
|
||||||
|
|||||||
Reference in New Issue
Block a user