i really can't play that
Table Select update action
Hi
I have a table and one of the columns is a select() with ServiceOrder status.
SelectColumn::make('service_order_status_id')
->selectablePlaceholder(false)
->options(\App\Models\ServiceOrderStatus::pluck('name', 'id'))
->default(fn ($record) => $record->name)
->label('Stav')
// ->disableOption([4, 5, 6])
->disableOptionWhen(function ($value, $record) {
return in_array($record->service_order_status_id, [5, 6, 7]) || $value === 7;
})
I would like to add confirmation modal to this, but method like "requiresConfirmation()" is available.
Any clue?
Thanks!3 replies