wip nutzwerte

This commit is contained in:
salam committed 2025-11-12 13:04:03 +01:00
1 parent 53cdc0413e
commit 0ee8963fc6
15 files changed
+211 -168

No files matched your search

@@ -0,0 +1,30 @@
<?php
namespace App\Actions\Generate\Tabellen;
use App\Actions\Generate\Utilities\Html;
use App\Models\ProjektObjekte;
use App\Models\ProjektObjekteImDetail;
class Nutzwertberechnung
{
public static function load($projekte_id)
{
$objekte = ProjektObjekte::with('orientierung')
->where('projekte_id', $projekte_id)
->orderBy('nicht_in_orientierung')
->orderBy('top_nummer')
->get();
// $html = Html::table_header(['Top Nr.', 'Geschoß', 'Orientierung', 'Typ', 'Objekt', 'Fläche', '', 'Nutzwert']);
foreach ($objekte as $objekt) {
$element = ProjektObjekteImDetail::with('methode')
->where('projekt_objekte_id', $objekt->id)
->get();
dd($element);
}
}
}