public static function table(Table $table): Table
{
return $table
->columns([
Tables\Columns\TextColumn::make('domain')->searchable(),
Tables\Columns\BadgeColumn::make('domain_status')
->colors([
'success' => static fn ($status): bool => strpos(strtolower($status), 'vrij') !== false,
'danger' => static fn ($status): bool => strpos(strtolower($status), 'bezet') !== false,
]),
Tables\Columns\TextColumn::make('domainextension.price'),
])
public static function table(Table $table): Table
{
return $table
->columns([
Tables\Columns\TextColumn::make('domain')->searchable(),
Tables\Columns\BadgeColumn::make('domain_status')
->colors([
'success' => static fn ($status): bool => strpos(strtolower($status), 'vrij') !== false,
'danger' => static fn ($status): bool => strpos(strtolower($status), 'bezet') !== false,
]),
Tables\Columns\TextColumn::make('domainextension.price'),
])