This commit is contained in:
salam committed 2026-03-09 12:40:14 +01:00
1 parent 32421a31ed
commit c0b8b7439c
2 files changed
+15 -6

No files matched your search

+9
View File
@@ -59,7 +59,16 @@ class BettypeToggle extends Component
public function clearAllFilter()
{
User::where('id', auth()->user()->id)->update([
'partner_compare' => 0,
'partner_show' => 0,
'all_only_none' => 0,
'bookmaker_partner_differences' => 0,
'starttime_differences' => 0,
]);
$this->dispatch('refreshBettypeMenu');
$this->dispatch('filterClearFilter');
$this->dispatch('refreshTable');
}
public function toggleBettype($multiline_setting_id)
@@ -5,7 +5,7 @@
icon="phosphor-x" />
<x-filament::button size="xs"
tooltip="Filter starttime differences TxOdds vs {{ auth()->user()->bookmaker->name }}"
wire:click="filterStarttimeDifferences" :color="auth()->user()->starttime_differences ? 'primary' : 'gray'" icon="phosphor-clock" />
wire:click="filterStarttimeDifferences" :color="auth()->user()->starttime_differences ? 'warning' : 'gray'" icon="phosphor-clock" />
</div>
<div class="flex flex-row gap-2">
@@ -23,7 +23,7 @@
@role('partner_programm')
<div class="flex flex-row gap-2">
<x-filament::button size="xs" wire:poll.20s="countBookmaker" :color="auth()->user()->bookmaker_partner_differences ? 'primary' : 'gray'"
<x-filament::button size="xs" wire:poll.20s="countBookmaker" :color="auth()->user()->bookmaker_partner_differences ? 'warning' : 'gray'"
wire:click="toggleBookmakerPartnerDifferences"
tooltip="{{ auth()->user()->bookmaker->name .
' ' .
@@ -44,12 +44,12 @@
@endif
</x-filament::button>
<x-filament::button size="xs" tooltip="Show {{ auth()->user()->partnerbookmaker->name }}"
wire:click="toggleShowPartner" :color="auth()->user()->partner_show ? 'primary' : 'gray'" icon="phosphor-users-duotone">
wire:click="toggleShowPartner" :color="auth()->user()->partner_show ? 'warning' : 'gray'" icon="phosphor-users-duotone">
</x-filament::button>
<x-filament::button disabled="true" size="xs" wire:click="toggleComparePartner"
tooltip="Different Odds {{ auth()->user()->bookmaker->name }} vs {{ auth()->user()->partnerbookmaker->name }}"
:disabled="auth()->user()->partner_show ? false : true" :color="auth()->user()->partner_compare ? 'primary' : 'gray'" icon="phosphor-exclude-square-duotone">
:disabled="auth()->user()->partner_show ? false : true" :color="auth()->user()->partner_compare ? 'warning' : 'gray'" icon="phosphor-exclude-square-duotone">
</x-filament::button>
<x-filament::button size="xs" wire:click="toggleMultiline" :tooltip="auth()->user()->is_multiline_direct
@@ -65,10 +65,10 @@
:color="auth()->user()->all_only_none == 0 ? 'primary' : 'gray'" tooltip="All Events">
</x-filament::button>
<x-filament::button size="xs" wire:click="setAllOnlyNone(1)" icon="phosphor-plus-square-duotone"
:color="auth()->user()->all_only_none == 1 ? 'primary' : 'gray'" tooltip="Events with {{ auth()->user()->bookmaker->name }} markets">
:color="auth()->user()->all_only_none == 1 ? 'warning' : 'gray'" tooltip="Events with {{ auth()->user()->bookmaker->name }} markets">
</x-filament::button>
<x-filament::button size="xs" wire:click="setAllOnlyNone(2)" icon="phosphor-minus-square-duotone"
:color="auth()->user()->all_only_none == 2 ? 'primary' : 'gray'" tooltip="Events without {{ auth()->user()->bookmaker->name }} markets">
:color="auth()->user()->all_only_none == 2 ? 'warning' : 'gray'" tooltip="Events without {{ auth()->user()->bookmaker->name }} markets">
</x-filament::button>
</div>
<div class="flex flex-row gap-2">