orientierung
This commit is contained in:
1 parent
326d827543
commit
0b1a1493b2
15 files changed
+363
-6
No files matched your search
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\Orientierungs\Tables;
|
||||
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Filters\SelectFilter;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
class OrientierungsTable
|
||||
{
|
||||
public static function configure(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->columns([
|
||||
TextColumn::make('name')
|
||||
->color(fn ($record): string => match ($record->seitig) {
|
||||
1 => 'primary',
|
||||
2 => 'warning',
|
||||
3 => 'success',
|
||||
4 => 'danger',
|
||||
5 => 'indigo',
|
||||
default => 'gray',
|
||||
}),
|
||||
])
|
||||
->filters([
|
||||
SelectFilter::make('seitig')
|
||||
->options([
|
||||
'1' => 'E I N S E I T I G',
|
||||
'2' => 'Z W E I S E I T I G',
|
||||
'3' => 'D R E I S E I T I G',
|
||||
'4' => 'V I E R S E I T I G',
|
||||
'5' => 'E X T R A S',
|
||||
]),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user