fix: nonaktifkan attach peserta jika kegiatan belum approved
This commit is contained in:
@@ -47,6 +47,7 @@ class ParticipantsRelationManager extends RelationManager
|
||||
])
|
||||
->headerActions([
|
||||
AttachAction::make()->preloadRecordSelect()
|
||||
->visible(fn () => $this->getOwnerRecord()->status === 'approved')
|
||||
->form(fn (AttachAction $action) => [
|
||||
$action->getRecordSelect(),
|
||||
Select::make('status')
|
||||
|
||||
Reference in New Issue
Block a user