changes to grapper wip
This commit is contained in:
1 parent
361e5ed3ed
commit
9214da8a15
9 files changed
+445
-201
No files matched your search
@@ -13,7 +13,6 @@ use Filament\Actions\DeleteBulkAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Support\Enums\FontWeight;
|
||||
use Filament\Support\Enums\Size;
|
||||
use Filament\Support\Enums\TextSize;
|
||||
use Filament\Tables\Columns\Layout\Split;
|
||||
use Filament\Tables\Columns\Layout\Stack;
|
||||
@@ -42,7 +41,7 @@ class SupervisorsTable
|
||||
->weight(FontWeight::Black)
|
||||
->size(TextSize::Large),
|
||||
TextColumn::make('provider.name')
|
||||
->color(fn($record): string => match ($record->provider_id) {
|
||||
->color(fn ($record): string => match ($record->provider_id) {
|
||||
1 => 'danger',
|
||||
8 => 'danger',
|
||||
2 => 'success',
|
||||
@@ -107,7 +106,8 @@ class SupervisorsTable
|
||||
case 12:
|
||||
return [
|
||||
'TOURNAMENTS' => 'TOURNAMENTS',
|
||||
'EVENTS' => 'EVENTS',
|
||||
'EVENTS' => 'EVENTS Comandline',
|
||||
'EVENTSDB' => 'EVENTS Database',
|
||||
'SPECIAL' => 'SPECIAL',
|
||||
];
|
||||
default:
|
||||
@@ -118,7 +118,7 @@ class SupervisorsTable
|
||||
->hidden(function (ListSupervisors $livewire) {
|
||||
return in_array($livewire->tableFilters['provider_id']['value'], [11]);
|
||||
})
|
||||
->options(fn() => Sport::where('is_active', 1)->pluck('name', 'id'))
|
||||
->options(fn () => Sport::where('is_active', 1)->pluck('name', 'id'))
|
||||
->placeholder('All'),
|
||||
SelectColumn::make('txodds_market_id')
|
||||
->visible(function (ListSupervisors $livewire) {
|
||||
@@ -153,7 +153,7 @@ class SupervisorsTable
|
||||
TextColumn::make('lastcall')
|
||||
->prefix('Lastcall: ')
|
||||
->badge()
|
||||
->color(fn($state): string => ($state > 0 && $state > time() - 300) ? 'success' : 'danger')
|
||||
->color(fn ($state): string => ($state > 0 && $state > time() - 300) ? 'success' : 'danger')
|
||||
->dateTime()
|
||||
->visible(function (ListSupervisors $livewire) {
|
||||
return $livewire->tableFilters['provider_id']['value'] == 8;
|
||||
|
||||
Reference in new issue
Block a user