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');