Rendering a Table in a Livewire Component within a Modal

I'm following the example provided at https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component, but I'm unable to display the table within a modal. When I use a route, the table functions correctly.

This works:
//web.php
Route::get('/solicitudes-pendientes', ListSolicitudesConductores::class);


//ListSolicitudesConductores:
class ListSolicitudesConductores extends Component implements HasForms, HasTable
{

    use InteractsWithTable;
    use InteractsWithForms;

    public function table(Table $table): Table
    {
        return $table
            ->query(SolicitudConductor::query())
            ->columns(
                SolicitudConductorTableComponents::schema()
            )
            ->filters([
                // ...
            ])
            ->actions([

            ])
            ->bulkActions([
                // ...
            ]);
    }
    public function render()
    {
        return view('livewire.list-solicitudes-conductores');
    }
}


//list-solicitudes-conductores.blade:
<div>
    {{ $this->table }}
</div>


if I try this, work as expected in modal:
<div>
    {{ test }}
</div>


However, the following does not work with the same Livewire component and Blade template:

Actions\Action::make('list-solicitudes-conductores')
    ->label('Solicitudes')
    ->color('success')
    ->modalSubmitAction(false)
    ->modalCancelAction(false)
    //->slideOver()
    ->modalContent(view('livewire.list-solicitudes-conductores')),


Thanks in advance
Was this page helpful?