query(Mapper::query()) ->columns([ MapperRightColumn::make('right')->label('BETSAPI'), ]) ->defaultPaginationPageOption(5) ->filters([ // ... ]) ->recordActions([ // ... ]) ->toolbarActions([ ]); } public function rightAction(): Action { return Action::make('right') ->modalHeading('Event Mapper') ->modalContent(function (array $arguments) { $event = Event::where('id', $arguments['match_id'])->first(); $mapper = Mapper::where('event_id', $arguments['event_id'])->first(); return view('livewire.confirm-mapping', ['event' => $event, 'mapper' => $mapper, 'mappermode' => 'linear']); }) ->modalAlignment(Alignment::Center) ->modalFooterActionsAlignment(Alignment::Center) ->modalWidth('2xl') ->modalSubmitActionLabel('Confirm') ->modalSubmitAction(); } public function render() { return view('livewire.mapper-left'); } }