This commit is contained in:
salam committed 2026-01-01 13:32:19 +01:00
1 parent a26c555b05
commit cec5a5e2f7
20 files changed
+211 -120

No files matched your search

+4 -4
View File
@@ -2,8 +2,8 @@
namespace App\Livewire;
use App\Actions\MapperEvents;
use App\Filament\Tables\Columns\MapperLeftColumn;
use App\Mapper\LoadEvents;
use App\Models\CompetitionGroup;
use App\Models\Country;
use App\Models\Event;
@@ -38,7 +38,7 @@ class MapperLeft extends Component implements HasActions, HasSchemas, HasTable
public function table(Table $table): Table
{
return $table
->query(MapperEvents::load())
->query(LoadEvents::load())
->columns([
MapperLeftColumn::make('left')->label(''),
])
@@ -108,6 +108,7 @@ class MapperLeft extends Component implements HasActions, HasSchemas, HasTable
->columns(4)->columnSpan(4),
], layout: FiltersLayout::AboveContent)
->filtersFormColumns(3)
->persistFiltersInSession()
->deferFilters(false)
->toolbarActions([
Action::make('reload_data_left')
@@ -117,8 +118,7 @@ class MapperLeft extends Component implements HasActions, HasSchemas, HasTable
// ->icon('phosphor-x')
->action(function (Component $livewire) {
$livewire->resetTableFiltersForm(); // Clears all filters
$livewire->tableSearch = ''; // Clears the main search bar
$this->dispatch('reload_data');
$this->tableSearch = ''; // Clears the main search bar
}),
]);
}
+4 -4
View File
@@ -2,8 +2,8 @@
namespace App\Livewire;
use App\Actions\MapperProvider;
use App\Filament\Tables\Columns\MapperRightColumn;
use App\Mapper\LoadProvider;
use App\Models\Event;
use App\Models\Mapper;
use Filament\Actions\Action;
@@ -34,7 +34,7 @@ class MapperRight extends Component implements HasActions, HasSchemas, HasTable
public function table(Table $table): Table
{
return $table
->query(MapperProvider::load())
->query(LoadProvider::load())
->columns([
MapperRightColumn::make('right')->label(''),
])->searchable(['home', 'away'])
@@ -81,6 +81,7 @@ class MapperRight extends Component implements HasActions, HasSchemas, HasTable
->columns(4)->columnSpan(4),
], layout: FiltersLayout::AboveContent)
// ->hiddenFilterIndicators()
->persistFiltersInSession()
->filtersFormColumns(3)
->deferFilters(false)
->toolbarActions([
@@ -91,8 +92,7 @@ class MapperRight extends Component implements HasActions, HasSchemas, HasTable
// ->icon('phosphor-x')
->action(function (Component $livewire) {
$livewire->resetTableFiltersForm(); // Clears all filters
$livewire->tableSearch = ''; // Clears the main search bar
$this->dispatch('reload_data');
$this->tableSearch = ''; // Clears the main search bar
}),
]);
}
+1 -1
View File
@@ -62,7 +62,7 @@ class TopMenuItems extends Component
$bookmaker_id = array_shift($bookmakers);
User::where('id', auth()->user()->id)->update(['provider_id' => $provider_id, 'bookmaker_id' => $bookmaker_id, 'client_id' => $client_id]);
User::where('id', auth()->user()->id)->update(['sport_id' => 1, 'provider_id' => $provider_id, 'bookmaker_id' => $bookmaker_id, 'client_id' => $client_id]);
$this->js('window.location.reload()');
}