design wip

This commit is contained in:
salam committed 2026-02-08 12:50:53 +01:00
1 parent 07b9dfac44
commit fbacfdde20
10 files changed
+154 -144

No files matched your search

+4 -1
View File
@@ -237,7 +237,10 @@ class Odds
'competition_group_id' => (int) $row->group['cgid'], 'competition_group_id' => (int) $row->group['cgid'],
]; ];
Event::firstOrCreate(['id' => (int) $row['id']], $event); $res = Event::firstOrCreate(['id' => (int) $row['id']], $event);
if ($res) {
$event_id = $res->id;
}
$group = [ $group = [
'competition_group_id' => (string) $row->group['cgid'], 'competition_group_id' => (string) $row->group['cgid'],
@@ -14,7 +14,6 @@ class ListEvents extends ListRecords
protected string|Width|null $maxContentWidth = Width::Full; protected string|Width|null $maxContentWidth = Width::Full;
protected $listeners = [ protected $listeners = [
'refreshBettypeMenu' => '$refresh',
'filterClearFilter' => 'clearFilters', 'filterClearFilter' => 'clearFilters',
'filterUpdateGreen' => 'updateTableFiltersGreen', 'filterUpdateGreen' => 'updateTableFiltersGreen',
'filterUpdateYellow' => 'updateTableFiltersYellow', 'filterUpdateYellow' => 'updateTableFiltersYellow',
@@ -22,7 +21,6 @@ class ListEvents extends ListRecords
'filterUpdatePeriode' => 'updateTablePeriode', 'filterUpdatePeriode' => 'updateTablePeriode',
'filterStarFilter' => 'updateStar', 'filterStarFilter' => 'updateStar',
'filterNoteFilter' => 'updateNote', 'filterNoteFilter' => 'updateNote',
'filterNotificationFilter' => 'updateNotification',
]; ];
protected function getHeaderWidgets(): array protected function getHeaderWidgets(): array
@@ -34,11 +32,10 @@ class ListEvents extends ListRecords
public function clearFilters(): void public function clearFilters(): void
{ {
foreach ($this->tableFilters['events'] as $key => $value) {
$this->tableFilters['events'][$key] = null;
}
$this->removeTableFilters(); $this->removeTableFilters();
// $this->dispatch('refreshMapperLeft');
// $this->dispatch('refreshMapperRight');
} }
public function updateCompareDifferences(): void public function updateCompareDifferences(): void
@@ -185,7 +185,6 @@ class EventsTable
Hidden::make('filter_alarm_red'), Hidden::make('filter_alarm_red'),
Hidden::make('filter_stars'), Hidden::make('filter_stars'),
Hidden::make('filter_notes'), Hidden::make('filter_notes'),
Hidden::make('filter_notification'),
Hidden::make('filter_periode'), Hidden::make('filter_periode'),
Select::make(name: 'country_id') Select::make(name: 'country_id')
->hidden(fn () => auth()->user()->sport_id == 5) ->hidden(fn () => auth()->user()->sport_id == 5)
@@ -447,24 +446,24 @@ class EventsTable
if ($data['country_id'] ?? null) { if ($data['country_id'] ?? null) {
$countries = Country::whereIn('id', $data['country_id'])->pluck('name')->toArray(); $countries = Country::whereIn('id', $data['country_id'])->pluck('name')->toArray();
if (count($countries) > 1) { if (count($countries) > 1) {
$indicators[] = Indicator::make('Countries: '.implode(', ', $countries))->removeField('country_id')->color('info'); $indicators[] = Indicator::make('Countries: '.implode(', ', $countries))->removeField('country_id')->color('warning');
} else { } else {
$indicators[] = Indicator::make('Country: '.$countries[0])->removeField('country_id')->color('info'); $indicators[] = Indicator::make('Country: '.$countries[0])->removeField('country_id')->color('warning');
} }
} }
if ($data['group_id'] ?? null) { if ($data['group_id'] ?? null) {
$group_ids = Group::whereIn('id', $data['group_id'])->pluck('name')->toArray(); $group_ids = Group::whereIn('id', $data['group_id'])->pluck('name')->toArray();
if (count($group_ids) > 1) { if (count($group_ids) > 1) {
$indicators[] = Indicator::make('Tournament: '.implode(', ', $group_ids))->removeField('group_id')->color('info'); $indicators[] = Indicator::make('Tournament: '.implode(', ', $group_ids))->removeField('group_id')->color('warning');
} else { } else {
$indicators[] = Indicator::make('Tournaments: '.$group_ids[0])->removeField('group_id')->color('info'); $indicators[] = Indicator::make('Tournaments: '.$group_ids[0])->removeField('group_id')->color('warning');
} }
} }
if ($data['client_group_list_id'] ?? null) { if ($data['client_group_list_id'] ?? null) {
$client_group_list_name = ClientGroupList::where('id', $data['client_group_list_id'])->value('name'); $client_group_list_name = ClientGroupList::where('id', $data['client_group_list_id'])->value('name');
$indicators[] = Indicator::make('Custom Group: '.$client_group_list_name)->removeField('client_group_list_id')->color('info'); $indicators[] = Indicator::make('Custom Group: '.$client_group_list_name)->removeField('client_group_list_id')->color('warning');
} }
if ($data['filter_stars'] ?? null) { if ($data['filter_stars'] ?? null) {
@@ -472,14 +471,14 @@ class EventsTable
} }
if (in_array('odds_tq', self::$bettype_settings)) { if (in_array('odds_tq', self::$bettype_settings)) {
$indicators[] = Indicator::make('To Qualify')->color('away')->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('Only events with '.auth()->user()->bookmaker->name)->color('away')->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('Only events without '.auth()->user()->bookmaker->name)->color('away')->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) {
@@ -490,17 +489,13 @@ class EventsTable
} }
if (auth()->user()->bookmaker_partner_differences == 1) { if (auth()->user()->bookmaker_partner_differences == 1) {
$indicators[] = Indicator::make('Different events '.auth()->user()->bookmaker->name.' vs '.auth()->user()->partnerbookmaker->name)->color('home')->removable(false); $indicators[] = Indicator::make('Different events '.auth()->user()->bookmaker->name.' vs '.auth()->user()->partnerbookmaker->name)->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');
} }
if ($data['filter_notification'] ?? null) {
$indicators[] = Indicator::make('Notifications')->removeField('filter_notification')->color('home');
}
if ($data['filter_alarm_green'] ?? null) { if ($data['filter_alarm_green'] ?? null) {
$title = OddsTable::where('name', $data['filter_alarm_green'])->value('title'); $title = OddsTable::where('name', $data['filter_alarm_green'])->value('title');
$indicators[] = Indicator::make('Alarms: '.$title)->removeField('filter_alarm_green')->color('success'); $indicators[] = Indicator::make('Alarms: '.$title)->removeField('filter_alarm_green')->color('success');
@@ -526,32 +521,32 @@ class EventsTable
$text .= ' To '.Carbon::parse($span['end'])->toFormattedDateString(); $text .= ' To '.Carbon::parse($span['end'])->toFormattedDateString();
} }
if ($text) { if ($text) {
$indicators[] = Indicator::make($text)->removeField('starttime_period.start')->color('info'); $indicators[] = Indicator::make($text)->removeField('starttime_period.start')->color('warning');
} }
} }
if ($data['competition_group_id'] ?? null) { if ($data['competition_group_id'] ?? null) {
$competition_groups = CompetitionGroup::whereIn('id', $data['competition_group_id'])->pluck('name')->toArray(); $competition_groups = CompetitionGroup::whereIn('id', $data['competition_group_id'])->pluck('name')->toArray();
if (count($competition_groups) > 1) { if (count($competition_groups) > 1) {
$indicators[] = Indicator::make('Leagues: '.implode(', ', $competition_groups))->removeField('competition_group_id')->color('info'); $indicators[] = Indicator::make('Leagues: '.implode(', ', $competition_groups))->removeField('competition_group_id')->color('warning');
} else { } else {
$indicators[] = Indicator::make('League: '.$competition_groups[0])->removeField('competition_group_id')->color('info')->color('info'); $indicators[] = Indicator::make('League: '.$competition_groups[0])->removeField('competition_group_id')->color('info')->color('warning');
} }
} }
if ($data['favorit_threshold'] ?? null) { if ($data['favorit_threshold'] ?? null) {
switch (auth()->user()->sport_id) { switch (auth()->user()->sport_id) {
case 1: case 1:
$indicators[] = Indicator::make('1X2 Fav <= '.$data['favorit_threshold'])->removeField('favorit_threshold')->color('info'); $indicators[] = Indicator::make('1X2 Fav <= '.$data['favorit_threshold'])->removeField('favorit_threshold')->color('warning');
break; break;
case 2: case 2:
$indicators[] = Indicator::make('1X2 Fav <= '.$data['favorit_threshold'])->removeField('favorit_threshold')->color('info'); $indicators[] = Indicator::make('1X2 Fav <= '.$data['favorit_threshold'])->removeField('favorit_threshold')->color('warning');
break; break;
case 3: case 3:
$indicators[] = Indicator::make('HC Fav <= '.$data['favorit_threshold'])->removeField('favorit_threshold')->color('info'); $indicators[] = Indicator::make('HC Fav <= '.$data['favorit_threshold'])->removeField('favorit_threshold')->color('warning');
break; break;
case 5: case 5:
$indicators[] = Indicator::make('ML Fav <= '.$data['favorit_threshold'])->removeField('favorit_threshold')->color('info'); $indicators[] = Indicator::make('ML Fav <= '.$data['favorit_threshold'])->removeField('favorit_threshold')->color('warning');
break; break;
} }
+5 -5
View File
@@ -61,6 +61,11 @@ class BettypeToggle extends Component
return view('livewire.bettype-toggle'); return view('livewire.bettype-toggle');
} }
public function clearAllFilter()
{
$this->dispatch('filterClearFilter');
}
public function toggleBettype($multiline_setting_id) public function toggleBettype($multiline_setting_id)
{ {
BettypeUser::where('multiline_setting_id', $multiline_setting_id)->update(['is_active' => DB::raw('!is_active')]); BettypeUser::where('multiline_setting_id', $multiline_setting_id)->update(['is_active' => DB::raw('!is_active')]);
@@ -78,11 +83,6 @@ class BettypeToggle extends Component
$this->dispatch('filterNoteFilter'); $this->dispatch('filterNoteFilter');
} }
public function toggleNotification()
{
$this->dispatch('filterNotificationFilter');
}
public function toggleShowPartner() public function toggleShowPartner()
{ {
User::where('id', auth()->user()->id)->update(['partner_compare' => 0, 'partner_show' => DB::raw('!partner_show')]); User::where('id', auth()->user()->id)->update(['partner_compare' => 0, 'partner_show' => DB::raw('!partner_show')]);
Generated
+37 -37
View File
@@ -543,16 +543,16 @@
}, },
{ {
"name": "brick/math", "name": "brick/math",
"version": "0.14.6", "version": "0.14.7",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/brick/math.git", "url": "https://github.com/brick/math.git",
"reference": "32498d5e1897e7642c0b961ace2df6d7dc9a3bc3" "reference": "07ff363b16ef8aca9692bba3be9e73fe63f34e50"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/brick/math/zipball/32498d5e1897e7642c0b961ace2df6d7dc9a3bc3", "url": "https://api.github.com/repos/brick/math/zipball/07ff363b16ef8aca9692bba3be9e73fe63f34e50",
"reference": "32498d5e1897e7642c0b961ace2df6d7dc9a3bc3", "reference": "07ff363b16ef8aca9692bba3be9e73fe63f34e50",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -591,7 +591,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/brick/math/issues", "issues": "https://github.com/brick/math/issues",
"source": "https://github.com/brick/math/tree/0.14.6" "source": "https://github.com/brick/math/tree/0.14.7"
}, },
"funding": [ "funding": [
{ {
@@ -599,7 +599,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2026-02-05T07:59:58+00:00" "time": "2026-02-07T10:57:35+00:00"
}, },
{ {
"name": "carbonphp/carbon-doctrine-types", "name": "carbonphp/carbon-doctrine-types",
@@ -4029,16 +4029,16 @@
}, },
{ {
"name": "livewire/livewire", "name": "livewire/livewire",
"version": "v3.7.8", "version": "v3.7.9",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/livewire/livewire.git", "url": "https://github.com/livewire/livewire.git",
"reference": "06ec7e8cd61bb01739b8f26396db6fe73b7e0607" "reference": "112b27e41e87e89d828a96e37b257aff2a058c7a"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/livewire/livewire/zipball/06ec7e8cd61bb01739b8f26396db6fe73b7e0607", "url": "https://api.github.com/repos/livewire/livewire/zipball/112b27e41e87e89d828a96e37b257aff2a058c7a",
"reference": "06ec7e8cd61bb01739b8f26396db6fe73b7e0607", "reference": "112b27e41e87e89d828a96e37b257aff2a058c7a",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -4093,7 +4093,7 @@
"description": "A front-end framework for Laravel.", "description": "A front-end framework for Laravel.",
"support": { "support": {
"issues": "https://github.com/livewire/livewire/issues", "issues": "https://github.com/livewire/livewire/issues",
"source": "https://github.com/livewire/livewire/tree/v3.7.8" "source": "https://github.com/livewire/livewire/tree/v3.7.9"
}, },
"funding": [ "funding": [
{ {
@@ -4101,7 +4101,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2026-02-03T02:57:56+00:00" "time": "2026-02-05T23:27:27+00:00"
}, },
{ {
"name": "masterminds/html5", "name": "masterminds/html5",
@@ -4514,16 +4514,16 @@
}, },
{ {
"name": "nette/schema", "name": "nette/schema",
"version": "v1.3.3", "version": "v1.3.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/nette/schema.git", "url": "https://github.com/nette/schema.git",
"reference": "2befc2f42d7c715fd9d95efc31b1081e5d765004" "reference": "086497a2f34b82fede9b5a41cc8e131d087cd8f7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/nette/schema/zipball/2befc2f42d7c715fd9d95efc31b1081e5d765004", "url": "https://api.github.com/repos/nette/schema/zipball/086497a2f34b82fede9b5a41cc8e131d087cd8f7",
"reference": "2befc2f42d7c715fd9d95efc31b1081e5d765004", "reference": "086497a2f34b82fede9b5a41cc8e131d087cd8f7",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -4531,8 +4531,8 @@
"php": "8.1 - 8.5" "php": "8.1 - 8.5"
}, },
"require-dev": { "require-dev": {
"nette/tester": "^2.5.2", "nette/tester": "^2.6",
"phpstan/phpstan-nette": "^2.0@stable", "phpstan/phpstan": "^2.0@stable",
"tracy/tracy": "^2.8" "tracy/tracy": "^2.8"
}, },
"type": "library", "type": "library",
@@ -4573,9 +4573,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/nette/schema/issues", "issues": "https://github.com/nette/schema/issues",
"source": "https://github.com/nette/schema/tree/v1.3.3" "source": "https://github.com/nette/schema/tree/v1.3.4"
}, },
"time": "2025-10-30T22:57:59+00:00" "time": "2026-02-08T02:54:00+00:00"
}, },
{ {
"name": "nette/utils", "name": "nette/utils",
@@ -9463,29 +9463,29 @@
}, },
{ {
"name": "doctrine/deprecations", "name": "doctrine/deprecations",
"version": "1.1.5", "version": "1.1.6",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/doctrine/deprecations.git", "url": "https://github.com/doctrine/deprecations.git",
"reference": "459c2f5dd3d6a4633d3b5f46ee2b1c40f57d3f38" "reference": "d4fe3e6fd9bb9e72557a19674f44d8ac7db4c6ca"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/doctrine/deprecations/zipball/459c2f5dd3d6a4633d3b5f46ee2b1c40f57d3f38", "url": "https://api.github.com/repos/doctrine/deprecations/zipball/d4fe3e6fd9bb9e72557a19674f44d8ac7db4c6ca",
"reference": "459c2f5dd3d6a4633d3b5f46ee2b1c40f57d3f38", "reference": "d4fe3e6fd9bb9e72557a19674f44d8ac7db4c6ca",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.1 || ^8.0" "php": "^7.1 || ^8.0"
}, },
"conflict": { "conflict": {
"phpunit/phpunit": "<=7.5 || >=13" "phpunit/phpunit": "<=7.5 || >=14"
}, },
"require-dev": { "require-dev": {
"doctrine/coding-standard": "^9 || ^12 || ^13", "doctrine/coding-standard": "^9 || ^12 || ^14",
"phpstan/phpstan": "1.4.10 || 2.1.11", "phpstan/phpstan": "1.4.10 || 2.1.30",
"phpstan/phpstan-phpunit": "^1.0 || ^2", "phpstan/phpstan-phpunit": "^1.0 || ^2",
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.6 || ^10.5 || ^11.5 || ^12", "phpunit/phpunit": "^7.5 || ^8.5 || ^9.6 || ^10.5 || ^11.5 || ^12.4 || ^13.0",
"psr/log": "^1 || ^2 || ^3" "psr/log": "^1 || ^2 || ^3"
}, },
"suggest": { "suggest": {
@@ -9505,9 +9505,9 @@
"homepage": "https://www.doctrine-project.org/", "homepage": "https://www.doctrine-project.org/",
"support": { "support": {
"issues": "https://github.com/doctrine/deprecations/issues", "issues": "https://github.com/doctrine/deprecations/issues",
"source": "https://github.com/doctrine/deprecations/tree/1.1.5" "source": "https://github.com/doctrine/deprecations/tree/1.1.6"
}, },
"time": "2025-04-07T20:06:18+00:00" "time": "2026-02-07T07:09:04+00:00"
}, },
{ {
"name": "fakerphp/faker", "name": "fakerphp/faker",
@@ -11637,21 +11637,21 @@
}, },
{ {
"name": "rector/rector", "name": "rector/rector",
"version": "2.3.5", "version": "2.3.6",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/rectorphp/rector.git", "url": "https://github.com/rectorphp/rector.git",
"reference": "9442f4037de6a5347ae157fe8e6c7cda9d909070" "reference": "ca9ebb81d280cd362ea39474dabd42679e32ca6b"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/rectorphp/rector/zipball/9442f4037de6a5347ae157fe8e6c7cda9d909070", "url": "https://api.github.com/repos/rectorphp/rector/zipball/ca9ebb81d280cd362ea39474dabd42679e32ca6b",
"reference": "9442f4037de6a5347ae157fe8e6c7cda9d909070", "reference": "ca9ebb81d280cd362ea39474dabd42679e32ca6b",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.4|^8.0", "php": "^7.4|^8.0",
"phpstan/phpstan": "^2.1.36" "phpstan/phpstan": "^2.1.38"
}, },
"conflict": { "conflict": {
"rector/rector-doctrine": "*", "rector/rector-doctrine": "*",
@@ -11685,7 +11685,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/rectorphp/rector/issues", "issues": "https://github.com/rectorphp/rector/issues",
"source": "https://github.com/rectorphp/rector/tree/2.3.5" "source": "https://github.com/rectorphp/rector/tree/2.3.6"
}, },
"funding": [ "funding": [
{ {
@@ -11693,7 +11693,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2026-01-28T15:22:48+00:00" "time": "2026-02-06T14:25:06+00:00"
}, },
{ {
"name": "sebastian/cli-parser", "name": "sebastian/cli-parser",
@@ -1,4 +1,4 @@
<div <div
class="text-primary-600 dark:text-primary-500 border border-primary-300 dark:border-primary-500/30 bg-primary-50 dark:bg-primary-800/20 rounded"> class="text-primary-600 dark:text-primary-500 font-bold">
{{ $slot }} {{ $slot }}
</div> </div>
@@ -12,15 +12,19 @@
@endphp @endphp
@if ($getColumns() == 2) @if ($getColumns() == 2)
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-4 gap-1 mb-1 text-xs text-center w-48 mr-3"> <div {{ $getExtraAttributeBag() }} class="grid grid-cols-4 gap-1 text-xs text-center w-60 mr-3 p-1">
@else @else
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-5 gap-1 mb-1 text-xs text-center w-64 mr-3"> <div {{ $getExtraAttributeBag() }} class="grid grid-cols-5 gap-1 text-xs text-center w-76 mr-3 p-1">
@endif @endif
@include('filament.tables.columns.multiline.label', ['labels' => $label])
</div>
</div>
@if ($getColumns() == 2)
@include('filament.tables.columns.multiline.label', ['labels' => $label]) <div {{ $getExtraAttributeBag() }} class="grid grid-cols-4 gap-1 text-xs text-center w-60 mr-2 mb-1 bg-blue-50 dark:bg-gray-950 p-1">
@else
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-5 gap-1 text-xs text-center w-76 mr-2 mb-1 bg-blue-50 dark:bg-gray-950 p-1">
@endif
@if(auth()->user()->partner_show) @if(auth()->user()->partner_show)
@include('filament.tables.columns.multiline.multiline-client-partner') @include('filament.tables.columns.multiline.multiline-client-partner')
@include('filament.tables.columns.multiline.multiline-partner') @include('filament.tables.columns.multiline.multiline-partner')
@@ -29,6 +33,14 @@
@include('filament.tables.columns.multiline.multiline-compare') @include('filament.tables.columns.multiline.multiline-compare')
@endif @endif
</div>
</div>
@if ($getColumns() == 2)
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-4 gap-1 text-xs text-center w-60 mr-3 p-1 mb-5">
@else
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-5 gap-1 text-xs text-center w-76 mr-3 p-1 mb-5">
@endif
@if (auth()->user()->is_multiline_direct) @if (auth()->user()->is_multiline_direct)
@include('filament.tables.columns.multiline.multilines-all', [ @include('filament.tables.columns.multiline.multilines-all', [
@@ -44,4 +56,7 @@
]) ])
@endif @endif
</div>
</div>
@endif @endif
@@ -231,11 +231,11 @@
'd' => 1, 'd' => 1,
]) ])
@else @else
{{-- @include('filament.tables.columns.multiline.bkm', [ @include('filament.tables.columns.multiline.bkm', [
'bookmaker_id' => auth()->user()->bookmaker_id, 'bookmaker_id' => auth()->user()->bookmaker_id,
'icon' => auth()->user()->bookmaker->icon ?? '', 'icon' => auth()->user()->bookmaker->icon ?? '',
]) --}} ])
<div>&nbsp;</div> {{-- <div>&nbsp;</div> --}}
<div></div> <div></div>
<div></div> <div></div>
<div></div> <div></div>
@@ -28,4 +28,4 @@
{{ number_format($odd, $d) }} {{ number_format($odd, $d) }}
</x-alarm-neutral> </x-alarm-neutral>
@break @break
@endswitch @endswitch
@@ -1,5 +1,26 @@
<div class="flex flex-row gap-2"> <div class="flex flex-row gap-10 justify-between">
<x-filament::button size="xs" wire:poll.20s="setDifferences" :color="auth()->user()->bookmaker_partner_differences ? 'home' : 'gray'"
<div class="flex flex-row gap-2">
<x-filament::button size="xs" tooltip="Clear all orange filter" wire:click="clearAllFilter" color="gray"
icon="phosphor-x" />
</div>
<div class="flex flex-row gap-2">
<x-filament::button size="xs" tooltip="Today" wire:click="setToday" color="gray"
icon="phosphor-calendar-dot-duotone" />
<x-filament::button size="xs" tooltip="Tomorrow" wire:click="setTomorrow" color="gray"
icon="phosphor-calendar-check-duotone" />
<x-filament::button size="xs" tooltip="One Week" wire:click="setOneWeek" color="gray"
icon="phosphor-calendar-plus-duotone" />
</div>
<div></div>
<div></div>
<div></div>
@role('partner_porgramm')
<div class="flex flex-row gap-2">
<x-filament::button size="xs" wire:poll.20s="setDifferences" :color="auth()->user()->bookmaker_partner_differences ? 'info' : 'gray'"
wire:click="toggleBookmakerPartnerDiffrences" wire:click="toggleBookmakerPartnerDiffrences"
tooltip="{{ auth()->user()->bookmaker->name . tooltip="{{ auth()->user()->bookmaker->name .
' ' . ' ' .
@@ -18,76 +39,55 @@
{{ $this->bookmakerPartnerDiffrences }} {{ $this->bookmakerPartnerDiffrences }}
</x-filament::badge> </x-filament::badge>
@endif @endif
</x-filament::button> </x-filament::button>
<div></div>
<div></div>
<div></div>
<x-filament::button size="xs" tooltip="Today" wire:click="setToday" color="gray"
icon="phosphor-calendar-dot-duotone" />
<x-filament::button size="xs" tooltip="Tomorrow" wire:click="setTomorrow" color="gray"
icon="phosphor-calendar-check-duotone" />
<x-filament::button size="xs" tooltip="One Week" wire:click="setOneWeek" color="gray"
icon="phosphor-calendar-plus-duotone" />
<div></div>
<div></div>
<div></div>
@role('partner_porgramm')
<x-filament::button size="xs" tooltip="Show {{ auth()->user()->partnerbookmaker->name }}" <x-filament::button size="xs" tooltip="Show {{ auth()->user()->partnerbookmaker->name }}"
wire:click="toggleShowPartner" :color="auth()->user()->partner_show ? 'info' : 'gray'" icon="phosphor-users-duotone"> wire:click="toggleShowPartner"
:color="auth()->user()->partner_show ? 'info' : 'gray'"
icon="phosphor-users-duotone">
</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="Highlight different odds {{ auth()->user()->bookmaker->name }} vs {{ auth()->user()->partnerbookmaker->name }}" tooltip="Highlight different odds {{ auth()->user()->bookmaker->name }} vs {{ auth()->user()->partnerbookmaker->name }}"
:disabled="auth()->user()->partner_show ? false : true" :color="auth()->user()->partner_compare ? 'info' : 'gray'" icon="phosphor-exclude-square-duotone"> :disabled="auth()->user()->partner_show ? false : true"
:color="auth()->user()->partner_compare ? 'info' : '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 ? 'Multiline slots are disabled' : 'Multiline slots are active'" :color="auth()->user()->is_multiline_direct ? 'info' : 'gray'" <x-filament::button size="xs" wire:click="toggleMultiline" :tooltip="auth()->user()->is_multiline_direct ? 'Multiline slots are disabled' : 'Multiline slots are active'" :color="auth()->user()->is_multiline_direct ? 'info' : 'gray'"
:icon="auth()->user()->is_multiline_direct ? 'phosphor-not-equals' : 'phosphor-equals'"> :icon="auth()->user()->is_multiline_direct ? 'phosphor-not-equals' : 'phosphor-equals'">
</x-filament::button> </x-filament::button>
<div></div> </div>
<div></div>
<div></div>
@endrole @endrole
<x-filament::button size="xs" wire:click="setAllOnlyNone(0)" :color="auth()->user()->all_only_none == 0 ? 'info' : 'gray'" icon="phosphor-stack-duotone" <div class="flex flex-row gap-2">
tooltip="All Events"> <x-filament::button size="xs" wire:click="setAllOnlyNone(0)" :color="auth()->user()->all_only_none == 0 ? 'info' : 'gray'" icon="phosphor-stack-duotone"
</x-filament::button> tooltip="All Events">
<x-filament::button size="xs" wire:click="setAllOnlyNone(1)" icon="phosphor-plus-square-duotone" </x-filament::button>
:color="auth()->user()->all_only_none == 1 ? 'away' : 'gray'" tooltip="Events with {{ auth()->user()->bookmaker->name }}"> <x-filament::button size="xs" wire:click="setAllOnlyNone(1)" icon="phosphor-plus-square-duotone"
</x-filament::button> :color="auth()->user()->all_only_none == 1 ? 'info' : 'gray'" tooltip="Events with {{ auth()->user()->bookmaker->name }}">
<x-filament::button size="xs" wire:click="setAllOnlyNone(2)" :color="auth()->user()->all_only_none == 2 ? 'away' : 'gray'" </x-filament::button>
icon="phosphor-minus-square-duotone" tooltip="Events without {{ auth()->user()->bookmaker->name }}"> <x-filament::button size="xs" wire:click="setAllOnlyNone(2)" :color="auth()->user()->all_only_none == 2 ? 'info' : 'gray'"
</x-filament::button> icon="phosphor-minus-square-duotone" tooltip="Events without {{ auth()->user()->bookmaker->name }}">
</x-filament::button>
<div></div> </div>
<div></div> <div class="flex flex-row gap-2">
<div></div> <x-filament::button size="xs" tooltip="Filter favorits" wire:click="toggleStar" color="gray"
<x-filament::button size="xs" tooltip="Filter favorits" wire:click="toggleStar" color="gray" icon="phosphor-star-duotone" />
icon="phosphor-star-duotone" /> <x-filament::button size="xs" tooltip="Filter notes" wire:click="toggleNote" color="gray"
<x-filament::button size="xs" tooltip="Filter notes" wire:click="toggleNote" color="gray" icon="phosphor-note-duotone" />
icon="phosphor-note-duotone" /> </div>
<x-filament::button size="xs" tooltip="Filter alarm notification" wire:click="toggleNotification" <div class="flex flex-row gap-2">
color="gray" icon="phosphor-bell-duotone" /> @foreach ($bettype_toggles as $toggle)
@if ($toggle['short'] == 'TQ')
<div></div> <x-filament::button size="xs" class="flex flex-col justify-center gap-0"
<div></div> tooltip="{{ $toggle['name'] }}" wire:click="toggleBettype({{ $toggle['id'] }})" :color="!$toggle['is_active'] ? 'gray' : 'away'">
<div></div> <div class="m-0 p-0">{{ $toggle['short'] }}</div>
</x-filament::button>
@foreach ($bettype_toggles as $toggle) @else
@if ($toggle['short'] == 'TQ') <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' : 'info'">
tooltip="{{ $toggle['name'] }}" wire:click="toggleBettype({{ $toggle['id'] }})" :color="!$toggle['is_active'] ? 'gray' : 'away'"> <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
@else @endforeach
<x-filament::button size="xs" class="flex flex-col justify-center gap-0" </div>
tooltip="{{ $toggle['name'] }}" wire:click="toggleBettype({{ $toggle['id'] }})" :color="!$toggle['is_active'] ? 'gray' : 'info'">
<div class="m-0 p-0">{{ $toggle['short'] }}</div>
</x-filament::button>
@endif
@endforeach
</div> </div>