toggle client button
This commit is contained in:
1 parent
3b8cebf10a
commit
49b1eba348
5 files changed
+59
-12
No files matched your search
@@ -1,14 +1,30 @@
|
||||
<div class="flex flex-row gap-3">
|
||||
|
||||
{{-- <x-filament::button size="xs"
|
||||
wire:click="toggleFilter"
|
||||
:hidden="auth()->user()->is_multiline_direct ? false : true"
|
||||
:tooltip="auth()->user()->no_filter ? 'Comparing filters are disabled' : 'Comparing filters are active'"
|
||||
:color="auth()->user()->no_filter ? 'primary' : 'gray'"
|
||||
:icon="auth()->user()->no_filter ? 'phosphor-funnel-x' : 'phosphor-funnel'">
|
||||
</x-filament::button> --}}
|
||||
@switch(auth()->user()->all_only_none)
|
||||
@case(0)
|
||||
<x-filament::button size="xs" wire:click="toggelAllOnlyNone" color="gray" icon="phosphor-gps"
|
||||
tooltip="Showing with and without {{ auth()->user()->bookmaker->name }}">
|
||||
</x-filament::button>
|
||||
@break
|
||||
|
||||
<x-filament::button size="xs" wire:click="toggleMultiline" :tooltip="auth()->user()->is_multiline_direct ? 'Multiline slots are disabled' : 'Multiline slots are active'" :color="auth()->user()->is_multiline_direct ? 'primary' : 'gray'" :icon="auth()->user()->is_multiline_direct ? 'phosphor-not-equals' : 'phosphor-equals'">
|
||||
@case(1)
|
||||
<x-filament::button size="xs" wire:click="toggelAllOnlyNone" color="info" icon="phosphor-gps-fix"
|
||||
tooltip="Showing only with {{ auth()->user()->bookmaker->name }}">
|
||||
</x-filament::button>
|
||||
@break
|
||||
|
||||
@case(2)
|
||||
<x-filament::button size="xs" wire:click="toggelAllOnlyNone" color="warning" icon="phosphor-gps-slash"
|
||||
tooltip="Showing only without {{ auth()->user()->bookmaker->name }}">
|
||||
</x-filament::button>
|
||||
@break
|
||||
|
||||
@default
|
||||
@endswitch
|
||||
|
||||
|
||||
<x-filament::button size="xs" wire:click="toggleMultiline" :tooltip="auth()->user()->is_multiline_direct ? 'Multiline slots are disabled' : 'Multiline slots are active'" :color="auth()->user()->is_multiline_direct ? 'primary' : 'gray'"
|
||||
:icon="auth()->user()->is_multiline_direct ? 'phosphor-not-equals' : 'phosphor-equals'">
|
||||
</x-filament::button>
|
||||
|
||||
<x-filament::button size="xs" tooltip="Toggle favorits" wire:click="toggleStar" :color="auth()->user()->stars ? 'primary' : 'gray'"
|
||||
|
||||
Reference in new issue
Block a user