a
This commit is contained in:
1 parent
853c6aaf8a
commit
84bfa248cd
2 files changed
+51
-29
No files matched your search
@@ -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' => '<span class="text-green-500">Missing</div>',
|
||||
'sp3' => '<span class="text-amber-500">Favorit ≥ </div>',
|
||||
'sp4' => '<span class="text-amber-500">Favorit ≤ </div>',
|
||||
'sp5' => '<span class="text-amber-500">X ≤ </div>',
|
||||
'sp6' => '<span class="text-amber-500">Margin ≥ </div>',
|
||||
'sp7' => '<span class="text-amber-500">Margin ≤ </div>',
|
||||
'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' => '<span class="text-blue-500">Nigeria > Colombia</div>',
|
||||
'sp2' => '<span class="text-blue-500">Nigeria < Colombia</div>',
|
||||
],
|
||||
'Odds' => [
|
||||
'sp3' => '<span class="text-amber-500">Favorit < Sportingbet</div>',
|
||||
'sp4' => '<span class="text-amber-500">Favorit > Sportingbet</div>',
|
||||
'sp5' => '<span class="text-amber-500">Favorit < Bet365</div>',
|
||||
'sp6' => '<span class="text-amber-500">Favorit > Bet365</div>',
|
||||
],
|
||||
]),
|
||||
->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')
|
||||
|
||||
@@ -1,12 +1,22 @@
|
||||
<div class="flex flex-row gap-2">
|
||||
|
||||
|
||||
<x-filament::button size="xs" tooltip="Today" :color="auth()->user()->stars ? 'primary' : 'gray'" icon="phosphor-calendar-dot">
|
||||
</x-filament::button>
|
||||
<x-filament::button size="xs" tooltip="Tomorrow" :color="auth()->user()->stars ? 'primary' : 'gray'" icon="phosphor-calendar-check">
|
||||
</x-filament::button>
|
||||
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
|
||||
@role('partner_porgramm')
|
||||
<x-filament::button size="xs" tooltip="Toggle Partner" wire:click="toggleStar" :color="auth()->user()->stars ? 'primary' : 'gray'"
|
||||
<x-filament::button size="xs" tooltip="Show Partner Odds" wire:click="toggleStar" :color="auth()->user()->stars ? 'primary' : 'gray'"
|
||||
icon="phosphor-users">
|
||||
</x-filament::button>
|
||||
|
||||
<x-filament::button disabled="true" size="xs" tooltip="Toggle Partner" wire:click="toggleStar" :color="auth()->user()->stars ? 'primary' : 'gray'"
|
||||
icon="phosphor-not-equals">
|
||||
<x-filament::button disabled="true" size="xs" tooltip="Filter Partner Odds" wire:click="toggleStar"
|
||||
:color="auth()->user()->stars ? 'primary' : 'gray'" icon="phosphor-not-equals">
|
||||
</x-filament::button>
|
||||
|
||||
<div></div>
|
||||
|
||||
Reference in new issue
Block a user