This commit is contained in:
salam committed 2026-01-08 19:57:49 +01:00
1 parent 4f9125ef12
commit 61418c8cee
47 files changed
+726 -221

No files matched your search

@@ -50,9 +50,9 @@ class EventsTable
public static $odds_ggng = [];
public static $odds_handicaps = [];
public static $odds_points = [];
public static $odds_handicaps_q1 = [];
public static $odds_points_q1 = [];
public static $odds_2ways = [];
@@ -84,10 +84,10 @@ class EventsTable
break;
case 8:
case 14:
self::$odds_handicaps[] = $value->bookmaker_id;
self::$odds_points[] = $value->bookmaker_id;
break;
case 9:
self::$odds_handicaps_q1[] = $value->bookmaker_id;
self::$odds_points_q1[] = $value->bookmaker_id;
break;
case 7:
case 12:
@@ -2,7 +2,6 @@
namespace App\Filament\Resources\Supervisors\Schemas;
use App\Models\Sport;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Components\Section;
@@ -19,12 +18,7 @@ class SupervisorForm
->required()
->preload(),
Select::make('sport_id')
->options(function () {
$res = Sport::where('is_active', 1)->pluck('name', 'id')->toArray();
array_unshift($res, 'All');
return $res;
})
->relationship('sport', 'name')
->nullable(),
TextInput::make('sleep')->default(15),
@@ -20,7 +20,7 @@ class SupervisorsTable
return $table
->striped()
->columns([
TextColumn::make('id')->badge(),
TextColumn::make('id')->badge()->alignCenter(),
TextColumn::make('provider.name')->badge()
->color(fn ($record): string => match ($record->provider_id) {
1 => 'danger',
@@ -36,7 +36,7 @@ class SupervisorsTable
'Bet365' => 'Bet365',
'Betfair' => 'Betfair',
]),
TextColumn::make('sport.name')->label('Sport')->color(fn ($record): string => $record->sport->color),
TextColumn::make('sport.name')->label('Sport'),
TextColumn::make('days_from')->label('From'),
TextColumn::make('days_to')->label('To'),
TextColumn::make('sleep')->numeric(),