wip supervisor
This commit is contained in:
1 parent
e46722a6f8
commit
769fbc242c
40 files changed
+834
-52
No files matched your search
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
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\Table;
|
||||
|
||||
class SupervisorsTable
|
||||
{
|
||||
public static function configure(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->columns([
|
||||
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('created_at')
|
||||
->dateTime()
|
||||
->sortable()
|
||||
->toggleable(isToggledHiddenByDefault: true),
|
||||
TextColumn::make('updated_at')
|
||||
->dateTime()
|
||||
->sortable()
|
||||
->toggleable(isToggledHiddenByDefault: true),
|
||||
])
|
||||
->filters([
|
||||
//
|
||||
])
|
||||
->recordActions([
|
||||
EditAction::make(),
|
||||
])
|
||||
->toolbarActions([
|
||||
BulkActionGroup::make([
|
||||
DeleteBulkAction::make(),
|
||||
]),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user