fix credits

This commit is contained in:
salam committed 2026-05-11 14:21:27 +02:00
1 parent 9a355aa812
commit 3196e17116
9 files changed
+43 -18

No files matched your search

@@ -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)