wip
This commit is contained in:
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\Database\Eloquent\Builder;
|
||||||
use Illuminate\Support\Carbon;
|
use Illuminate\Support\Carbon;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
use Illuminate\Support\HtmlString;
|
||||||
|
|
||||||
class EventsTable
|
class EventsTable
|
||||||
{
|
{
|
||||||
@@ -478,24 +479,27 @@ class EventsTable
|
|||||||
$indicators[] = Indicator::make('To Qualify')->color('info')->removable(false);
|
$indicators[] = Indicator::make('To Qualify')->color('info')->removable(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (auth()->user()->all_only_none == 1) {
|
// if (auth()->user()->all_only_none == 1) {
|
||||||
$indicators[] = Indicator::make('With '.auth()->user()->bookmaker->name)->color('info')->removable(false);
|
// $indicators[] = Indicator::make('With '.auth()->user()->bookmaker->name)->color('info')->removable(false);
|
||||||
}
|
// }
|
||||||
if (auth()->user()->all_only_none == 2) {
|
// if (auth()->user()->all_only_none == 2) {
|
||||||
$indicators[] = Indicator::make('Without '.auth()->user()->bookmaker->name)->color('info')->removable(false);
|
// $indicators[] = Indicator::make('Without '.auth()->user()->bookmaker->name)->color('info')->removable(false);
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (auth()->user()->partner_show == 1) {
|
// if (auth()->user()->partner_show == 1) {
|
||||||
$indicators[] = Indicator::make('With '.auth()->user()->partnerbookmaker->name)->color('info')->removable(false);
|
// $indicators[] = Indicator::make('With '.auth()->user()->partnerbookmaker->name)->color('info')->removable(false);
|
||||||
}
|
// }
|
||||||
if (auth()->user()->partner_compare == 1) {
|
// if (auth()->user()->partner_compare == 1) {
|
||||||
$indicators[] = Indicator::make('Difference odds '.auth()->user()->bookmaker->name.' vs '.auth()->user()->partnerbookmaker->name)->color('info')->removable(false);
|
// $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) {
|
// if (auth()->user()->bookmaker_partner_differences == 1) {
|
||||||
// wire:click="toggleComparePartner"
|
// // wire:click="toggleComparePartner"
|
||||||
$indicators[] = Indicator::make(auth()->user()->bookmaker->name.' vs '.auth()->user()->partnerbookmaker->name)->color('info')->removable(false);
|
// $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) {
|
if ($data['filter_notes'] ?? null) {
|
||||||
$indicators[] = Indicator::make('Notes')->removeField('filter_notes')->color('info');
|
$indicators[] = Indicator::make('Notes')->removeField('filter_notes')->color('info');
|
||||||
|
|||||||
@@ -45,8 +45,8 @@
|
|||||||
</x-filament::button>
|
</x-filament::button>
|
||||||
|
|
||||||
<x-filament::button disabled="true" size="xs" wire:click="toggleComparePartner"
|
<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'"
|
tooltip="Filter events where odds are different between {{ auth()->user()->bookmaker->name }} vs {{ auth()->user()->partnerbookmaker->name }}"
|
||||||
icon="phosphor-exclude-square-duotone">
|
: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>
|
||||||
|
|
||||||
<x-filament::button size="xs" wire:click="toggleMultiline" :tooltip="auth()->user()->is_multiline_direct
|
<x-filament::button size="xs" wire:click="toggleMultiline" :tooltip="auth()->user()->is_multiline_direct
|
||||||
@@ -83,7 +83,8 @@
|
|||||||
</x-filament::button>
|
</x-filament::button>
|
||||||
@else
|
@else
|
||||||
<x-filament::button size="xs" class="flex flex-col justify-center gap-0"
|
<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>
|
<div class="m-0 p-0">{{ $toggle['short'] }}</div>
|
||||||
</x-filament::button>
|
</x-filament::button>
|
||||||
@endif
|
@endif
|
||||||
|
|||||||
Reference in new issue
Block a user