wip
This commit is contained in:
1 parent
32421a31ed
commit
c0b8b7439c
2 files changed
+15
-6
No files matched your search
@@ -59,7 +59,16 @@ class BettypeToggle extends Component
|
|||||||
|
|
||||||
public function clearAllFilter()
|
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('filterClearFilter');
|
||||||
|
$this->dispatch('refreshTable');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function toggleBettype($multiline_setting_id)
|
public function toggleBettype($multiline_setting_id)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
icon="phosphor-x" />
|
icon="phosphor-x" />
|
||||||
<x-filament::button size="xs"
|
<x-filament::button size="xs"
|
||||||
tooltip="Filter starttime differences TxOdds vs {{ auth()->user()->bookmaker->name }}"
|
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>
|
||||||
|
|
||||||
<div class="flex flex-row gap-2">
|
<div class="flex flex-row gap-2">
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
@role('partner_programm')
|
@role('partner_programm')
|
||||||
<div class="flex flex-row gap-2">
|
<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"
|
wire:click="toggleBookmakerPartnerDifferences"
|
||||||
tooltip="{{ auth()->user()->bookmaker->name .
|
tooltip="{{ auth()->user()->bookmaker->name .
|
||||||
' ' .
|
' ' .
|
||||||
@@ -44,12 +44,12 @@
|
|||||||
@endif
|
@endif
|
||||||
</x-filament::button>
|
</x-filament::button>
|
||||||
<x-filament::button size="xs" tooltip="Show {{ auth()->user()->partnerbookmaker->name }}"
|
<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>
|
||||||
|
|
||||||
<x-filament::button disabled="true" size="xs" wire:click="toggleComparePartner"
|
<x-filament::button disabled="true" size="xs" wire:click="toggleComparePartner"
|
||||||
tooltip="Different Odds {{ auth()->user()->bookmaker->name }} vs {{ auth()->user()->partnerbookmaker->name }}"
|
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>
|
||||||
|
|
||||||
<x-filament::button size="xs" wire:click="toggleMultiline" :tooltip="auth()->user()->is_multiline_direct
|
<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">
|
:color="auth()->user()->all_only_none == 0 ? 'primary' : 'gray'" tooltip="All Events">
|
||||||
</x-filament::button>
|
</x-filament::button>
|
||||||
<x-filament::button size="xs" wire:click="setAllOnlyNone(1)" icon="phosphor-plus-square-duotone"
|
<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>
|
||||||
<x-filament::button size="xs" wire:click="setAllOnlyNone(2)" icon="phosphor-minus-square-duotone"
|
<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>
|
</x-filament::button>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-row gap-2">
|
<div class="flex flex-row gap-2">
|
||||||
|
|||||||
Reference in new issue
Block a user