add alarm level from db
This commit is contained in:
1 parent
4e77862aa7
commit
40f40db63c
28 files changed
+248
-251
No files matched your search
@@ -2,8 +2,7 @@
|
||||
|
||||
namespace App\Filament\Resources\Clients\Tables;
|
||||
|
||||
use App\Actions\AlarmGenerator;
|
||||
use App\Actions\MultilineGenerator;
|
||||
use App\Actions\SettingGeneratorClient;
|
||||
use App\Models\Bookmaker;
|
||||
use App\Models\Provider;
|
||||
use App\Models\Sport;
|
||||
@@ -37,17 +36,11 @@ class ClientsTable
|
||||
->formatStateUsing(fn (string $state): string => Sport::where('id', $state)->pluck('name')->first()),
|
||||
])
|
||||
->recordActions([
|
||||
Action::make('multiline')
|
||||
Action::make('Create Settings')
|
||||
->icon('phosphor-gear-fine')
|
||||
->tooltip('Generates basic alarm configuration for client')
|
||||
->tooltip('Generates basic configuration for client')
|
||||
->action(function ($record) {
|
||||
MultilineGenerator::run($record);
|
||||
}),
|
||||
Action::make('alarm')
|
||||
->icon('phosphor-gear-fine')
|
||||
->tooltip('Generates basic multiline configuration for client')
|
||||
->action(function ($record) {
|
||||
AlarmGenerator::run($record);
|
||||
SettingGeneratorClient::run($record);
|
||||
}),
|
||||
EditAction::make()->hiddenLabel(),
|
||||
]);
|
||||
|
||||
Reference in new issue
Block a user