This commit is contained in:
salam committed 2026-02-16 17:51:10 +01:00
1 parent 1886b10a0b
commit 0fd0cd1450
2 files changed
+24 -19

No files matched your search

@@ -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('<string class="cursor-pointer" wire:click="toggleMissing">'.auth()->user()->bookmaker->name.' vs '.auth()->user()->partnerbookmaker->name.'</string>'))
// ->color('info')
// ->removable(false);
// }
if ($data['filter_notes'] ?? null) {
$indicators[] = Indicator::make('Notes')->removeField('filter_notes')->color('info');
@@ -45,8 +45,8 @@
</x-filament::button>
<x-filament::button disabled="true" size="xs" wire:click="toggleComparePartner"
tooltip="Filter events where odds are different" :disabled="auth()->user()->partner_show ? false : true" :color="auth()->user()->partner_compare ? 'primary' : 'gray'"
icon="phosphor-exclude-square-duotone">
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">
</x-filament::button>
<x-filament::button size="xs" wire:click="toggleMultiline" :tooltip="auth()->user()->is_multiline_direct
@@ -83,7 +83,8 @@
</x-filament::button>
@else
<x-filament::button size="xs" class="flex flex-col justify-center gap-0"
tooltip="{{ $toggle['name'] }}" wire:click="toggleBettype({{ $toggle['id'] }})" :color="!$toggle['is_active'] ? 'gray' : 'primary'">
tooltip="{{ $toggle['name'] }}" wire:click="toggleBettype({{ $toggle['id'] }})"
:color="!$toggle['is_active'] ? 'gray' : 'primary'">
<div class="m-0 p-0">{{ $toggle['short'] }}</div>
</x-filament::button>
@endif