mapper provider wip

This commit is contained in:
salam committed 2026-01-01 08:01:28 +01:00
1 parent b3318b1c03
commit a487fe0838
11 files changed
+161 -92

No files matched your search

+4 -2
View File
@@ -2,6 +2,7 @@
namespace App\Livewire;
use App\Actions\MapperProvider;
use App\Filament\Tables\Columns\MapperRightColumn;
use App\Models\Event;
use App\Models\Mapper;
@@ -33,7 +34,7 @@ class MapperRight extends Component implements HasActions, HasSchemas, HasTable
public function table(Table $table): Table
{
return $table
->query(Mapper::query())
->query(MapperProvider::load())
->columns([
MapperRightColumn::make('right')->label(''),
])->searchable(['home', 'away'])
@@ -86,7 +87,8 @@ class MapperRight extends Component implements HasActions, HasSchemas, HasTable
Action::make('reload_data')
->hiddenLabel()
->color('gray')
->icon('phosphor-x')
->icon('heroicon-o-arrow-path')
// ->icon('phosphor-x')
->action(function (Component $livewire) {
$livewire->resetTableFiltersForm(); // Clears all filters
$livewire->tableSearch = ''; // Clears the main search bar