Action::make('mark_ready')
->action(function () {
$this->record->state()->markReady();
redirect(static::getUrl(['record' => $this->record->id]));
})
->visible($this->record->state()->can('markReady')),
Action::make('pick_up')
->action(function () {
$this->record->state()->pickUp();
redirect(static::getUrl(['record' => $this->record->id]));
})
->visible($this->record->state()->can('pickUp')),
Action::make('mark_ready')
->action(function () {
$this->record->state()->markReady();
redirect(static::getUrl(['record' => $this->record->id]));
})
->visible($this->record->state()->can('markReady')),
Action::make('pick_up')
->action(function () {
$this->record->state()->pickUp();
redirect(static::getUrl(['record' => $this->record->id]));
})
->visible($this->record->state()->can('pickUp')),