From 0fd0cd1450f71bf33dd576ffdbbd5ff0f5cbafb5 Mon Sep 17 00:00:00 2001 From: salam Date: Mon, 16 Feb 2026 17:51:10 +0100 Subject: [PATCH] wip --- .../Resources/Events/Tables/EventsTable.php | 36 ++++++++++--------- .../views/livewire/bettype-toggle.blade.php | 7 ++-- 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/app/Filament/Resources/Events/Tables/EventsTable.php b/app/Filament/Resources/Events/Tables/EventsTable.php index 4a0b38a4..d98f7766 100644 --- a/app/Filament/Resources/Events/Tables/EventsTable.php +++ b/app/Filament/Resources/Events/Tables/EventsTable.php @@ -43,6 +43,7 @@ use Filament\Tables\Table; use Illuminate\Database\Eloquent\Builder; use Illuminate\Support\Carbon; use Illuminate\Support\Facades\DB; +use Illuminate\Support\HtmlString; class EventsTable { @@ -478,24 +479,27 @@ class EventsTable $indicators[] = Indicator::make('To Qualify')->color('info')->removable(false); } - if (auth()->user()->all_only_none == 1) { - $indicators[] = Indicator::make('With '.auth()->user()->bookmaker->name)->color('info')->removable(false); - } - if (auth()->user()->all_only_none == 2) { - $indicators[] = Indicator::make('Without '.auth()->user()->bookmaker->name)->color('info')->removable(false); - } + // if (auth()->user()->all_only_none == 1) { + // $indicators[] = Indicator::make('With '.auth()->user()->bookmaker->name)->color('info')->removable(false); + // } + // if (auth()->user()->all_only_none == 2) { + // $indicators[] = Indicator::make('Without '.auth()->user()->bookmaker->name)->color('info')->removable(false); + // } - if (auth()->user()->partner_show == 1) { - $indicators[] = Indicator::make('With '.auth()->user()->partnerbookmaker->name)->color('info')->removable(false); - } - if (auth()->user()->partner_compare == 1) { - $indicators[] = Indicator::make('Difference odds '.auth()->user()->bookmaker->name.' vs '.auth()->user()->partnerbookmaker->name)->color('info')->removable(false); - } + // if (auth()->user()->partner_show == 1) { + // $indicators[] = Indicator::make('With '.auth()->user()->partnerbookmaker->name)->color('info')->removable(false); + // } + // if (auth()->user()->partner_compare == 1) { + // $indicators[] = Indicator::make('Difference odds '.auth()->user()->bookmaker->name.' vs '.auth()->user()->partnerbookmaker->name)->color('info')->removable(false); + // } - if (auth()->user()->bookmaker_partner_differences == 1) { - // wire:click="toggleComparePartner" - $indicators[] = Indicator::make(auth()->user()->bookmaker->name.' vs '.auth()->user()->partnerbookmaker->name)->color('info')->removable(false); - } + // if (auth()->user()->bookmaker_partner_differences == 1) { + // // wire:click="toggleComparePartner" + // $indicators[] = Indicator::make('missing') + // ->label(new HtmlString(''.auth()->user()->bookmaker->name.' vs '.auth()->user()->partnerbookmaker->name.'')) + // ->color('info') + // ->removable(false); + // } if ($data['filter_notes'] ?? null) { $indicators[] = Indicator::make('Notes')->removeField('filter_notes')->color('info'); diff --git a/resources/views/livewire/bettype-toggle.blade.php b/resources/views/livewire/bettype-toggle.blade.php index 232921f4..a0f2e43e 100644 --- a/resources/views/livewire/bettype-toggle.blade.php +++ b/resources/views/livewire/bettype-toggle.blade.php @@ -45,8 +45,8 @@ + tooltip="Filter events where odds are different between {{ 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"> + tooltip="{{ $toggle['name'] }}" wire:click="toggleBettype({{ $toggle['id'] }})" + :color="!$toggle['is_active'] ? 'gray' : 'primary'">
{{ $toggle['short'] }}
@endif