supervisor resource wip
This commit is contained in:
1 parent
769fbc242c
commit
944aa736b2
8 files changed
+45
-92
No files matched your search
@@ -5,8 +5,8 @@ namespace App\Filament\Resources\Supervisors\Tables;
|
||||
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;
|
||||
|
||||
class SupervisorsTable
|
||||
@@ -15,35 +15,25 @@ class SupervisorsTable
|
||||
{
|
||||
return $table
|
||||
->columns([
|
||||
TextColumn::make('id')->badge(),
|
||||
TextColumn::make('name')
|
||||
->searchable(),
|
||||
TextColumn::make('provider_id')
|
||||
->numeric()
|
||||
->sortable(),
|
||||
TextColumn::make('sport_id')
|
||||
->numeric()
|
||||
->sortable(),
|
||||
TextColumn::make('bookmaker_id')
|
||||
->numeric()
|
||||
->sortable(),
|
||||
TextColumn::make('sleep')
|
||||
->numeric()
|
||||
->sortable(),
|
||||
TextColumn::make('limit')
|
||||
->numeric()
|
||||
->sortable(),
|
||||
TextColumn::make('runtime')
|
||||
->searchable(),
|
||||
TextColumn::make('events')
|
||||
->numeric()
|
||||
->sortable(),
|
||||
TextColumn::make('lastcall')
|
||||
->numeric()
|
||||
->sortable(),
|
||||
IconColumn::make('is_cron')
|
||||
->boolean(),
|
||||
IconColumn::make('is_active')
|
||||
->boolean(),
|
||||
TextColumn::make('provider.name')
|
||||
->badge()->color(fn (string $state): string => match ($state) {
|
||||
'txodds' => 'danger',
|
||||
'bestapi' => 'success',
|
||||
'direct' => 'primary',
|
||||
default => 'warning',
|
||||
}),
|
||||
TextColumn::make('sport_id')->label('Sport'),
|
||||
TextColumn::make('bookmaker_id')->label('Book'),
|
||||
TextColumn::make('sleep')->numeric(),
|
||||
TextColumn::make('limit')->numeric(),
|
||||
TextColumn::make('runtime')->label('Duration'),
|
||||
TextColumn::make('events')->numeric(),
|
||||
TextColumn::make('lastcall'),
|
||||
ToggleColumn::make('is_cron')->label('Cron'),
|
||||
ToggleColumn::make('is_active')->label('Status'),
|
||||
TextColumn::make('created_at')
|
||||
->dateTime()
|
||||
->sortable()
|
||||
|
||||
Reference in new issue
Block a user