This commit is contained in:
salam committed 2025-10-21 18:00:44 +02:00
1 parent 9881d8c37b
commit 6bf10b25bd
21 files changed
+245 -178

No files matched your search

@@ -5,6 +5,7 @@ namespace App\Actions\Validation;
use App\Models\Allgemeinflaechen;
use App\Models\OrientierungZuAbschlaege;
use App\Models\Projekte;
use App\Models\ProjektInhaltsverzeichnis;
use App\Models\ProjektMethode;
use App\Models\ProjektPlatzhalter;
use App\Models\Raeumealle;
@@ -209,6 +210,22 @@ class GutachtenValidation
}
}
/**
* ProjektInhaltsverzeichnis
*/
$res = ProjektInhaltsverzeichnis::where('projekte_id', $record->id)->get();
if (! $res->count()) {
Notification::make()
->title('Inhaltsverzeichnis')
->info()
->icon('heroicon-o-exclamation-triangle')
->body('Inhaltsverzeichnis fehlt!')
->duration(10000)
->send();
return false;
}
/**
* ProjektPlatzhalter
*/