fix credits
This commit is contained in:
1 parent
9a355aa812
commit
3196e17116
9 files changed
+43
-18
No files matched your search
+3
@@ -144,6 +144,7 @@ class ProjektObjekteImDetailRelationManager extends RelationManager
|
||||
Action::make('import-text')
|
||||
->icon('phosphor-upload')
|
||||
->modalIcon('phosphor-file-csv')
|
||||
->hidden(fn (): bool => $this->ownerRecord->bezahlt_am ? false : true)
|
||||
->color('info')
|
||||
->label('Hochladen')
|
||||
->modalHeading('Objekte im Detail hochladen')
|
||||
@@ -160,11 +161,13 @@ class ProjektObjekteImDetailRelationManager extends RelationManager
|
||||
ImportObjekteDirect::run($data, $this->ownerRecord->id);
|
||||
}),
|
||||
CreateAction::make()
|
||||
->hidden(fn (): bool => $this->ownerRecord->bezahlt_am ? false : true)
|
||||
->icon('phosphor-file-plus')
|
||||
->createAnother(false),
|
||||
Action::make('nutzwerte')
|
||||
->label('Nutzwerte')
|
||||
->icon('phosphor-calculator')
|
||||
->hidden(fn (): bool => $this->ownerRecord->bezahlt_am ? false : true)
|
||||
->action(function () {
|
||||
$res = ProjektObjekteImDetail::with('methode')
|
||||
->where('projekte_id', $this->getOwnerRecord()->id)
|
||||
|
||||
Reference in new issue
Block a user