Modal with relationship table crud

Our old livewire edit order page had a row of items displaying on it. one of the columns was a count of associated rows from another table, which upon clicking would open a modal displaying those rows, can anyone tell me how this is possible? Currently I just display the row count as follows..
ViewColumn::make('step_count')
    ->view('tables/columns/step-count')
    ->action(function () {
        // open modal here??
    })
Was this page helpful?