wip Nutzwerte pdf

This commit is contained in:
salam committed 2025-10-23 12:07:56 +02:00
1 parent 4ad27d8c19
commit 2296b708eb
31 files changed
+528 -1656

No files matched your search

+13 -2
View File
@@ -197,13 +197,24 @@ class GutachtenValidation
}
$res = OrientierungZuAbschlaege::where('projekte_id', $record->id)->where('nicht_in_orientierung', false)->get();
foreach ($res as $value) {
if (! $value->orientierung_id) {
if (! $value->orientierung_id && ! $value->nicht_in_orientierung) {
Notification::make()
->title('Orientierung Zu und Abschläge')
->info()
->icon('heroicon-o-exclamation-triangle')
->duration(10000)
->body('Für den Raum <b>'.$value->raumart.'</b> mit der Top Nummer <b>'.$value->top_nummer.'</b> fehlt die <u>Orientierung</u>.')
->body('Bei der Top Nummer <b>'.$value->top_nummer.'</b> fehlt die <u>Orientierung</u>.')
->send();
return false;
}
if (! $value->orientierung_id && ! $value->type) {
Notification::make()
->title('Orientierung Zu und Abschläge')
->info()
->icon('heroicon-o-exclamation-triangle')
->duration(10000)
->body('Bei der Top Nummer <b>'.$value->top_nummer.'</b> fehlt der <u>Type</u>.')
->send();
return false;