wip
This commit is contained in:
@@ -29,6 +29,20 @@ class CardPinOrderForm
|
||||
|
||||
Section::make(__('New card pin order'))
|
||||
->columnSpanFull()
|
||||
->disabled(function (string $context) {
|
||||
if (user()->isSystemUser()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
})
|
||||
->hidden(function (string $context): bool {
|
||||
if (user()->isSystemUser()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $context === 'create';
|
||||
})
|
||||
->components([
|
||||
Select::make('status')
|
||||
->label(__('Status'))
|
||||
|
||||
Reference in New Issue
Block a user