Update RemoteBackupServerResource.php

This commit is contained in:
Bozhidar 2024-04-29 14:17:30 +03:00
parent 04330ef8b0
commit 1b4c35819e

View file

@ -72,7 +72,12 @@ class RemoteBackupServerResource extends Resource
Tables\Columns\TextColumn::make('name'),
Tables\Columns\TextColumn::make('type')->badge(),
Tables\Columns\TextColumn::make('hostname'),
Tables\Columns\TextColumn::make('status')->badge(),
Tables\Columns\TextColumn::make('status')
->badge()
->color(fn (string $state): string => match ($state) {
'online' => 'success',
'offline' => 'danger',
})
])
->filters([
//