wip filter

This commit is contained in:
salam committed 2026-01-10 13:17:09 +01:00
1 parent c4d7f2e6ee
commit d2caac4bcc
20 files changed
+567 -119

No files matched your search

@@ -1,7 +1,9 @@
<div class="flex flex-row gap-3">
@foreach ($multilines as $multiline)
<x-filament::button size="xs" class="mx-1" tooltip="{{ $multiline['name'] }}"
wire:click="toggleBettype({{ $multiline['id'] }})" wire:dispatch="refreshTable" :color="!$multiline['is_active'] ? 'gray' : 'primary'">
{{ $multiline['short'] }} </x-filament::button>
@foreach ($bettype_toggles as $toggle)
<x-filament::button class="flex flex-col justify-center gap-0" tooltip="{{ $toggle['name'] }}"
wire:click="toggleBettype({{ $toggle['id'] }})" wire:dispatch="refreshTable" :color="!$toggle['is_active'] ? 'gray' : 'primary'">
<div class="m-0 p-0">{{ $toggle['short'] }}</div>
{{-- <div class="m-0 px-1 border rounded" style="font-size:9px">{{ $toggle['matchpart'] }}</div> --}}
</x-filament::button>
@endforeach
</div>
@@ -0,0 +1,20 @@
<div>
@if (auth()->user()->hasRole('konto_switch'))
<x-filament::dropdown>
<x-slot name="trigger">
<x-filament::dropdown.list.item icon="phosphor-baseball-helmet">
Swop Client
</x-filament::dropdown.list.item>
</x-slot>
<x-filament::dropdown.list>
@foreach ($clients as $id => $name)
<x-filament::dropdown.list.item wire:click="swopClient({{ $id }})"
icon="phosphor-arrow-fat-right">
{{ $name }}
</x-filament::dropdown.list.item>
@endforeach
</x-filament::dropdown.list>
</x-filament::dropdown>
@endif
</div>
@@ -0,0 +1,9 @@
<div>
<x-filament::input.wrapper prefix-icon="{{ $sporticon }}" prefix-icon-color="primary">
<x-filament::input.select wire:model="sport_id" wire:change="swopSport">
@foreach ($sports as $id => $name)
<option value="{{ $id }}">{{ $name }}</option>
@endforeach
</x-filament::input.select>
</x-filament::input.wrapper>
</div>
@@ -60,23 +60,13 @@
</x-filament::dropdown.list>
</x-filament::dropdown>
{{-- Swop Sport --}}
<x-filament::input.wrapper prefix-icon="{{ $sporticon }}" prefix-icon-color="primary">
<x-filament::input.select wire:model="sport_id" wire:change="swopSport">
@foreach ($sports as $id => $name)
<option value="{{ $id }}">{{ $name }}</option>
@endforeach
</x-filament::input.select>
</x-filament::input.wrapper>
{{-- Event Mapper --}}
<x-filament::modal width="7xl" icon="phosphor-arrows-in-line-horizontal" :close-by-clicking-away="false" :close-by-escaping="false"
:close-button="true">
<x-slot name="trigger">
<x-filament::button outlined icon="phosphor-arrows-in-line-horizontal" color="gray">
Event Mapper
<x-filament::button outlined icon="phosphor-arrows-in-line-horizontal" color="gray"
tooltip="Event Mapper">
</x-filament::button>
</x-slot>
@@ -168,8 +158,7 @@
<x-filament::dropdown>
<x-slot name="trigger">
<x-filament::button outlined icon="heroicon-o-adjustments-horizontal" color="gray">
Settings
<x-filament::button outlined icon="heroicon-o-adjustments-horizontal" color="gray" tooltip="Settings">
</x-filament::button>
</x-slot>
@@ -249,24 +238,4 @@
</x-filament::dropdown.list>
</x-filament::dropdown>
@endif
@if (auth()->user()->hasRole('konto_switch'))
<x-filament::dropdown>
<x-slot name="trigger">
<x-filament::button icon="phosphor-play">
{{ $client }}
</x-filament::button>
</x-slot>
<x-filament::dropdown.list>
@foreach ($clients as $id => $name)
@if ($name != $client)
<x-filament::dropdown.list.item wire:click="swop({{ $id }})" icon="phosphor-play">
{{ $name }}
</x-filament::dropdown.list.item>
@endif
@endforeach
</x-filament::dropdown.list>
</x-filament::dropdown>
@endif
</div>