description('Bookmaker higher up will be used first.') ->headerActions([ Action::make('top') ->color(fn () => $this->active_methode == 1 ? 'primary' : 'gray') ->icon('phosphor-cell-signal-full') ->action(function ($livewire) { $this->active_methode = 1; $livewire->getTableRecords()->fresh(); }), Action::make('middle')->action(fn () => $this->active_methode = 2) ->color(fn () => $this->active_methode == 2 ? 'primary' : 'gray') ->icon('phosphor-cell-signal-high'), Action::make('low')->action(fn () => $this->active_methode = 3) ->color(fn () => $this->active_methode == 3 ? 'primary' : 'gray') ->icon('phosphor-cell-signal-medium'), ]) ->query(ComparingBookmaker::query() ->where('is_hidden', 0) ->where('sport_id', auth()->user()->sport_id) ->where('client_bookmaker_id', auth()->user()->bookmaker_id) ->where('method_id', $this->active_methode)) ->columns([ TextColumn::make('id'), ]) ->paginated(false) ->filters([ // ... ]) ->recordActions([ // ... ]) ->toolbarActions([ // ... ]); } public function render(): View { return view('livewire.comparing-bookmaker-menu'); } }