diff --git a/app/Filament/Resources/Events/Tables/EventsTable.php b/app/Filament/Resources/Events/Tables/EventsTable.php index 49fc6837..d27fe0d5 100644 --- a/app/Filament/Resources/Events/Tables/EventsTable.php +++ b/app/Filament/Resources/Events/Tables/EventsTable.php @@ -89,6 +89,10 @@ class EventsTable EventColumn::make('event'), + IconColumn::make('alarm')->icon('phosphor-sirene'), + + IconColumn::make('note')->icon('phosphor-note'), + TooltipOdds::make('ml')->bettype('odds_2ways')->label('')->visible(fn () => in_array('odds_2ways', self::$bettype_settings)), ColumnOdds::make('odds_2ways')->bettype('odds_2ways') ->visible(fn () => in_array('odds_2ways', self::$bettype_settings)) @@ -276,6 +280,7 @@ class EventsTable TextInput::make('favorit_threshold') ->prefixIcon('phosphor-less-than') + ->hintIconTooltip('Filter Favorit') ->suffix('Favorit') ->numeric() ->minValue(1.01) @@ -284,40 +289,46 @@ class EventsTable ->hiddenLabel() ->live(), - Select::make('special_filter_base') - ->placeholder('Filters Base') + Select::make('special_filter_lteq') + ->placeholder('Compare') ->prefixIcon('phosphor-funnel') ->hiddenLabel() - ->native(false) ->allowHtml() ->options([ - 'sp8' => 'Missing', - 'sp3' => 'Favorit ≥ ', - 'sp4' => 'Favorit ≤ ', - 'sp5' => 'X ≤ ', - 'sp6' => 'Margin ≥ ', - 'sp7' => 'Margin ≤ ', + 'Compare Favorits' => [ + 'flte1' => 'Favorit ≤ Marathonbet', + 'flte2' => 'Favorit ≤ Bet365', + 'flte3' => 'Favorit ≤ 1Bet', + 'flte4' => 'Favorit ≤ Eurobet', + 'mlt1' => 'Favorit ≥ Marathonbet', + 'mlt2' => 'Favorit ≥ Bet365', + 'mlt3' => 'Favorit ≥ 1Bet', + 'mlt4' => 'Favorit ≥ Eurobet', + ], + 'Compare Margins' => [ + 'mgt1' => 'Margin ≥ Marathonbet', + 'mgt2' => 'Margin ≥ Bet365', + 'mgt3' => 'Margin ≥ 1Bet', + 'mgt4' => 'Margin ≥ Eurobet', + 'mlt1' => 'Margin < Marathonbet', + 'mlt2' => 'Margin < Bet365', + 'mlt3' => 'Margin < 1Bet', + 'mlt4' => 'Margin < Eurobet', + ], + 'Compare X' => [ + 'xlt1' => 'X < Marathonbet', + 'xlt2' => 'X < Bet365', + 'xlt3' => 'X < 1Bet', + 'xlt4' => 'X < Eurobet', + ], ]), - Select::make('special_filter') - ->placeholder('Special Filters') - ->prefixIcon('phosphor-funnel') + Select::make('filter_missing') + ->placeholder('Missing') + ->prefixIcon('phosphor-cow') ->hiddenLabel() - ->disabled() - ->native(false) ->allowHtml() - ->options([ - 'Events' => [ - 'sp1' => 'Nigeria > Colombia', - 'sp2' => 'Nigeria < Colombia', - ], - 'Odds' => [ - 'sp3' => 'Favorit < Sportingbet', - 'sp4' => 'Favorit > Sportingbet', - 'sp5' => 'Favorit < Bet365', - 'sp6' => 'Favorit > Bet365', - ], - ]), + ->options([1 => '1Bets']), ]) ->query(function (Builder $query, array $data): Builder { return $query->when( @@ -513,6 +524,7 @@ class EventsTable }), ], layout: FiltersLayout::AboveContent) ->deferFilters(false) + ->hiddenFilterIndicators(false) ->persistFiltersInSession() ->recordActions([ Action::make('star') diff --git a/resources/views/livewire/bettype-toggle.blade.php b/resources/views/livewire/bettype-toggle.blade.php index 94e353b8..71847dab 100644 --- a/resources/views/livewire/bettype-toggle.blade.php +++ b/resources/views/livewire/bettype-toggle.blade.php @@ -1,12 +1,22 @@
+ + + + + + +
+
+
+ @role('partner_porgramm') - - +