31 lines
808 B
PHP
31 lines
808 B
PHP
<?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);
|
|
}
|
|
}
|
|
}
|