rename tables raumealle, allgemeinflaechen orientierung_zu_abschlaege

This commit is contained in:
salam committed 2025-10-25 05:47:33 +02:00
1 parent f2b6487ec0
commit 92bdc77eee
31 files changed
+194 -197

No files matched your search

@@ -2,13 +2,13 @@
namespace App\Actions\Validation;
use App\Models\Allgemeinflaechen;
use App\Models\OrientierungZuAbschlaege;
use App\Models\ProjektAllgemeinflaechen;
use App\Models\Projekte;
use App\Models\ProjektInhaltsverzeichnis;
use App\Models\ProjektMethode;
use App\Models\ProjektOrientierungZuAbschlaege;
use App\Models\ProjektPlatzhalter;
use App\Models\Raeumealle;
use App\Models\ProjektRaeumealle;
use Filament\Notifications\Notification;
class GutachtenValidation
@@ -16,9 +16,9 @@ class GutachtenValidation
public static function controll($record)
{
/**
* Allgemeinflaechen
* ProjektAllgemeinflaechen
*/
$res = Allgemeinflaechen::where('projekte_id', $record->id)->get();
$res = ProjektAllgemeinflaechen::where('projekte_id', $record->id)->get();
if (! $res->count()) {
Notification::make()
->title('Allgemeinflächen')
@@ -67,9 +67,9 @@ class GutachtenValidation
}
/**
* Raeumealle
* ProjektRaeumealle
*/
$res = Raeumealle::where('projekte_id', $record->id)->get();
$res = ProjektRaeumealle::where('projekte_id', $record->id)->get();
if (! $res->count()) {
Notification::make()
->title('Räume Alle')
@@ -183,7 +183,7 @@ class GutachtenValidation
/**
* Orientierung Zu und Abschläge
*/
$res = OrientierungZuAbschlaege::where('projekte_id', $record->id)->get();
$res = ProjektOrientierungZuAbschlaege::where('projekte_id', $record->id)->get();
if (! $res->count()) {
Notification::make()
->title('Orientierung Zu und Abschläge')
@@ -195,7 +195,7 @@ class GutachtenValidation
return false;
}
$res = OrientierungZuAbschlaege::where('projekte_id', $record->id)->where('nicht_in_orientierung', false)->get();
$res = ProjektOrientierungZuAbschlaege::where('projekte_id', $record->id)->where('nicht_in_orientierung', false)->get();
foreach ($res as $value) {
if (! $value->orientierung_id && ! $value->nicht_in_orientierung) {
Notification::make()