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