ToggleButtons::make('delivery_method')
->hiddenLabel()
->options(DeliveryMethod::class)
->reactive()
->inline()
->afterStateUpdated(function (string $state, Retouche $record): void {
$record->update([
'delivery_method' => $state,
]);
// Optionally notify the user
Notification::make()
->title('Delivery method updated')
->success()
->send();
}),
ToggleButtons::make('delivery_method')
->hiddenLabel()
->options(DeliveryMethod::class)
->reactive()
->inline()
->afterStateUpdated(function (string $state, Retouche $record): void {
$record->update([
'delivery_method' => $state,
]);
// Optionally notify the user
Notification::make()
->title('Delivery method updated')
->success()
->send();
}),