columns([ TextColumn::make('group')->formatStateUsing(fn(string $state): string => match ($state) { 'gls' => 'Goals', 'crn' => 'Corner', 'fls' => 'Fouls', 'ofs' => 'Offside', 'crd' => 'Cards', 'snt' => 'Shots On Target', 'tsh' => 'Total Shots', }), TextColumn::make('team')->badge() ->color(fn(string $state): string => match ($state) { 'home' => 'info', 'away' => 'warning', }), TextColumn::make('varname') ->formatStateUsing(fn(string $state): string => strtoupper($state)), TextInputColumn::make('value') ->prefix('xx.x') ->type('number') ->rules(['required', 'decimal:0.1,10']), ]) ->filters([ SelectFilter::make('group') ->options([ 'gls' => 'Goals', 'crn' => 'Corner', 'fls' => 'Fouls Commited', 'ofs' => 'Offside', 'crd' => 'Cards', 'snt' => 'Shots On Target', 'tsh' => 'Total Shots', ]), SelectFilter::make('team') ->options([ 'home' => 'Home', 'away' => 'Away', ]) ], layout: FiltersLayout::AboveContent) ->deferFilters(false); } }