CheckboxColumn::make('is_active')
->beforeStateUpdated(function ($record, $state) {
// Runs before the state is saved to the database
// You can perform checks or prepare data here
})
->afterStateUpdated(function ($record, $state) {
// Runs after the state is saved to the database
// You can trigger notifications, update related records, etc.
})