grapper wip
This commit is contained in:
1 parent
944aa736b2
commit
adb15e701b
9 files changed
+95
-68
No files matched your search
@@ -2,9 +2,11 @@
|
||||
|
||||
namespace App\Filament\Resources\Supervisors\Tables;
|
||||
|
||||
use App\Models\Bookmaker;
|
||||
use Filament\Actions\BulkActionGroup;
|
||||
use Filament\Actions\DeleteBulkAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Tables\Columns\IconColumn;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Columns\ToggleColumn;
|
||||
use Filament\Tables\Table;
|
||||
@@ -18,6 +20,7 @@ class SupervisorsTable
|
||||
TextColumn::make('id')->badge(),
|
||||
TextColumn::make('name')
|
||||
->searchable(),
|
||||
TextColumn::make('type')->badge(),
|
||||
TextColumn::make('provider.name')
|
||||
->badge()->color(fn (string $state): string => match ($state) {
|
||||
'txodds' => 'danger',
|
||||
@@ -25,15 +28,19 @@ class SupervisorsTable
|
||||
'direct' => 'primary',
|
||||
default => 'warning',
|
||||
}),
|
||||
TextColumn::make('sport_id')->label('Sport'),
|
||||
TextColumn::make('bookmaker_id')->label('Book'),
|
||||
TextColumn::make('sport.name')->label('Sport'),
|
||||
IconColumn::make('bookmaker_id')
|
||||
->label('Book')
|
||||
->icon(function ($state): string {
|
||||
if ($state) {
|
||||
return 'bkm-'.Bookmaker::where('id', $state)->pluck('icon')->first();
|
||||
}
|
||||
}),
|
||||
TextColumn::make('sleep')->numeric(),
|
||||
TextColumn::make('limit')->numeric(),
|
||||
TextColumn::make('runtime')->label('Duration'),
|
||||
TextColumn::make('events')->numeric(),
|
||||
TextColumn::make('runtime'),
|
||||
TextColumn::make('lastcall'),
|
||||
ToggleColumn::make('is_cron')->label('Cron'),
|
||||
ToggleColumn::make('is_active')->label('Status'),
|
||||
IconColumn::make('is_cron')->boolean()->label('Cron')->falseColor('gray'),
|
||||
ToggleColumn::make('is_active')->label('On/Off'),
|
||||
TextColumn::make('created_at')
|
||||
->dateTime()
|
||||
->sortable()
|
||||
|
||||
Reference in new issue
Block a user