How to get the same form select in the inline table structure?

Hello, I'm trying to get this inline inside a table. Any idea how I can achieve this?
Forms\Components\Select::make('product_id')
->label('Product')
->searchable()
->getSearchResultsUsing(function (RelationManager $livewire, string $search) {
/** @var VendingMachine $ownerRecord */
$ownerRecord = $livewire->ownerRecord;

return $ownerRecord
->sellingPoint
->zone
->zoneProducts()
->join('products', 'product_id', '=', 'products.id')
->where('products.name', 'like', "%$search%")
->select('zones_products.id', 'zones_products.product_id', 'products.name', 'products.id')
->limit(50)
->pluck('product.name', 'product.id');
}),
Forms\Components\Select::make('product_id')
->label('Product')
->searchable()
->getSearchResultsUsing(function (RelationManager $livewire, string $search) {
/** @var VendingMachine $ownerRecord */
$ownerRecord = $livewire->ownerRecord;

return $ownerRecord
->sellingPoint
->zone
->zoneProducts()
->join('products', 'product_id', '=', 'products.id')
->where('products.name', 'like', "%$search%")
->select('zones_products.id', 'zones_products.product_id', 'products.name', 'products.id')
->limit(50)
->pluck('product.name', 'product.id');
}),
1 Reply
Dan Harrin
Dan Harrin2y ago
you cant embed forms within table rows at the moment. the closest you will get is SelectColumn which does not support searchable
Want results from more Discord servers?
Add your server