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'),
|
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)),
|
TooltipOdds::make('ml')->bettype('odds_2ways')->label('')->visible(fn () => in_array('odds_2ways', self::$bettype_settings)),
|
||||||
ColumnOdds::make('odds_2ways')->bettype('odds_2ways')
|
ColumnOdds::make('odds_2ways')->bettype('odds_2ways')
|
||||||
->visible(fn () => in_array('odds_2ways', self::$bettype_settings))
|
->visible(fn () => in_array('odds_2ways', self::$bettype_settings))
|
||||||
@@ -276,6 +280,7 @@ class EventsTable
|
|||||||
|
|
||||||
TextInput::make('favorit_threshold')
|
TextInput::make('favorit_threshold')
|
||||||
->prefixIcon('phosphor-less-than')
|
->prefixIcon('phosphor-less-than')
|
||||||
|
->hintIconTooltip('Filter Favorit')
|
||||||
->suffix('Favorit')
|
->suffix('Favorit')
|
||||||
->numeric()
|
->numeric()
|
||||||
->minValue(1.01)
|
->minValue(1.01)
|
||||||
@@ -284,40 +289,46 @@ class EventsTable
|
|||||||
->hiddenLabel()
|
->hiddenLabel()
|
||||||
->live(),
|
->live(),
|
||||||
|
|
||||||
Select::make('special_filter_base')
|
Select::make('special_filter_lteq')
|
||||||
->placeholder('Filters Base')
|
->placeholder('Compare')
|
||||||
->prefixIcon('phosphor-funnel')
|
->prefixIcon('phosphor-funnel')
|
||||||
->hiddenLabel()
|
->hiddenLabel()
|
||||||
->native(false)
|
|
||||||
->allowHtml()
|
->allowHtml()
|
||||||
->options([
|
->options([
|
||||||
'sp8' => '<span class="text-green-500">Missing</div>',
|
'Compare Favorits' => [
|
||||||
'sp3' => '<span class="text-amber-500">Favorit ≥ </div>',
|
'flte1' => 'Favorit ≤ Marathonbet',
|
||||||
'sp4' => '<span class="text-amber-500">Favorit ≤ </div>',
|
'flte2' => 'Favorit ≤ Bet365',
|
||||||
'sp5' => '<span class="text-amber-500">X ≤ </div>',
|
'flte3' => 'Favorit ≤ 1Bet',
|
||||||
'sp6' => '<span class="text-amber-500">Margin ≥ </div>',
|
'flte4' => 'Favorit ≤ Eurobet',
|
||||||
'sp7' => '<span class="text-amber-500">Margin ≤ </div>',
|
'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')
|
Select::make('filter_missing')
|
||||||
->placeholder('Special Filters')
|
->placeholder('Missing')
|
||||||
->prefixIcon('phosphor-funnel')
|
->prefixIcon('phosphor-cow')
|
||||||
->hiddenLabel()
|
->hiddenLabel()
|
||||||
->disabled()
|
|
||||||
->native(false)
|
|
||||||
->allowHtml()
|
->allowHtml()
|
||||||
->options([
|
->options([1 => '1Bets']),
|
||||||
'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>',
|
|
||||||
],
|
|
||||||
]),
|
|
||||||
])
|
])
|
||||||
->query(function (Builder $query, array $data): Builder {
|
->query(function (Builder $query, array $data): Builder {
|
||||||
return $query->when(
|
return $query->when(
|
||||||
@@ -513,6 +524,7 @@ class EventsTable
|
|||||||
}),
|
}),
|
||||||
], layout: FiltersLayout::AboveContent)
|
], layout: FiltersLayout::AboveContent)
|
||||||
->deferFilters(false)
|
->deferFilters(false)
|
||||||
|
->hiddenFilterIndicators(false)
|
||||||
->persistFiltersInSession()
|
->persistFiltersInSession()
|
||||||
->recordActions([
|
->recordActions([
|
||||||
Action::make('star')
|
Action::make('star')
|
||||||
|
|||||||
@@ -1,12 +1,22 @@
|
|||||||
<div class="flex flex-row gap-2">
|
<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')
|
@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">
|
icon="phosphor-users">
|
||||||
</x-filament::button>
|
</x-filament::button>
|
||||||
|
|
||||||
<x-filament::button disabled="true" size="xs" tooltip="Toggle Partner" wire:click="toggleStar" :color="auth()->user()->stars ? 'primary' : 'gray'"
|
<x-filament::button disabled="true" size="xs" tooltip="Filter Partner Odds" wire:click="toggleStar"
|
||||||
icon="phosphor-not-equals">
|
:color="auth()->user()->stars ? 'primary' : 'gray'" icon="phosphor-not-equals">
|
||||||
</x-filament::button>
|
</x-filament::button>
|
||||||
|
|
||||||
<div></div>
|
<div></div>
|
||||||
|
|||||||
Reference in new issue
Block a user